| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501 |
- apply plugin: 'com.android.application'
- apply plugin: 'com.jakewharton.butterknife'
- apply plugin: 'org.greenrobot.greendao'
- //apply plugin: 'com.didi.virtualapk.host'
- android {
- compileSdkVersion ANDROID_COMPILE_SDK_VERSION as int
- defaultConfig {
- applicationId "com.sheep.jiuyan.samllsheep"
- minSdkVersion ANDROID_MIN_SDK_VERSION as int
- targetSdkVersion ANDORID_TARGET_SDK_VERSION as int
- versionCode VERSION_CODE as int
- versionName VERSION_NAME
- multiDexEnabled true
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- ndk {
- abiFilters "armeabi-v7a"//,"arm64-v8a",, 'x86'//, 'armeabi-v7a', 'x86_64', 'arm64-v8a'
- }
- // jackOptions {
- // enabled true
- // }
- flavorDimensions "versionCode"
- packagingOptions {
- exclude 'META-INF/proguard/androidx-annotations.pro'
- }
- }
- greendao {
- schemaVersion 21
- targetGenDir 'src/main/java'
- }
- signingConfigs {
- config {
- keyAlias 'sheep'
- keyPassword 'zhaoyi2004'
- storeFile file('.././sign.jks')
- storePassword 'zhaoyi2004'
- v1SigningEnabled true
- v2SigningEnabled false
- }
- }
- lintOptions {
- abortOnError false
- disable 'MissingTranslation'
- }
- dexOptions {
- preDexLibraries = false
- javaMaxHeapSize "6g"
- }
- packagingOptions {
- exclude 'META-INF/services/com.fasterxml.jackson.core.JsonFactory'
- exclude "**/module-info.class"
- exclude 'META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version'
- exclude 'META-INF/androidx.customview_customview.version'
- exclude 'META-INF/androidx.legacy_legacy-support-core-ui.version'
- exclude 'META-INF/androidx.drawerlayout_drawerlayout.version'
- exclude 'META-INF/androidx.interpolator_interpolator.version'
- exclude 'META-INF/androidx.legacy_legacy-support-core-utils.version'
- exclude 'META-INF/androidx.slidingpanelayout_slidingpanelayout.version'
- exclude 'META-INF/androidx.appcompat_appcompat.version'
- exclude 'META-INF/androidx.swiperefreshlayout_swiperefreshlayout.version'
- exclude 'META-INF/androidx.print_print.version'
- exclude 'META-INF/androidx.documentfile_documentfile.version'
- exclude 'META-INF/androidx.loader_loader.version'
- exclude 'META-INF/androidx.viewpager_viewpager.version'
- exclude 'META-INF/androidx.coordinatorlayout_coordinatorlayout.version'
- exclude 'META-INF/androidx.versionedparcelable_versionedparcelable.version'
- exclude 'META-INF/androidx.cursoradapter_cursoradapter.version'
- exclude 'META-INF/androidx.fragment_fragment.version'
- exclude 'META-INF/androidx.vectordrawable_vectordrawable.version'
- exclude 'META-INF/androidx.asynclayoutinflater_asynclayoutinflater.version'
- exclude 'META-INF/androidx.core_core.version'
- exclude 'META-INF/androidx.vectordrawable_vectordrawable-animated.version'
- }
- buildTypes {
- release {
- minifyEnabled true
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- signingConfig signingConfigs.config
- }
- debug {
- signingConfig signingConfigs.config
- }
- }
- productFlavors.all { flavor ->
- flavor.manifestPlaceholders = [DUANDUAN_GRAPH : "${flavor.name}",
- DUANDUAN_DATASHARE: "${flavor.name}",
- ]
- }
- productFlavors {
- developSheeptest {
- applicationId "com.sheep.jiuyan.samllsheep"
- manifestPlaceholders = [DUANDUAN_GRAPH : "sheeptest",
- DUANDUAN_DATASHARE: "sheeptest",
- jpush_appkey : "627ffad0b1cdf701d15e027a",
- umeng_app_key : "5ab0a1da8f4a9d742900035f"
- ]
- buildConfigField "String", "DUANDUAN_DATASHARE", '"sheeptest"'
- buildConfigField "String", "DUANDUAN_GRAPH", '"sheeptest"'
- resValue "string", "app_name", "小绵羊测试"
- buildConfigField "boolean", "XXTEA_ENCRYPT", 'true'
- signingConfig signingConfigs.config
- }
- sheeptestjiguang {
- applicationId "com.sheep.jiuyan.samllsheep.test"
- manifestPlaceholders = [DUANDUAN_GRAPH : "sheeptestjiguang",
- DUANDUAN_DATASHARE: "sheeptestjiguang",
- jpush_appkey : "627ffad0b1cdf701d15e027a",
- umeng_app_key : "5ab0a1da8f4a9d742900035f"
- ]
- buildConfigField "String", "DUANDUAN_DATASHARE", '"sheeptestjiguang"'
- buildConfigField "String", "DUANDUAN_GRAPH", '"sheeptestjiguang"'
- resValue "string", "app_name", "小绵羊极光测试"
- buildConfigField "boolean", "XXTEA_ENCRYPT", 'true'
- signingConfig signingConfigs.config
- }
- sheep {
- applicationId "com.sheep.jiuyan.samllsheep"
- manifestPlaceholders = [DUANDUAN_GRAPH : "sheep",
- DUANDUAN_DATASHARE: "sheep",
- jpush_appkey : "28b74d520261c6f78e3e0921",
- umeng_app_key : "5ab0a1da8f4a9d742900035f"
- ]
- buildConfigField "String", "DUANDUAN_DATASHARE", '"sheep"'
- buildConfigField "String", "DUANDUAN_GRAPH", '"sheep"'
- resValue "string", "app_name", "小绵羊"
- buildConfigField "boolean", "XXTEA_ENCRYPT", 'true'
- signingConfig signingConfigs.config
- }
- }
- sourceSets {
- main() {
- jniLibs.srcDirs = ['src/main/libs']
- jni.srcDirs = [] //屏蔽掉默认的jni编译生成过程
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- }
- repositories {
- flatDir {
- dirs 'libs'
- }
- google()
- }
- configurations.all {
- resolutionStrategy.eachDependency { DependencyResolveDetails details ->
- def requested = details.requested
- if (requested.group == 'com.android.support') {
- if (!requested.name.startsWith("multidex")) {
- details.useVersion "$supportLibVersion"
- }
- }
- }
- }
- dependencies {
- implementation "com.android.support:support-v4:$supportLibVersion"
- //noinspection GradleCompatible
- implementation "com.android.support:cardview-v7:$supportLibVersion"
- implementation("com.android.support:design:$supportLibVersion") {
- exclude group: 'com.android.support', module: 'support-annotations'
- exclude group: 'com.android.support', module: 'support-compat'
- exclude group: 'com.android.support', module: 'support-core-ui'
- exclude group: 'com.android.support', module: 'support-core-utils'
- exclude group: 'com.android.support', module: 'support-fragment'
- exclude group: 'com.android.support', module: 'transition'
- exclude group: 'com.android.support', module: 'appcompat-v7'
- exclude group: 'com.android.support', module: 'cardview-v7'
- exclude group: 'com.android.support', module: 'recyclerview-v7'
- }
- implementation 'com.android.support.constraint:constraint-layout:1.1.3'
- testImplementation 'junit:junit:4.12'
- implementation 'com.google.code.gson:gson:2.8.2'
- // implementation 'com.shark:screencapture:1.0.0'
- implementation('com.jcodecraeer:xrecyclerview:1.5.9') {
- exclude group: 'com.android.support', module: 'design'
- exclude group: 'com.android.support', module: 'recyclerview'
- exclude group: 'com.android.support', module: 'appcompat'
- }
- implementation 'com.squareup.wire:wire-runtime:3.6.0'
- implementation 'com.squareup.okhttp3:okhttp:3.11.0'
- implementation 'org.greenrobot:eventbus:3.1.1'
- // implementation 'com.zhy:base-adapter:3.0.3'
- // implementation 'com.liulishuo.filedownloader:library:1.6.9'
- implementation 'com.tencent.bugly:crashreport_upgrade:1.3.5'
- implementation(name: 'alipaySdk-15.5.9', ext: 'aar')
- implementation(name: 'ad_dk_sdk', ext: 'aar')
- implementation(name: 'klevinSDK_2.0.0.21', ext: 'aar')
- implementation(name: 'lygamewrapper-sheep-release', ext: 'aar'){
- exclude group: 'com.google.android',module: 'exoplayer2'
- }
- //其中latest.release指代最新版本号,也可以指定明确的版本号,例如1.2.0
- implementation 'com.tencent.bugly:nativecrashreport:3.3.1'
- //其中latest.release指代最
- implementation "com.tencent.mm.opensdk:wechat-sdk-android-with-mta:5.1.6"
- // implementation 'de.hdodenhof:circleimageview:2.2.0'
- implementation 'org.xutils:xutils:3.5.0'
- // implementation 'com.mylhyl:acp:1.1.7'
- implementation('cn.yipianfengye.android:zxing-library:2.2') {
- exclude group: 'com.android.support', module: 'appcompat-v7'
- exclude group: 'com.android.support', module: 'support-v4'
- }
- implementation(name: 'newbie-guide-2.4.0.1', ext: 'aar')
- debugImplementation 'com.android.support:multidex:1.0.1'
- //不要修改这里,相信我
- releaseImplementation 'com.android.support:multidex:1.0.3'
- implementation(name: 'com.kfzs.safe-201809211354', ext: 'aar')
- //butterknife
- implementation('com.jakewharton:butterknife:8.8.1') {
- exclude group: 'com.android.support', module: 'support-annotations'
- exclude group: 'com.android.support', module: 'support-compat'
- // exclude group: 'com.jakewharton', module: 'butterknife-annotations'
- }
- annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
- //dagger2
- // implementation 'com.google.dagger:dagger:+'
- // implementation 'com.google.dagger:dagger-compiler:+'
- compileOnly 'org.glassfish:javax.annotation:10.0-b28'
- //javax.annotation', module: 'jsr250-api
- implementation 'com.google.dagger:dagger:2.12'
- //javax.inject', module: 'javax.inject
- annotationProcessor 'com.google.dagger:dagger-compiler:2.12'
- //retrofit
- implementation('com.squareup.retrofit2:retrofit:2.4.0') {
- exclude group: 'com.google.android', module: 'android'
- exclude group: 'com.squareup.okhttp3', module: 'okhttp'
- exclude group: 'org.codehaus.mojo', module: 'animal-sniffer-annotations'
- }
- //不知道接进来干嘛的,与当前的oaid冲突
- //implementation(name: 'msa_mdid_1.0.13', ext: 'aar')
- implementation(name: 'oaid_sdk_1.0.25', ext: 'aar')
- implementation(name: 'JasmineSDK_v1.2.5', ext: 'aar')
- // implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
- implementation('org.ligboy.retrofit2:converter-fastjson-android:2.1.0') {
- exclude group: 'com.alibaba', module: 'fastjson'
- exclude group: 'com.squareup.retrofit2', module: 'retrofit'
- }
- // implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
- // implementation 'com.squareup.retrofit2:adapter-rxjava2:+'
- // implementation ('com.squareup.retrofit2:adapter-rxjava:2.1.0') {
- // exclude group: 'com.squareup.retrofit2', module: 'retrofit'
- // }
- implementation('com.squareup.retrofit2:adapter-rxjava2:2.5.0') {
- exclude group: 'com.squareup.retrofit2', module: 'retrofit'
- exclude group: 'io.reactivex.rxjava2', module: 'rxjava'
- }
- //rxjava
- implementation('io.reactivex.rxjava2:rxandroid:2.1.0') {
- exclude group: 'io.reactivex.rxjava2', module: 'rxjava'
- }
- implementation 'io.reactivex.rxjava2:rxjava:2.2.3'
- //获取动态权限三方库
- implementation('pub.devrel:easypermissions:1.2.0') {
- exclude group: 'com.android.support', module: 'appcompat-v7'
- exclude group: 'com.android.support', module: 'support-compat'
- exclude group: 'com.android.support', module: 'support-fragment'
- }
- // implementation 'net.danlew:android.joda:2.9.3'
- // implementation 'com.orhanobut:logger:1.15'
- //友盟
- implementation 'com.umeng.sdk:common:1.5.3'
- //implementation 'com.umeng.sdk:analytics:latest.integration'
- //添加半袋米相关
- implementation(name: 'appstoreutils-201810101432', ext: 'aar')
- implementation project(':view')
- // implementation(name: 'view-release', ext: 'aar')
- // implementation 'com.flipboard:bottomsheet-core:1.5.3'
- // implementation 'com.flipboard:bottomsheet-commons:1.5.3'
- implementation files('libs/open_sdk_r5923_lite.jar')
- // implementation files('libs/wechat-sdk-android-with-mta-1.1.6.jar')
- implementation files('libs/umeng_social_tool.jar')
- implementation files('libs/umeng_social_shareboard.jar')
- implementation files('libs/umeng_social_net.jar')
- implementation files('libs/umeng_social_api.jar')
- implementation files('libs/umeng_shareboard_widget.jar')
- implementation files('libs/SocialSDK_WeiXin_Full.jar')
- implementation files('libs/SocialSDK_QQ_Full.jar')
- implementation('com.zhy:okhttputils:2.6.2') {
- exclude group: 'com.squareup.okhttp3', module: 'okhttp'
- }
- implementation "com.android.support:support-annotations:$supportLibVersion"
- implementation("com.android.support:recyclerview-v7:$supportLibVersion") {
- exclude group: 'com.android.support', module: 'support-annotations'
- exclude group: 'com.android.support', module: 'support-compat'
- exclude group: 'com.android.support', module: 'support-core-ui'
- }
- implementation('com.github.ithedan:TextViewDrawable:v1.0') {
- exclude group: 'com.android.support', module: 'appcompat-v7'
- }
- // implementation 'com.github.zhangkexpz:LayoutScroll:v1.0'
- // implementation 'me.iwf.photopicker:PhotoPicker:0.9.12@aar'
- implementation(name: 'PhotoPicker-release-20200506', ext: 'aar')
- implementation('com.github.bumptech.glide:glide:4.9.0') {
- exclude group: 'com.android.support', module: 'support-fragment'
- // exclude group: 'com.github.bumptech.glide', module: 'gifdecoder'
- // exclude group: 'com.github.bumptech.glide', module: 'disklrucache'
- // exclude group: 'com.github.bumptech.glide', module: 'annotations'
- }
- annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
- // implementation 'com.github.yalantis:ucrop:2.2.1-native'
- // implementation 'com.google.zxing:core:3.3.0'
- implementation project(':ucrop')
- implementation('com.sunfusheng:marqueeview:1.3.3') {
- exclude group: 'com.android.support', module: 'appcompat-v7'
- }
- //极光
- implementation files('libs/jcore-android-1.2.0.jar')
- implementation files('libs/jpush-android-3.1.2.jar')
- //定位
- implementation files('libs/BaiduLBS_Android.jar')
- //幂动科技
- implementation(name: 'mdsdk_1031_1_3_7_4', ext: 'aar')
- //轮播图
- implementation 'com.youth.banner:banner:1.4.10'
- //最新版本
- //loading
- implementation 'com.github.ybq:Android-SpinKit:1.2.0'
- // implementation 'com.github.nanchen2251:CompressHelper:1.0.5'
- // implementation(name: 'compresshelper-release', ext: 'aar')
- implementation files('libs/compresshelper-release.jar')
- implementation('com.haibin:calendarview:3.4.8') {
- exclude group: 'com.android.support', module: 'appcompat-v7'
- exclude group: 'com.android.support', module: 'recyclerview-v7'
- }
- implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-14'
- implementation 'org.greenrobot:greendao:3.2.2'
- //org.greenrobot', module: 'greendao-api
- //okDownload
- // core
- implementation 'com.liulishuo.okdownload:okdownload:1.0.5'
- // provide sqlite to store breakpoints
- implementation 'com.liulishuo.okdownload:sqlite:1.0.5'
- // provide okhttp to connect to backend
- implementation 'com.liulishuo.okdownload:okhttp:1.0.5'
- implementation('com.trello.rxlifecycle2:rxlifecycle-components:2.2.2') {
- exclude group: 'com.android.support', module: 'appcompat-v7'
- // com.trello.rxlifecycle2', module: 'rxlifecycle-android
- exclude group: 'io.reactivex.rxjava2', module: 'rxjava'
- }
- //
- // implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
- //有米科技
- implementation(name: 'YoumiSdk_v8.3.0_2018-09-20', ext: 'aar')
- implementation project(':WaterWaveProgress')
- implementation "com.android.support:exifinterface:$supportLibVersion"
- implementation('com.qiniu:qiniu-android-sdk:7.3.13') {
- exclude group: 'com.squareup.okhttp3', module: 'okhttp'
- }
- api project(':media')
- //https://github.com/didi/VirtualAPK
- // implementation 'com.didi.virtualapk:core:0.9.8'
- //fast json
- implementation 'com.alibaba:fastjson:1.2.52'
- implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.34'
- // implementation 'com.github.yangjie10930:EpMedia:v0.9.5'
- //webView 缓存优化初始化 https://github.com/yale8848/CacheWebView
- // implementation 'ren.yale.android:cachewebviewlib:2.1.4'
- implementation(name: 'cachewebviewlib-2.1.8', ext: 'aar')
- //GSYVideoPlayer https://github.com/CarGuo/GSYVideoPlayer
- implementation 'com.shuyu:gsyVideoPlayer-java:6.0.3'
- //是否需要ExoPlayer模式
- implementation 'com.shuyu:GSYVideoPlayer-exo2:6.0.2'
- implementation 'com.makeramen:roundedimageview:2.3.0'
- //https://github.com/koral--/android-gif-drawable
- implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.16'
- implementation 'androidx.annotation:annotation:1.0.1'
- //鸿途信达 广告sdk
- // implementation(name: 'ad-htxd-201901071720', ext: 'aar')
- //切换皮肤框架 https://github.com/ximsfei/Android-skin-support
- // implementation 'skin.support:skin-support:4.0.1' // skin-support
- // implementation 'skin.support:skin-support-appcompat:4.0.1' // skin-support 基础控件支持
- // implementation 'skin.support:skin-support-design:4.0.1' // skin-support-design material design 控件支持[可选]
- // implementation 'skin.support:skin-support-cardview:4.0.1' // skin-support-cardview CardView 控件支持[可选]
- // implementation 'skin.support:skin-support-constraint-layout:4.0.1' // skin-support-constraint-layout ConstraintLayout 控件支持[可选]
- implementation project(':skin-support')
- // implementation 'skin.support:skin-support:3.1.1' // skin-support 基础控件支持
- implementation 'skin.support:skin-support-design:3.1.1'
- // skin-support-design material design 控件支持[可选]
- implementation 'skin.support:skin-support-cardview:3.1.1'
- // skin-support-cardview CardView 控件支持[可选]
- implementation 'skin.support:skin-support-constraint-layout:3.1.1'
- // skin-support-constraint-layout ConstraintLayout 控件支持[可选]
- implementation 'com.r0adkll:slidableactivity:2.0.6'
- implementation project(':shortcut_lib')
- implementation 'com.github.ly-android:PermissionUtils:1.0.3'
- implementation files('libs/ipaynow_base_2.1.9_api1.0.0.jar')
- implementation files('libs/ipaynow_wechatpay_v2.0.5.jar')
- implementation(name: 'face-sdk-release', ext: 'aar')
- implementation 'com.airbnb.android:lottie:2.7.0'
- }
- static def releaseTime() {
- return new Date().format("MMddHHmm", TimeZone.getDefault())
- }
- //在apk文件后边生成版本号信息
- android.applicationVariants.all {
- variant ->
- variant.outputs.all {
- output ->
- // if (buildType.name == "release") {
- outputFileName = "${productFlavors[0].name}_${buildType.name}_v${versionName}_${versionCode}-${releaseTime()}.apk"
- // }
- }
- }
|