build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. def keystorePropertiesFile = rootProject.file("keystore.properties")
  5. def keystoreProperties = new Properties()
  6. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  7. android {
  8. compileSdkVersion COMPILE_SDK_VERSION
  9. buildToolsVersion BUILD_TOOLS_VERSION
  10. defaultConfig {
  11. applicationId "com.yyxx.eyuangame.demo"
  12. minSdkVersion MIN_SDK_VERSION
  13. targetSdkVersion TARGET_SDK_VERSION
  14. versionCode 1
  15. versionName "1.0"
  16. multiDexEnabled true
  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. }
  54. dependencies {
  55. }