build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apply plugin: 'com.android.application'
  2. def keystoreProperties = new Properties()
  3. def keystoreProperitiesFile = rootProject.file('keystore.properties')
  4. if (keystoreProperitiesFile.exists()) {
  5. keystoreProperties.load(new FileInputStream(keystoreProperitiesFile))
  6. }
  7. android {
  8. signingConfigs {
  9. release {
  10. storeFile file(keystoreProperties['storeFile'])
  11. keyAlias keystoreProperties['keyAlias']
  12. keyPassword keystoreProperties['keyPassword']
  13. storePassword keystoreProperties['storePassword']
  14. }
  15. }
  16. compileSdk 33
  17. defaultConfig {
  18. versionCode 10016
  19. versionName "1.2.6"
  20. applicationId "me.yoqi.qrcode"
  21. minSdkVersion 21
  22. targetSdk 34
  23. signingConfig signingConfigs.release
  24. multiDexEnabled true
  25. }
  26. buildTypes {
  27. release {
  28. minifyEnabled true
  29. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
  30. signingConfig signingConfigs.release
  31. multiDexEnabled true
  32. }
  33. }
  34. }
  35. dependencies {
  36. implementation fileTree(dir: 'libs', include: ['*.jar'])
  37. implementation 'androidx.appcompat:appcompat:1.6.1'
  38. implementation project(":utils")
  39. // implementation 'me.dm7.barcodescanner:zxing:1.9'
  40. //implementation 'cn.bingoogolapple:bga-qrcode-zbar:1.2.5'
  41. }