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.
44 lines
1.5 KiB
44 lines
1.5 KiB
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 34
|
|
// buildToolsVersion "34.0.0"
|
|
defaultConfig {
|
|
applicationId "com.example.TxHidposDemo"
|
|
minSdkVersion 21
|
|
//noinspection ExpiredTargetSdkVersion
|
|
targetSdkVersion 29
|
|
versionCode 26032600
|
|
versionName "2026.1"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.all { output ->
|
|
// 修改 APK 文件的名称
|
|
output.outputFileName = "扫码排队_V${variant.versionName}.apk"
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
signingConfig signingConfigs.debug
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions.encoding="GBK"
|
|
// compileOptions {
|
|
// sourceCompatibility JavaVersion.VERSION_11
|
|
// targetCompatibility JavaVersion.VERSION_11
|
|
// }
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
implementation 'androidx.appcompat:appcompat:1.0.2'
|
|
implementation('com.squareup.okhttp3:okhttp:5.2.1')
|
|
// implementation 'androidx.startup:startup-runtime:1.2.0'
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'androidx.test:runner:1.1.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
|
implementation files('libs/tx_hidpos.jar')
|
|
}
|