123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- 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.home"
- 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 {
- if ("v_h8_ke_1h" == app_device_type) {
- main.java.srcDirs += 'src/main/h8_ke_1h/java'
- main.res.srcDirs += 'src/main/h8_ke_1h/res'
- main.manifest.srcFile 'src/main/h8_ke_1h/AndroidManifest.xml'
- } else if ("v_h10_yld_1h" == app_device_type) {
- main.java.srcDirs += 'src/main/h10_yld_1h/java'
- main.res.srcDirs += 'src/main/h10_yld_1h/res'
- main.manifest.srcFile 'src/main/h10_yld_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: ['*.aar'])
- 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布局依赖
- */
- implementation 'com.android.support.constraint:constraint-layout:1.1.0-beta5'
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
- compile 'com.github.anrwatchdog:anrwatchdog:1.3.0'
- // compile project(':starRTC')
- // compile project(':AmDemo_R')
- //web rtc
- //compile project(':webrtc')
- //compile project(':libwebrtc')
- //compile project(':rtc-chat')
- //compile project(':keepalive')
- compile project(':janus')
- }
- /**
- * kawo组件化框架配置
- */
- if (componentTag) {
- kawo {
- /**
- * Aop注解排除Jar
- */
- aspectExcludeJarFilter 'com.enation.geamtear.pay', 'AlipaySdk'
- }
- }
- repositories {
- }
|