supervision/modulemain/build.gradle
2023-02-21 14:23:12 +08:00

91 lines
3.7 KiB
Groovy
Executable File

if (IsModule.toBoolean()) {
apply plugin: 'com.android.library'
} else {
apply plugin: 'com.android.application'
}
apply plugin: 'com.jakewharton.butterknife'
android {
compileSdkVersion rootProject.ext.gCompileSdkVersion
defaultConfig {
minSdkVersion rootProject.ext.gMinSdkVersion
targetSdkVersion rootProject.ext.gTargetSdkVersion
versionCode rootProject.ext.gVersionCode
versionName rootProject.ext.gVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
lintOptions {
disable 'GoogleAppIndexingWarning'
}
buildTypes {
debug {
minifyEnabled false
}
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 = ['jniLibs']
if (IsModule.toBoolean()) {
manifest.srcFile 'src/main/module/AndroidManifest.xml'
} else {
manifest.srcFile 'src/main/AndroidManifest.xml'
java {
exclude 'debug/**'
}
}
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// implementation files('libs/ksxy.jar')
// implementation files('libs/org.apache.http.legacy.jar')
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation "com.android.support:appcompat-v7:$rootProject.ext.gAppcompatVersion_v7"
implementation "com.android.support.constraint:constraint-layout:$rootProject.ext.gConstraint_layout"
implementation project(':cm_utils')
implementation project(':camera')
implementation project(':zxinglib')
//Arouter
annotationProcessor "com.alibaba:arouter-compiler:$rootProject.ext.gRouterCompileVersion"
//butterknife
annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.ext.gButterKnifeVersion"
implementation "io.reactivex.rxjava2:rxjava:$rootProject.ext.gRxJavaVersion"
implementation "io.reactivex.rxjava2:rxandroid:$rootProject.ext.gRxAndroid"
//RxJava
implementation "com.squareup.retrofit2:retrofit:$rootProject.ext.gRetrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$rootProject.ext.gRetrofitVersion"
implementation "com.squareup.retrofit2:adapter-rxjava2:$rootProject.ext.gRetrofitVersion"
//Gson
implementation "com.google.code.gson:gson:$rootProject.ext.gGsonVersion"
//OkHttp
implementation "com.squareup.okhttp3:okhttp:$rootProject.ext.gOkHttp3Version"
implementation "com.android.support:recyclerview-v7:$rootProject.ext.gAppcompatVersion_v7"
//选择器
implementation "com.contrarywind:Android-PickerView:$rootProject.ext.gPickerViewVersion"
implementation "com.android.support:design:$rootProject.ext.gAppcompatVersion_v7"
implementation "com.jcodecraeer:xrecyclerview:$rootProject.ext.gXRecyclerViewVersion"
//Glide
implementation "com.github.bumptech.glide:glide:$rootProject.ext.gGlideVersion"
implementation "com.nightonke:boommenu:$rootProject.ext.gBoomMenu"
}