build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. compileSdkVersion 29
  17. defaultConfig {
  18. applicationId "me.yoqi.android.appmanager"
  19. minSdkVersion 16
  20. targetSdkVersion 29
  21. versionCode 2
  22. versionName "1.0.1"
  23. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  24. }
  25. buildTypes {
  26. release {
  27. minifyEnabled true
  28. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  29. signingConfig signingConfigs.release
  30. }
  31. }
  32. }
  33. dependencies {
  34. implementation fileTree(dir: "libs", include: ["*.jar"])
  35. implementation 'androidx.appcompat:appcompat:1.2.0'
  36. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  37. testImplementation 'junit:junit:4.12'
  38. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  39. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  40. }