build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 33
  17. defaultConfig {
  18. applicationId "me.yoqi.android.appmanager"
  19. minSdkVersion 16
  20. targetSdkVersion 33
  21. versionCode 100002
  22. versionName "1.0.2"
  23. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  24. }
  25. buildTypes {
  26. release {
  27. minifyEnabled true
  28. shrinkResources true
  29. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  30. signingConfig signingConfigs.release
  31. }
  32. }
  33. }
  34. dependencies {
  35. implementation fileTree(dir: "libs", include: ["*.jar"])
  36. implementation 'androidx.appcompat:appcompat:1.6.1'
  37. implementation 'com.google.android.material:material:1.9.0'
  38. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  39. testImplementation 'junit:junit:4.13.2'
  40. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  41. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  42. }