build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. def keystorePropertiesFile = rootProject.file("keystore.properties")
  6. def keystoreProperties = new Properties()
  7. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  8. android {
  9. compileSdk rootProject.ext.android.compileSdk
  10. buildToolsVersion rootProject.ext.android.buildToolsVersion
  11. defaultConfig {
  12. applicationId 'com.yyxx.commsdk.demo'
  13. minSdk rootProject.ext.android.minSdk
  14. targetSdk rootProject.ext.android.targetSdk
  15. versionCode 1
  16. versionName "0.0.1"
  17. multiDexEnabled true
  18. }
  19. signingConfigs {
  20. config {
  21. keyAlias keystoreProperties['keyAlias']
  22. keyPassword keystoreProperties['keyPassword']
  23. storeFile file(keystoreProperties['storeFile'])
  24. storePassword keystoreProperties['storePassword']
  25. v1SigningEnabled true
  26. v2SigningEnabled true
  27. }
  28. }
  29. buildTypes {
  30. debug {
  31. minifyEnabled false
  32. signingConfig signingConfigs.config
  33. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  34. }
  35. release {
  36. minifyEnabled false
  37. signingConfig signingConfigs.config
  38. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  39. }
  40. }
  41. lintOptions {
  42. abortOnError false
  43. }
  44. compileOptions {
  45. sourceCompatibility JavaVersion.VERSION_1_8
  46. targetCompatibility JavaVersion.VERSION_1_8
  47. }
  48. kotlinOptions {
  49. jvmTarget = "1.8"
  50. }
  51. }
  52. dependencies {
  53. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
  54. }