123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- 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.welcome"
- multiDexEnabled true
- }
- minSdkVersion min_sdk_version
- targetSdkVersion target_sdk_version
- versionCode app_version_code
- versionName app_version
- dataBinding {
- enabled = true
- }
- }
- lintOptions {
- abortOnError false
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- sourceSets {
- main.java.srcDirs += 'src/main/code'
- if(componentTag){
- main.manifest.srcFile 'src/main/ApkBuildDir/AndroidManifest.xml'
- }else{
- main.manifest.srcFile 'src/main/AndroidManifest.xml'
- main.java {
- exclude 'apkbuild/**'
- }
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- }
- dependencies {
- compile fileTree(include: ['*.jar'], dir: 'libs')
- /**
- * constraint-layout布局依赖
- */
- implementation("androidx.constraintlayout:constraintlayout:2.1.4")
- /**
- * 单元测试
- */
- testCompile 'junit:junit:4.12'
- /**
- * 公共库依赖
- */
- compile project(':middleware')
- /**
- * Dagger编译依赖
- */
- kapt 'com.google.dagger:dagger-compiler:2.7'
- /**
- * 路由注解处理器
- */
- kapt "com.enation.geamtear:jrouter-compiler:$router_version"
- }
- /**
- * kawo组件化框架配置
- */
- if(componentTag){
- kawo {
- /**
- * Aop注解排除Jar
- */
- aspectExcludeJarFilter 'com.enation.geamtear.pay','AlipaySdk'
- }
- }
|