build.gradle 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. apply from: '../helpers.gradle'
  6. // Signing config, mainly intended for debug builds
  7. def keystorePropertiesFile = rootProject.file("keystore.properties");
  8. def keystoreProperties = new Properties()
  9. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  10. android {
  11. compileSdk 34
  12. defaultConfig {
  13. applicationId "im.angry.openeuicc"
  14. minSdk 30
  15. targetSdk 34
  16. versionCode getGitVersionCode()
  17. versionName getGitVersionName()
  18. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  19. }
  20. signingConfigs {
  21. config {
  22. storeFile file(keystoreProperties['storeFile'])
  23. storePassword keystoreProperties['storePassword']
  24. keyAlias keystoreProperties['keyAlias']
  25. keyPassword keystoreProperties['keyPassword']
  26. }
  27. }
  28. buildTypes {
  29. release {
  30. minifyEnabled false
  31. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  32. signingConfig signingConfigs.config
  33. }
  34. debug {
  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. namespace 'im.angry.openeuicc'
  51. }
  52. dependencies {
  53. compileOnly project(':libs:hidden-apis-stub')
  54. implementation project(':libs:hidden-apis-shim')
  55. implementation project(':libs:lpac-jni')
  56. implementation project(":app-common")
  57. implementation 'androidx.appcompat:appcompat:1.6.1'
  58. testImplementation 'junit:junit:4.13.2'
  59. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  60. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  61. }