build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. apply plugin: 'com.android.application'
  2. def build = rootProject.ext.build
  3. def sign = rootProject.ext.sign
  4. android {
  5. compileSdkVersion build.compileSdkVersion
  6. signingConfigs {
  7. release {
  8. storeFile file(sign.storeFile)
  9. keyAlias sign.keyAlias
  10. keyPassword sign.keyPassword
  11. storePassword sign.storePassword
  12. }
  13. }
  14. compileSdkVersion build.compileSdkVersion
  15. defaultConfig {
  16. applicationId build.applicationId
  17. minSdkVersion build.minSdkVersion
  18. targetSdkVersion build.targetSdkVersion
  19. versionCode build.versionCode
  20. versionName build.versionName
  21. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  22. }
  23. buildTypes {
  24. release {
  25. minifyEnabled true
  26. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  27. signingConfig signingConfigs.release
  28. }
  29. debug{
  30. minifyEnabled false
  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. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  43. }