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

  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 34
  4. // buildToolsVersion "34.0.0"
  5. defaultConfig {
  6. applicationId "com.example.TxHidposDemo"
  7. minSdkVersion 21
  8. //noinspection ExpiredTargetSdkVersion
  9. targetSdkVersion 29
  10. versionCode 26032600
  11. versionName "2026.1"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. }
  14. applicationVariants.all { variant ->
  15. variant.outputs.all { output ->
  16. // �޸� APK �ļ�������
  17. output.outputFileName = "ɨ���Ŷ�_V${variant.versionName}.apk"
  18. }
  19. }
  20. buildTypes {
  21. release {
  22. signingConfig signingConfigs.debug
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  25. }
  26. }
  27. compileOptions.encoding="GBK"
  28. // compileOptions {
  29. // sourceCompatibility JavaVersion.VERSION_11
  30. // targetCompatibility JavaVersion.VERSION_11
  31. // }
  32. }
  33. dependencies {
  34. implementation fileTree(include: ['*.jar'], dir: 'libs')
  35. implementation 'androidx.appcompat:appcompat:1.0.2'
  36. implementation('com.squareup.okhttp3:okhttp:5.2.1')
  37. // implementation 'androidx.startup:startup-runtime:1.2.0'
  38. testImplementation 'junit:junit:4.12'
  39. androidTestImplementation 'androidx.test:runner:1.1.1'
  40. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  41. implementation files('libs/tx_hidpos.jar')
  42. }