apply plugin: 'com.android.application' android { signingConfigs { release { storeFile file('/Users/adam/Documents/work/tengshi.jks') storePassword 'aaa111!!!' keyAlias = 'tengshi' keyPassword 'aaa111!!!' } debug { storeFile file('/Users/adam/Documents/work/tengshi.jks') storePassword 'aaa111!!!' keyAlias = 'tengshi' keyPassword 'aaa111!!!' } } compileSdkVersion rootProject.ext.gCompileSdkVersion defaultConfig { applicationId "com.tengshisoft.cultural" minSdkVersion rootProject.ext.gMinSdkVersion targetSdkVersion rootProject.ext.gCompileSdkVersion versionCode rootProject.ext.gVersionCode versionName rootProject.ext.gVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true ndk { abiFilters "armeabi", "armeabi-v7a", "x86", "mips" } manifestPlaceholders = [ JSHARE_PKGNAME: "com.tengshisoft.cultural", JPUSH_APPKEY : "9575fdffe323b4febdd385dd", //极光控制台创建应用得到的AppKey. JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可. TENCENT_APPID : "101880285",//腾讯开放平台注册应用得到的appId ] flavorDimensions("market") } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' android.applicationVariants.all { variant -> variant.outputs.all { outputFileName = "${variant.productFlavors[0].name}" + "-v" + defaultConfig.versionName + "-c" + defaultConfig.versionCode + ".apk" } } } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } productFlavors { sangzhuzi { applicationId "com.tenlion.cultural.sangzhuzi" dimension 'market' resValue "string", "APP_CHANNEL", "sangzhuzi" manifestPlaceholders = [CHANNEL_VALUE: "sangzhuzi", CITY_CODE: "640676"] } nanmulin { applicationId "com.tenlion.cultural.nanmulin" dimension 'market' resValue "string", "APP_CHANNEL", "nanmulin" manifestPlaceholders = [CHANNEL_VALUE: "nanmulin", CITY_CODE: "640865"] } jiangzi { applicationId "com.tenlion.cultural.jiangzi" dimension 'market' resValue "string", "APP_CHANNEL", "jiangzi" manifestPlaceholders = [CHANNEL_VALUE: "jiangzi", CITY_CODE: "641029"] } dingri { applicationId "com.tenlion.cultural.dingri" dimension 'market' resValue "string", "APP_CHANNEL", "dingri" manifestPlaceholders = [CHANNEL_VALUE: "dingri", CITY_CODE: "641204"] } sajia { applicationId "com.tenlion.cultural.sajia" dimension 'market' resValue "string", "APP_CHANNEL", "sajia" manifestPlaceholders = [CHANNEL_VALUE: "sajia", CITY_CODE: "641393"] } lazi { applicationId "com.tenlion.cultural.lazi" dimension 'market' resValue "string", "APP_CHANNEL", "lazi" manifestPlaceholders = [CHANNEL_VALUE: "lazi", CITY_CODE: "641512"] } angren { applicationId "com.tenlion.cultural.angren" dimension 'market' resValue "string", "APP_CHANNEL", "angren" manifestPlaceholders = [CHANNEL_VALUE: "angren", CITY_CODE: "641622"] } xietongmen { applicationId "com.tenlion.cultural.xietongmen" dimension 'market' resValue "string", "APP_CHANNEL", "xietongmen" manifestPlaceholders = [CHANNEL_VALUE: "xietongmen", CITY_CODE: "641825"] } bailang { applicationId "com.tenlion.cultural.bailang" dimension 'market' resValue "string", "APP_CHANNEL", "bailang" manifestPlaceholders = [CHANNEL_VALUE: "bailang", CITY_CODE: "641940"] } renbu { applicationId "com.tenlion.cultural.renbu" dimension 'market' resValue "string", "APP_CHANNEL", "renbu" manifestPlaceholders = [CHANNEL_VALUE: "renbu", CITY_CODE: "642063"] } kangma { applicationId "com.tenlion.cultural.kangma" dimension 'market' resValue "string", "APP_CHANNEL", "kangma" manifestPlaceholders = [CHANNEL_VALUE: "kangma", CITY_CODE: "642146"] } dingjie { applicationId "com.tenlion.cultural.dingjie" dimension 'market' resValue "string", "APP_CHANNEL", "dingjie" manifestPlaceholders = [CHANNEL_VALUE: "dingjie", CITY_CODE: "642203"] } zhongba { applicationId "com.tenlion.cultural.zhongba" dimension 'market' resValue "string", "APP_CHANNEL", "zhongba" manifestPlaceholders = [CHANNEL_VALUE: "zhongba", CITY_CODE: "642284"] } yadong { applicationId "com.tenlion.cultural.yadong" dimension 'market' resValue "string", "APP_CHANNEL", "yadong" manifestPlaceholders = [CHANNEL_VALUE: "yadong", CITY_CODE: "642356"] } jilong { applicationId "com.tenlion.cultural.jilong" dimension 'market' resValue "string", "APP_CHANNEL", "jilong" manifestPlaceholders = [CHANNEL_VALUE: "jilong", CITY_CODE: "642389"] } nielamu { applicationId "com.tenlion.cultural.nielamu" dimension 'market' resValue "string", "APP_CHANNEL", "nielamu" manifestPlaceholders = [CHANNEL_VALUE: "nielamu", CITY_CODE: "642437"] } saga { applicationId "com.tenlion.cultural.saga" dimension 'market' resValue "string", "APP_CHANNEL", "saga" manifestPlaceholders = [CHANNEL_VALUE: "saga", CITY_CODE: "642489"] } gangba { applicationId "com.tenlion.cultural.gangba" dimension 'market' resValue "string", "APP_CHANNEL", "gangba" manifestPlaceholders = [CHANNEL_VALUE: "gangba", CITY_CODE: "642536"] } } buildToolsVersion '30.0.2' } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(':cm_utils') implementation project(':camera') // implementation files('libs/tbs.jar') implementation files('libs/BaiduLBS_Android.jar') androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' //SmartRefreshLayout implementation "com.scwang.smartrefresh:SmartRefreshLayout:${rootProject.ext.gSmartRefreshLayoutVersion}" if (IsModuleDev.toBoolean()) { implementation project(':modulemain')//主模块 implementation project(':moduleactivity')//活动 implementation project(':modulecultural')//文化 implementation project(':moduleplace')//场馆 implementation project(':modulemine')//我的 implementation project(':modulemap')//地图 } implementation 'androidx.multidex:multidex:2.0.1' implementation 'com.github.jarryleo:MagicScreenAdapter:v2.1' //glide implementation "com.github.bumptech.glide:glide:${rootProject.ext.supportGlide}" annotationProcessor "com.github.bumptech.glide:compiler:${rootProject.ext.supportGlide}" //状态栏 implementation 'com.gyf.immersionbar:immersionbar:2.3.3' //分享 implementation 'cn.jiguang.sdk:jshare:1.8.0' // 此处以JShare 1.6.0 版本为例,具体版本请参考压缩包libs的jar包版本。 implementation 'cn.jiguang.sdk:jshare-qqmodel:1.8.0' // 此处以jshare-qqmodel 1.6.0 版本为例,具体版本请参考压缩包libs的jar包版本。 implementation 'cn.jiguang.sdk:jshare-wechatmodel:1.8.0' // 此处以jshare-wechatmodel 1.6.0 版本为例,具体版本请参考压缩包libs的jar包版本。 implementation 'cn.jiguang.sdk:jshare-sinamodel:1.8.0' // 此处以jshare-sinamodel 1.6.0 版本为例,具体版本请参考压缩包libs的jar包版本。 implementation 'cn.jiguang.sdk:jcore:1.2.3' implementation 'androidx.appcompat:appcompat:1.4.1' }