build.gradle 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. apply from: '../helpers.gradle'
  6. def keystorePropertiesFile = rootProject.file("keystore.properties");
  7. def keystoreProperties = new Properties()
  8. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  9. android {
  10. namespace 'im.angry.easyeuicc'
  11. compileSdk 34
  12. defaultConfig {
  13. applicationId "im.angry.easyeuicc"
  14. minSdk 30
  15. targetSdk 34
  16. versionCode getGitVersionCode()
  17. versionName getGitVersionName()
  18. }
  19. signingConfigs {
  20. config {
  21. storeFile file(keystoreProperties['storeFile'])
  22. storePassword keystoreProperties['storePassword']
  23. keyAlias keystoreProperties['unprivKeyAlias']
  24. keyPassword keystoreProperties['unprivKeyPassword']
  25. }
  26. }
  27. buildTypes {
  28. release {
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. signingConfig signingConfigs.config
  32. }
  33. debug {
  34. debuggable false
  35. signingConfig signingConfigs.config
  36. }
  37. }
  38. applicationVariants.configureEach { variant ->
  39. if (variant.name == "debug") {
  40. variant.outputs.each { o -> o.versionCodeOverride = System.currentTimeSeconds() }
  41. }
  42. }
  43. compileOptions {
  44. sourceCompatibility JavaVersion.VERSION_1_8
  45. targetCompatibility JavaVersion.VERSION_1_8
  46. }
  47. kotlinOptions {
  48. jvmTarget = '1.8'
  49. }
  50. }
  51. dependencies {
  52. implementation project(":app-common")
  53. implementation 'androidx.core:core-ktx:1.9.0'
  54. implementation 'androidx.appcompat:appcompat:1.6.1'
  55. implementation 'com.google.android.material:material:1.11.0'
  56. }