123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-android-extensions'
- apply plugin: 'kotlin-kapt'
- //apply plugin: 'com.enation.javashop.aspectjrt'
- kapt {
- arguments {
- arg("moduleName", project.getName())
- }
- }
- android {
- // wuyq add for sign begin
- signingConfigs {
- release {
- storeFile file("keystore_wuyuqing_3128/rk3128.jks")
- storePassword "111111"
- keyAlias "rk3128"
- keyPassword "111111"
- }
- debug {
- storeFile file("keystore_wuyuqing_3128/rk3128.jks")
- storePassword "111111"
- keyAlias "rk3128"
- keyPassword "111111"
- }
- }
- // wuyq add for sign end
- compileSdkVersion target_sdk_version
- buildToolsVersion build_tools_version
- aaptOptions.cruncherEnabled = false
- aaptOptions.useNewCruncher = false
- aaptOptions.noCompress("mp3","wav")
- defaultConfig {
- if ("fj_h5_z_3128_1" == app_device_type) {
- //3128 5寸分机
- applicationId "com.wdkl.app.ncs.callingbed"
- } else if ("fj_h7_z_3128_1" == app_device_type || "fj_h7_z_3128_2" == app_device_type) {
- //3128 7寸分机
- applicationId "com.wdkl.app.ncs.callingbed2"
- } else if (app_device_type == "fj_h10_w_yld_1") {
- //亿莱顿10寸分机
- applicationId "com.wdkl.app.ncs.callingbed2"
- }
- minSdkVersion min_sdk_version
- targetSdkVersion target_sdk_version
- versionCode app_version_code
- versionName app_version
- multiDexEnabled true
- dataBinding {
- enabled = true
- }
- ndk {
- //选择要添加的对应cpu类型的.so库。
- //abiFilters 'armeabi', 'armeabi-v7a', 'armeabi-v8a' ,'x86', 'x86_64', 'mips', 'mips64'
- abiFilters 'armeabi-v7a', 'armeabi-v8a'
- }
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- }
- buildTypes {
- release {
- signingConfig signingConfigs.release
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- debug {
- signingConfig signingConfigs.debug
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- sourceSets {
- main.java.srcDirs += 'src/main/code'
- //不同设备使用不同的manifest文件
- if ("fj_h5_z_3128_1" == app_device_type || "fj_h7_z_3128_1" == app_device_type || "fj_h7_z_3128_2" == app_device_type) {
- main.manifest.srcFile 'src/main/sharedUserId/AndroidManifest.xml'
- } else {
- main.manifest.srcFile 'src/main/AndroidManifest.xml'
- }
- }
- lintOptions{
- checkReleaseBuilds false
- abortOnError false
- }
- dexOptions {
- javaMaxHeapSize "4g"
- jumboMode=true
- preDexLibraries=true
- threadCount=8
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- }
- dependencies {
- //compile fileTree(include: ['*.jar'], dir: 'libs')
- androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
- exclude group: 'com.android.support', module: 'support-annotations'
- })
- /**
- * 单元测试
- */
- testCompile 'junit:junit:4.12'
- /**
- * Dagger编译依赖
- */
- kapt 'com.google.dagger:dagger-compiler:2.7'
- /**
- * 内存泄漏监控
- */
- debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1'
- releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
- testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
- /**
- * Kotlin依赖
- */
- kapt 'com.android.databinding:compiler:2.3.3'
- /**
- * 路由注解处理器
- */
- kapt "com.enation.geamtear:jrouter-compiler:$router_version"
- /**
- * 外部化Moudle配置
- * moudle独立编译配置
- */
- compile project(':welcome')
- compile project(':android_bed')
- /**
- * JavaShopAndroid 中间件依赖库
- */
- compile project(':middleware')
- /**
- * constraint-layout布局依赖
- */
- compile 'com.android.support.constraint:constraint-layout:1.1.0-beta5'
- }
|