You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.2 KiB
71 lines
2.2 KiB
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
}
|
|
|
|
android {
|
|
signingConfigs {
|
|
release {
|
|
keyAlias 'key0'
|
|
storeFile file('D:\\SmallDemo\\app\\pwd.jks')
|
|
storePassword '123456aS'
|
|
keyPassword '123456aS'
|
|
}
|
|
}
|
|
namespace 'com.techscan.smalldemo'
|
|
compileSdk rootProject.ext.version.compileSdkVersion
|
|
|
|
defaultConfig {
|
|
applicationId "com.techscan.smalldemo"
|
|
minSdk rootProject.ext.version.minSdkVersion
|
|
targetSdk rootProject.ext.version.targetSdkVersion
|
|
versionCode rootProject.ext.version.versionCode
|
|
versionName rootProject.ext.version.versionName
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.all { output ->
|
|
def outputFile = output.outputFile
|
|
def fileName
|
|
if (outputFile != null && outputFile.name.endsWith('.apk')) {
|
|
if (variant.buildType.name == 'release') {
|
|
fileName = "scan_system_${defaultConfig.versionName}.apk"
|
|
} else if (variant.buildType.name == 'debug') {
|
|
fileName = "scan_system_${defaultConfig.versionName}_debug.apk"
|
|
}
|
|
outputFileName = fileName
|
|
}
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
|
|
viewBinding {
|
|
enabled = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation project(path: ':module_base')
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
implementation 'com.google.android.material:material:1.8.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
implementation "androidx.core:core-splashscreen:1.0.1"
|
|
|
|
}
|