oasystem/oamodule/build.gradle
2022-04-26 10:04:53 +08:00

65 lines
2.3 KiB
Groovy

if (!IsModuleDev.toBoolean()) {
apply plugin: 'com.android.application'
} else {
apply plugin: 'com.android.library'
}
apply plugin: 'com.jakewharton.butterknife'
apply plugin: 'android-aspectjx'
android {
buildToolsVersion rootProject.ext.gBuildToolsVersion
compileSdkVersion rootProject.ext.gCompileSdkVersion
defaultConfig {
minSdkVersion rootProject.ext.gMinSdkVersion
targetSdkVersion rootProject.ext.gCompileSdkVersion
versionCode rootProject.ext.gVersionCode
versionName rootProject.ext.gVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
ndk {
abiFilters "armeabi", "armeabi-v7a"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
implementation(name: 'and42', ext: 'aar')
implementation(name: 'inkframework', ext: 'aar')
implementation(name: 'inkutils', ext: 'aar')
implementation(name: 'oldframework', ext: 'aar')
implementation(name: 'recognizer', ext: 'aar')
implementation(name: 'ShareLibs', ext: 'aar')
implementation(name: 'utils', ext: 'aar')
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.2.1'
implementation project(':baselib')
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
//Arouter
annotationProcessor "com.alibaba:arouter-compiler:$rootProject.ext.gRouterCompileVersion"
//butterknife
annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.ext.gButterKnifeVersion"
}