build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. compileSdkVersion COMPILE_SDK_VERSION
  10. buildToolsVersion BUILD_TOOLS_VERSION
  11. defaultConfig {
  12. applicationId "com.shzd.eyuangame"
  13. minSdkVersion MIN_SDK_VERSION
  14. targetSdkVersion TARGET_SDK_VERSION
  15. versionCode 1
  16. versionName "1.0"
  17. }
  18. signingConfigs {
  19. config {
  20. keyAlias keystoreProperties['keyAlias']
  21. keyPassword keystoreProperties['keyPassword']
  22. storeFile file(keystoreProperties['storeFile'])
  23. storePassword keystoreProperties['storePassword']
  24. }
  25. }
  26. buildTypes {
  27. debug {
  28. minifyEnabled false
  29. signingConfig signingConfigs.config
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. }
  32. release {
  33. minifyEnabled false
  34. signingConfig signingConfigs.config
  35. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  36. }
  37. }
  38. lintOptions {
  39. abortOnError false
  40. }
  41. repositories {
  42. flatDir {
  43. dirs 'libs'
  44. }
  45. }
  46. dexOptions {
  47. preDexLibraries = false
  48. }
  49. compileOptions {
  50. sourceCompatibility JavaVersion.VERSION_1_8
  51. targetCompatibility JavaVersion.VERSION_1_8
  52. }
  53. kotlinOptions {
  54. jvmTarget = "1.8"
  55. }
  56. }
  57. dependencies {
  58. api project(':library_core')
  59. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
  60. }