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.

88 lines
3.1 KiB

3 weeks ago
  1. apply plugin: 'com.android.application'
  2. android {compileSdkVersion 28
  3. buildToolsVersion '30.0.3'
  4. useLibrary 'org.apache.http.legacy'
  5. defaultConfig {
  6. applicationId "com.icssoft.icspda"
  7. minSdkVersion 18
  8. //noinspection ExpiredTargetSdkVersion
  9. targetSdkVersion 28
  10. versionCode 10
  11. versionName "1.0"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. }
  14. signingConfigs {
  15. release {
  16. // 指定你的 keystore 文件路径
  17. storeFile file("libs\\appkey.jks") // 这里是你 JKS 文件的相对路径
  18. storePassword "123456" // JKS 文件的密码
  19. keyAlias "test" // 密钥别名
  20. keyPassword "123456" // 密钥的密码
  21. }
  22. debug {
  23. // 指定你的 keystore 文件路径
  24. storeFile file("libs\\appkey.jks") // 这里是你 JKS 文件的相对路径
  25. storePassword "123456" // JKS 文件的密码
  26. keyAlias "test" // 密钥别名
  27. keyPassword "123456" // 密钥的密码
  28. }
  29. }
  30. buildTypes {
  31. release {
  32. // 使用签名配置
  33. // signingConfig signingConfigs.release
  34. lintOptions {
  35. checkReleaseBuilds false
  36. abortOnError false
  37. }
  38. minifyEnabled false
  39. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  40. debuggable = true
  41. }
  42. }
  43. compileOptions {
  44. sourceCompatibility = 1.8
  45. targetCompatibility = 1.8
  46. }
  47. android.applicationVariants.all {
  48. variant ->
  49. variant.outputs.all {
  50. outputFileName = "ICSPDA_v${defaultConfig.versionName}.apk"
  51. }
  52. }
  53. }
  54. dependencies {
  55. implementation fileTree(dir: 'libs', include: ['*.jar'])
  56. implementation 'androidx.appcompat:appcompat:1.0.2'
  57. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  58. implementation files('src\\lib\\JavaMD5.jar')
  59. implementation files('src\\lib\\JavaMD5.jar')
  60. implementation files('libs\\zp_cpcl_new.jar')
  61. implementation files('libs\\ZSDK_ANDROID_API.jar')
  62. implementation files('libs\\zp_cpcl_new.jar')
  63. implementation files('libs\\ZSDK_ANDROID_API.jar')
  64. implementation files('libs\\zp_cpcl_new.jar')
  65. implementation files('libs\\ZSDK_ANDROID_API.jar')
  66. implementation files('libs\\zp_cpcl_new.jar')
  67. implementation files('libs\\zp_cpcl_new.jar')
  68. implementation files('libs\\ZSDK_ANDROID_API.jar')
  69. testImplementation 'junit:junit:4.12'
  70. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  71. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  72. implementation 'com.google.code.gson:gson:2.8.6'
  73. implementation 'com.github.huangyanbin:SmartTable:2.2.0'
  74. implementation 'com.github.yuzhiqiang1993:zxing:2.2.5'
  75. implementation 'com.squareup.okhttp3:okhttp:3.0.1'
  76. implementation 'com.alibaba:fastjson:1.2.76'
  77. }