apply plugin: 'com.android.application' //apply from: 'tinker-support.gradle' apply plugin: 'com.mob.sdk' android { packagingOptions { exclude 'META-INF/rxjava.properties' } lintOptions { disable 'GoogleAppIndexingWarning' } aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false signingConfigs { signconfig { /*keyAlias 'aft' keyPassword '17454938' storeFile file('D:/yy/demo/android/android/app/aft.jks') storePassword '17454938'*/ keyAlias KEY_ALIAS keyPassword KEYSTORE_PASSWORD storeFile file(KEY_PATH) storePassword KEY_PASSWORD } } compileSdkVersion 29 defaultConfig { applicationId "com.lbs.aft" minSdkVersion 17 targetSdkVersion 29 versionCode 32 versionName "3.4.2" multiDexEnabled true testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' vectorDrawables.useSupportLibrary = true ndk { //设置支持的SO库架构 abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a' } /* manifestPlaceholders = [ JPUSH_PKGNAME: applicationId, JPUSH_APPKEY : "dbcea43366e038073452a04e", //JPush 上注册的包名对应的 Appkey. JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可. ]*/ } applicationVariants.all { variant -> variant.outputs.all { output -> // each 或者 all //这里修改apk文件名 def fileName ="jt_"+ "${defaultConfig.versionCode}_" + "${defaultConfig.versionName}" + "_${variant.buildType.name}" + ".apk" def outFile = output.outputFile if (outFile != null && outFile.name.endsWith('.apk')) { outputFileName = fileName // output.outputFile 改为 outputFileName } } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.signconfig } debug { signingConfig signingConfigs.signconfig } } sourceSets { main { jniLibs.srcDirs = ['libs'] } } } /*MobSDK { appKey "2844890fbf8ba" appSecret "02473bf17aa095ce91838a9467fd98ac" ShareSDK { devInfo { QQ { appId "1106400190" appKey "3hiBU15nyfvj3wHE" shareByAppClient true bypassApproval false } SinaWeibo { appKey "1641506023" appSecret "f52937be593a59a019ab8aad5d6e802e" shareByAppClient true } Wechat { appId "wx3b3b2b5b698d8907" appSecret "d5e6cc625d9b610ed09101a65b775ad4" shareByAppClient true } WechatMoments { appId "wx3b3b2b5b698d8907" appSecret "d5e6cc625d9b610ed09101a65b775ad4" shareByAppClient true } } } }*/ dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'androidx.appcompat:appcompat:1.0.0' implementation 'com.lzy.net:okgo:3.0.4' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'com.google.android.material:material:1.0.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.recyclerview:recyclerview:1.0.0' testImplementation 'junit:junit:4.12' implementation 'com.github.arcadefire:nice-spinner:1.3.4' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0' implementation 'com.github.chaychan:BottomBarLayout:1.1.2' implementation 'cn.bingoogolapple:bga-titlebar:1.0.8@aar' implementation 'com.github.bumptech.glide:glide:4.5' implementation 'com.youth.banner:banner:1.4.9' annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1' implementation 'com.zaaach:toprightmenu:1.1.2' //评价星星 implementation 'com.github.ome450901:SimpleRatingBar:1.4.2' //smart刷新框架 implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.2-alpha-8' //加载弹窗 implementation 'com.github.ForgetAll:LoadingDialog:v1.0.1' implementation project(path: ':network') implementation project(path: ':citylist') implementation 'jp.wasabeef:richeditor-android:1.2.2' /* //bugly implementation 'com.tencent.bugly:crashreport_upgrade:1.3.6' implementation 'com.tencent.tinker:tinker-android-lib:1.9.9' implementation 'com.tencent.bugly:nativecrashreport:2.2.0'*/ //implementation 'com.tencent.bugly:crashreport_upgrade:1.3.5' //implementation 'com.tencent.bugly:nativecrashreport:3.3.1' //implementation 'com.tencent.tinker:tinker-android-lib:1.9.6' implementation 'androidx.multidex:multidex:2.0.0' //图片选择 implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.2.3' /* //jpush implementation 'cn.jiguang.sdk:jpush:3.1.6' // 此处以JPush 3.1.6 版本为例。 implementation 'cn.jiguang.sdk:jcore:1.2.5' // 此处以JCore 1.2.5 版本为例。*/ //自定义tab+viewpager implementation 'com.liliang4869:tab:1.0.1' //权限 implementation 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.4@aar' /*implementation 'io.reactivex.rxjava2:rxjava:2.2.3' implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'*/ //微信分享 // implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+' }