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" 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'] } } } 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') //Arouter annotationProcessor "com.alibaba:arouter-compiler:$rootProject.ext.gRouterCompileVersion" //butterknife annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.ext.gButterKnifeVersion" //Retrofit 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" //Rxjava implementation "io.reactivex.rxjava2:rxjava:$rootProject.ext.gRxJavaVersion" implementation "io.reactivex.rxjava2:rxandroid:$rootProject.ext.gRxAndroid" //Glide implementation "com.github.bumptech.glide:glide:$rootProject.ext.gGlideVersion" implementation "top.zibin:Luban:$rootProject.ext.gLubanVersion" implementation "cn.jzvd:jiaozivideoplayer:$rootProject.ext.gPlayerVersion" implementation "com.google.zxing:core:$rootProject.ext.gZXingVersion" implementation "com.google.zxing:android-core:$rootProject.ext.gZXingVersion" implementation "de.greenrobot:eventbus:$rootProject.ext.gEventBus" implementation "com.android.support:recyclerview-v7:$rootProject.ext.gAppcompatVersion_v7" implementation "com.android.support:design:$rootProject.ext.gAppcompatVersion_v7" implementation "com.squareup.okhttp3:okhttp:$rootProject.ext.gOkHttp3Version" implementation "com.jcodecraeer:xrecyclerview:$rootProject.ext.gXRecyclerViewVersion" implementation "com.jakewharton.rxbinding2:rxbinding:$rootProject.ext.gRxjavaBindingVersion" //选择器 implementation "com.contrarywind:Android-PickerView:$rootProject.ext.gPickerViewVersion" implementation project(path: ':modulesupertools') }