build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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.yyxxgame.columbus"
  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. }