build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. def keystoreProperties = new Properties()
  5. def keystoreProperitiesFile = rootProject.file('keystore.properties')
  6. if (keystoreProperitiesFile.exists()) {
  7. keystoreProperties.load(new FileInputStream(keystoreProperitiesFile))
  8. }
  9. android {
  10. compileSdkVersion 33
  11. signingConfigs {
  12. release {
  13. storeFile file(keystoreProperties['storeFile'])
  14. keyAlias keystoreProperties['keyAlias']
  15. keyPassword keystoreProperties['keyPassword']
  16. storePassword keystoreProperties['storePassword']
  17. }
  18. }
  19. defaultConfig {
  20. applicationId "me.yoqi.android.safekeyboard"
  21. minSdkVersion 16
  22. targetSdkVersion 33
  23. versionCode 10001
  24. versionName "1.0.1"
  25. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  26. }
  27. buildTypes {
  28. release {
  29. minifyEnabled true
  30. shrinkResources true
  31. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  32. signingConfig signingConfigs.release
  33. multiDexEnabled true
  34. }
  35. }
  36. compileOptions {
  37. sourceCompatibility JavaVersion.VERSION_11
  38. targetCompatibility JavaVersion.VERSION_11
  39. }
  40. }
  41. dependencies {
  42. implementation fileTree(dir: "libs", include: ["*.jar"])
  43. implementation 'androidx.appcompat:appcompat:1.6.1'
  44. implementation 'com.google.android.material:material:1.9.0'
  45. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  46. testImplementation 'junit:junit:4.13.2'
  47. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  48. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  49. }