build.gradle 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 25
  4. buildToolsVersion '26.0.2'
  5. flavorDimensions 'default'
  6. defaultConfig {
  7. applicationId APPLICATION_ID
  8. minSdkVersion 16
  9. targetSdkVersion 25
  10. versionCode 1
  11. versionName "1.0"
  12. multiDexEnabled true
  13. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  14. javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true
  15. ndk {
  16. abiFilters "x86"
  17. abiFilters "armeabi"
  18. }
  19. }
  20. signingConfigs {
  21. eros {
  22. keyAlias 'eros签名实例'
  23. keyPassword 'erosdemo'
  24. storeFile file('../eros_demo.jks')
  25. storePassword 'erosdemo'
  26. v2SigningEnabled false
  27. }
  28. }
  29. buildTypes {
  30. release {
  31. minifyEnabled false
  32. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  33. signingConfig signingConfigs.eros
  34. manifestPlaceholders=[
  35. GETUI_APP_ID:GETUI_APPID,
  36. GETUI_APP_KEY:GETUI_APPKEY,
  37. GETUI_APP_SECRET:GETTUI_APPSECRET,
  38. APP_ID:APPLICATION_ID
  39. ]
  40. }
  41. debug {
  42. minifyEnabled false
  43. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  44. signingConfig signingConfigs.eros
  45. manifestPlaceholders=[
  46. GETUI_APP_ID:GETUI_APPID,
  47. GETUI_APP_KEY:GETUI_APPKEY,
  48. GETUI_APP_SECRET:GETTUI_APPSECRET,
  49. APP_ID:APPLICATION_ID
  50. ]
  51. }
  52. }
  53. lintOptions {
  54. checkReleaseBuilds false
  55. // Or, if you prefer, you can continue to check for errors in release builds,
  56. // but continue the build even when errors are found:
  57. abortOnError false
  58. }
  59. productFlavors {
  60. samplechannel{
  61. dimension 'default'
  62. }
  63. yingyongbao{
  64. dimension 'default'
  65. }
  66. }
  67. productFlavors.all {
  68. flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
  69. }
  70. }
  71. repositories {
  72. mavenCentral()
  73. google()
  74. }
  75. dependencies {
  76. compile fileTree(include: ['*.jar'], dir: 'libs')
  77. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  78. exclude group: 'com.android.support', module: 'support-annotations'
  79. })
  80. compile "com.android.support:support-v4:${PROJECT_SUPPORTLIBVERSION}"
  81. testCompile 'junit:junit:4.12'
  82. //基础库
  83. compile project(':nexus')
  84. compile project(':wxframework')
  85. }