112 lines
3.8 KiB
Groovy
112 lines
3.8 KiB
Groovy
//import org.aspectj.bridge.IMessage
|
||
//import org.aspectj.bridge.MessageHandler
|
||
//import org.aspectj.tools.ajc.Main
|
||
|
||
if (isRunModule.toBoolean()) {
|
||
apply plugin: 'com.android.application'
|
||
} else {
|
||
apply plugin: 'com.android.library'
|
||
}
|
||
//apply plugin: 'org.greenrobot.greendao' // apply plugin
|
||
|
||
android {
|
||
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
||
|
||
defaultConfig {
|
||
minSdkVersion rootProject.ext.android.minSdkVersion
|
||
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
||
versionCode rootProject.ext.android.versionCode
|
||
versionName rootProject.ext.android.versionName
|
||
javaCompileOptions {
|
||
annotationProcessorOptions {
|
||
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
||
}
|
||
}
|
||
}
|
||
|
||
buildTypes {
|
||
release {
|
||
minifyEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
}
|
||
debug {
|
||
buildConfigField "boolean", "LOG_DEBUG", "true" //不显示log
|
||
//signingConfig signingConfigs.release
|
||
}
|
||
}
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_1_8
|
||
targetCompatibility JavaVersion.VERSION_1_8
|
||
}
|
||
dataBinding {
|
||
enabled = true
|
||
}
|
||
namespace 'cn.artprofessor.module_main'
|
||
}
|
||
|
||
|
||
// aspectj start
|
||
//final def log = project.logger
|
||
//def variants
|
||
//if (isRunModule.toBoolean()) {
|
||
// variants = project.android.applicationVariants
|
||
//} else {
|
||
// variants = project.android.libraryVariants
|
||
//}
|
||
//variants.all { variant ->
|
||
// JavaCompile javaCompile = variant.javaCompile//警告:studio 3.3过时了
|
||
// javaCompile.doLast {
|
||
// String[] args = ["-showWeaveInfo",
|
||
// "-1.8",
|
||
// "-inpath", javaCompile.destinationDir.toString(),
|
||
// "-aspectpath", javaCompile.classpath.asPath,
|
||
// "-d", javaCompile.destinationDir.toString(),
|
||
// "-classpath", javaCompile.classpath.asPath,
|
||
// "-bootclasspath", project.android.bootClasspath.join(File.pathSeparator)]
|
||
// log.debug "ajc args: " + Arrays.toString(args)
|
||
//
|
||
// MessageHandler handler = new MessageHandler(true)
|
||
// new Main().run(args, handler)
|
||
// for (IMessage message : handler.getMessages(null, true)) {
|
||
// switch (message.getKind()) {
|
||
// case IMessage.ABORT:
|
||
// case IMessage.ERROR:
|
||
// case IMessage.FAIL:
|
||
// log.error message.message, message.thrown
|
||
// break
|
||
// case IMessage.WARNING:
|
||
// log.warn message.message, message.thrown
|
||
// break
|
||
// case IMessage.INFO:
|
||
// log.info message.message, message.thrown
|
||
// break
|
||
// case IMessage.DEBUG:
|
||
// log.debug message.message, message.thrown
|
||
// break
|
||
// }
|
||
// }
|
||
// }
|
||
//}
|
||
//aspectj end
|
||
|
||
dependencies {
|
||
|
||
implementation fileTree(include: ['*.?ar'], dir: 'libs')
|
||
//releaseImplementation(name: 'CellsysCoreSDK-V0.1.0', ext: 'aar')
|
||
implementation project(':common_base')
|
||
implementation project(path: ':AirkoonBaseProLib')
|
||
api 'io.github.lucksiege:pictureselector:v2.4.6'
|
||
implementation 'com.google.android.material:material:1.6.0'
|
||
implementation 'androidx.core:core:1.1.0'
|
||
implementation 'androidx.drawerlayout:drawerlayout:1.2.0'
|
||
|
||
// arouter-compiler
|
||
annotationProcessor rootProject.ext.dependencies['arouter-compiler']
|
||
annotationProcessor rootProject.ext.dependencies['glide-compiler']
|
||
implementation 'com.github.lihangleo2:ShadowLayout:2.1.5'
|
||
|
||
//下拉框组件
|
||
implementation 'com.github.arcadefire:nice-spinner:1.4.4'
|
||
|
||
|
||
} |