123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- apply plugin: 'com.android.library'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-kapt'
- apply plugin: 'kotlin-android-extensions'
- android {
- compileSdkVersion cfgs.compileSdkVersion
- defaultConfig {
- minSdkVersion cfgs.minSdkVersion
- targetSdkVersion cfgs.targetSdkVersion
- versionCode cfgs.versionCode
- versionName cfgs.versionName
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [AROUTER_MODULE_NAME: project.getName()]
- }
- }
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- multiDexEnabled true
- }
- lintOptions {
- abortOnError false
- }
- packagingOptions {
- doNotStrip '*/mips/*.so'
- doNotStrip '*/mips64/*.so'
- exclude 'META-INF/atomicfu.kotlin_module'
- }
- dataBinding {
- enabled = true
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- buildConfigField "String", "WX_APPID", cfgs.wx_appid
- buildConfigField "String", "IMG_URL", cfgs.release_img_url
- buildConfigField "String", "APPNAME", cfgs.projectName
- buildConfigField 'String', 'BASE_URL', '"http://ubm.uxskj.com/"'
- }
- debug {
- buildConfigField "String", "WX_APPID", cfgs.wx_appid
- buildConfigField "String", "IMG_URL", cfgs.test_img_url
- buildConfigField "String", "APPNAME", cfgs.projectName
- buildConfigField 'String', 'BASE_URL', '"http://ubmtest.uxskj.com/"'
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- repositories {
- flatDir {
- dirs 'BSBaidu/libs'
- }
- jcenter()
- maven {
- url "https://maven.google.com"
- }
- }
- }
- dependencies {
- api fileTree(include: ['*.jar'], dir: 'libs')
- api "androidx.appcompat:appcompat:${cfgs.appcompat_version}"
- 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', {
- exclude group: 'com.android.support', module: 'support-annotations'
- })
- api("androidx.activity:activity-ktx:${cfgs.activity_version}")
- api("androidx.fragment:fragment-ktx:${cfgs.fragment_version}")
- // api "com.google.android.material:material:${cfgs.version_appcompat}"
- api 'com.android.support:multidex:1.0.3'
- api 'pub.devrel:easypermissions:1.0.1'
- //BSTabBar 需要
- api 'com.nineoldandroids:library:2.4.0'
- api "androidx.recyclerview:recyclerview:${cfgs.version_recyclerview}"
- api "com.alibaba:arouter-api:${cfgs.arouter_version}"
- kapt "com.alibaba:arouter-compiler:${cfgs.arouter_version}"
- api 'com.alibaba:fastjson:1.1.70.android'
- api 'com.squareup.retrofit2:retrofit:2.3.0'
- api 'com.squareup.retrofit2:converter-gson:2.3.0'
- api 'com.squareup.retrofit2:adapter-rxjava:2.3.0'
- api 'com.squareup.retrofit2:adapter-rxjava2:2.2.0'
- api 'com.squareup.retrofit2:converter-scalars:2.3.0'
- api 'com.squareup.okhttp3:logging-interceptor:3.4.1'
- api 'io.reactivex.rxjava2:rxjava:2.1.5'
- api 'com.github.donkingliang:GroupedRecyclerViewAdapter:2.4.0'
- api 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-17'
- //没有使用特殊Header,可以不加这行
- api 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0-alpha-17'
- api 'io.reactivex.rxjava2:rxandroid:2.0.1'
- api 'com.github.bumptech.glide:glide:4.7.1'
- api('com.github.bumptech.glide:glide:4.7.1') {
- exclude group: "com.android.support"
- }
- api 'com.jakewharton.rxbinding:rxbinding:0.4.0'
- implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.16'
- //GifImageView
- api 'net.zetetic:android-database-sqlcipher:4.0.1@aar'
- //butterknife 8.8与gradle 3.0冲突
- api 'com.jakewharton:butterknife:8.4.0'
- annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
- implementation 'com.airbnb.android:lottie:2.5.4'
- api 'com.xgr.easypay:EasyPay:1.0.2'
- api 'com.qmuiteam:qmui:1.1.3'
- // api 'com.zhy:okhttputils:2.6.2'
- // api 'com.gyf.barlibrary:barlibrary:2.3.0'
- api 'com.gyf.immersionbar:immersionbar:3.0.0'
- api 'com.gyf.immersionbar:immersionbar-components:3.0.0'
- api 'com.gyf.immersionbar:immersionbar-ktx:3.0.0'
- api 'com.tencent.bugly:crashreport:2.8.6.0'
- //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9
- api 'com.tencent.bugly:nativecrashreport:3.6.0.1'
- //其中latest.release指代最新Bugly NDK版本号,也可以指定明确的版本号,例如3.0
- //友盟
- // api 'com.umeng.umsdk:analytics:8.0.0'
- // api 'com.umeng.umsdk:common:2.0.0'
- api files('libs/analytics-8.0.0.jar')
- api files('libs/common-2.0.0.jar')
- //PDF
- // api 'com.github.barteksc:android-pdf-viewer:2.8.2'
- // api project(':BSZxing')
- api project(':BSZbar')
- api project(':BSSpeech')
- api project(':BSUpdate')
- // api project(':BSBaidu')
- implementation files('libs/jdom.jar')
- api 'com.android.support:support-compat:25.1.1'
- api 'com.daimajia.easing:library:2.0@aar'
- api 'com.daimajia.androidanimations:library:2.2@aar'
- implementation 'com.aliyun.dpa:oss-android-sdk:2.9.5'
- api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
- //极光推送
- api 'cn.jiguang.sdk:jpush:3.5.0' // 此处以JPush 3.4.0 版本为例。
- api 'cn.jiguang.sdk:jcore:2.2.4'
- api 'com.github.li-xiaojun:XPopup:2.4.3'
- // room
- // implementation("androidx.room:room-runtime:${cfgs.room_version}")
- // implementation("androidx.room:room-ktx:${cfgs.room_version}")
- // kapt "androidx.room:room-compiler:${cfgs.room_version}"
- api("androidx.room:room-runtime:${cfgs.room_version}") {
- exclude(group:'org.xerial')
- }
- kapt("androidx.room:room-compiler:${cfgs.room_version}"){
- exclude(group:'org.xerial')
- }
- api("androidx.room:room-ktx:${cfgs.room_version}"){
- exclude(group:'org.xerial')
- }
- api 'org.xerial:sqlite-jdbc:3.34.0'
- }
|