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. signingConfigs {
  6. release {
  7. storeFile file(sign.storeFile)
  8. keyAlias sign.keyAlias
  9. keyPassword sign.keyPassword
  10. storePassword sign.storePassword
  11. }
  12. }
  13. compileSdkVersion build.compileSdkVersion
  14. defaultConfig {
  15. applicationId build.applicationId
  16. minSdkVersion build.minSdkVersion
  17. targetSdkVersion build.targetSdkVersion
  18. versionCode build.versionCode
  19. versionName build.versionName
  20. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  21. }
  22. buildTypes {
  23. release {
  24. minifyEnabled true
  25. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  26. signingConfig signingConfigs.release
  27. }
  28. debug{
  29. minifyEnabled false
  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.2'
  37. implementation 'com.google.android.material:material:1.2.1'
  38. implementation 'androidx.annotation:annotation:1.1.0'
  39. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  40. testImplementation 'junit:junit:4.12'
  41. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  42. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  43. }