123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- if (componentTag){
- apply plugin: 'com.android.application'
- apply plugin: 'com.enation.javashop.aspectjrt'
- }else{
- apply plugin: 'com.android.library'
- }
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-android-extensions'
- apply plugin: 'kotlin-kapt'
- kapt {
- arguments {
- arg("moduleName", project.getName())
- }
- }
- android {
- compileSdkVersion target_sdk_version
- buildToolsVersion build_tools_version
- defaultConfig {
- if (componentTag){
- applicationId "com.wdkl.ncs.android.component.nursehome"
- multiDexEnabled true
- }
- minSdkVersion min_sdk_version
- targetSdkVersion target_sdk_version
- versionCode app_version_code
- versionName app_version
- dataBinding {
- enabled = true
- }
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- buildConfigField "String", "BUILD_TIME", getDate()
- }
- lintOptions {
- abortOnError false
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- sourceSets {
- println 'config app_device_type ===== ' + app_device_type
- if ("zk_h10_w_ke_1" == app_device_type) {
- //
- } else if ("zk_h10_z_3128_1" == app_device_type) {
- main.java.srcDirs += 'src/main/zk_h10_z3128_1h/java'
- main.res.srcDirs += 'src/main/zk_h10_z3128_1h/res'
- main.manifest.srcFile 'src/main/zk_h10_z3128_1h/AndroidManifest.xml'
- }
- }
- }
- //获取编译日期
- String getDate() {
- Date date = new Date();
- String dates = "\""+date.format("yyyy年MM月dd日", TimeZone.getTimeZone("UTC"))+"\"";
- return dates;
- }
- dependencies {
- compile fileTree(dir: 'libs', include: ['*.jar'])
- androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
- exclude group: 'com.android.support', module: 'support-annotations'
- })
- /**
- * 单元测试
- */
- testCompile 'junit:junit:4.12'
- /**
- * Android基础依赖库
- */
- compile "com.android.support:design:$support_library_version"
- compile "com.android.support:support-v4:$support_library_version"
- compile "com.android.support:cardview-v7:$support_library_version"
- compile "com.android.support:appcompat-v7:$support_library_version"
- /**
- * 公共库依赖
- */
- compile project(':middleware')
- if(componentTag){
- 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'
- }
- /**
- * Dagger编译依赖
- */
- kapt 'com.google.dagger:dagger-compiler:2.7'
- /**
- * Kotlin依赖
- */
- kapt 'com.android.databinding:compiler:2.3.3'
- /**
- * 路由注解处理器
- */
- kapt "com.enation.geamtear:jrouter-compiler:$router_version"
- /**
- * constraint-layout布局依赖
- */
- compile 'com.android.support.constraint:constraint-layout:1.1.0-beta5'
- //compile 'com.github.anrwatchdog:anrwatchdog:1.3.0'
- //使用xCrash捕获异常
- implementation 'com.iqiyi.xcrash:xcrash-android-lib:3.0.0'
- //compile project(':starRTC')
- //compile project(':AmDemo_R')
- //web rtc
- //compile project(':webrtc')
- //compile project(':rtc-chat')
- //janus信令
- compile project(':janus')
- implementation 'org.webrtc:google-webrtc:1.0.32006'
- //串口
- compile project(':nurseMainLib')
- compile project(':listenvision')
- }
- /**
- * kawo组件化框架配置
- */
- if(componentTag){
- kawo {
- /**
- * Aop注解排除Jar
- */
- aspectExcludeJarFilter 'com.enation.geamtear.pay','AlipaySdk'
- }
- }
|