123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- apply plugin: 'com.android.application'
- android {
- compileSdkVersion 30
- buildToolsVersion "31.0.0-rc3"
- defaultConfig {
- applicationId "com.shanp.wodeshebao"
- minSdkVersion 17
- targetSdkVersion 30
- versionCode 75
- versionName "3.6.1"
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- multiDexEnabled true
- ndk {
- abiFilters 'armeabi-v7a', 'arm64-v8a'
- }
- }
- signingConfigs {
- debug {
- storeFile file('../shanp.keystore')
- storePassword 'shanpin_20140731'
- keyAlias 'shanpin'
- keyPassword 'shanpin_20150330'
- }
- release {
- storeFile file('../shanp.keystore')
- storePassword 'shanpin_20140731'
- keyAlias 'shanpin'
- keyPassword 'shanpin_20150330'
- }
- }
- //设置打包的apk名称
- android.applicationVariants.all {
- variant ->
- variant.outputs.all {
- outputFileName = "${variant.flavorName}_${variant.buildType.name}_v${variant.versionName}.apk"
- }
- }
- buildTypes {
- release {
- minifyEnabled true
- shrinkResources true
- signingConfig signingConfigs.release
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- buildConfigField("String", "MAIN_SERVER", "\"http://www.wodeshebao.com\"")
- buildConfigField("String", "APP_SERVER", "\"http://app.wodeshebao.com\"")
- }
- debug {
- minifyEnabled false
- signingConfig signingConfigs.release
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- buildConfigField("String", "MAIN_SERVER", "\"http://120.79.211.173\"")
- buildConfigField("String", "APP_SERVER", "\"http://120.79.211.173\"")
- }
- }
- flavorDimensions "app"
- productFlavors {
- wodeshebao {
- dimension "app"
- applicationId "com.shanp.wodeshebao"
- manifestPlaceholders = [
- UMENG_APPKEY : "55ffd03ee0f55afd260034d7",
- BAIDU_LBSAPI_APPKEY: "0U7YmW3FvtXhOykChribkPBo8OZYY66G",
- SHARE_QQ_SCHEME : "tencent1104817093",
- ]
- buildConfigField("int", "PAY_CHANNEL_WECHAT", "1")
- buildConfigField("int", "NOTIFY_SERVICE_ID", "20140731")
- buildConfigField("String", "API_OPEN_SUFFIX", "\"wdsb\"")
- buildConfigField("String", "SERVER_PACKAGE_NAME", "\"APP\"")
- }
- wuxianyijin {
- dimension "app"
- applicationId "com.shanp.wuxianyijin"
- manifestPlaceholders = [
- UMENG_APPKEY : "57a15496e0f55a892d0017be",
- BAIDU_LBSAPI_APPKEY: "1xjOVKUvNsEkFcKcNKj5YPWWafG4zS5b",
- SHARE_QQ_SCHEME : "tencent1105699846",
- ]
- buildConfigField("int", "PAY_CHANNEL_WECHAT", "2")
- buildConfigField("int", "NOTIFY_SERVICE_ID", "20160918")
- buildConfigField("String", "API_OPEN_SUFFIX", "\"wxyj\"")
- buildConfigField("String", "SERVER_PACKAGE_NAME", "\"WXYJ\"")
- }
- qgsb {
- dimension "app"
- applicationId "com.shanp.qgsb"
- manifestPlaceholders = [
- UMENG_APPKEY : "5e87035bdbc2ec080a349841",
- BAIDU_LBSAPI_APPKEY: "r2On0veZtTfeijuMSVofOKtrf1zdBGGP",
- SHARE_QQ_SCHEME : "tencent1105699846",
- ]
- buildConfigField("int", "PAY_CHANNEL_WECHAT", "3")
- buildConfigField("int", "NOTIFY_SERVICE_ID", "20200414")
- buildConfigField("String", "API_OPEN_SUFFIX", "\"qgsb\"")
- buildConfigField("String", "SERVER_PACKAGE_NAME", "\"NATION\"")
- }
- }
- sourceSets {
- main {
- jniLibs.srcDir 'libs'
- jni.srcDirs = []
- res.srcDirs = [
- 'src/main/res/layouts/buy',
- 'src/main/res/layouts/self',
- 'src/main/res/layouts/query',
- 'src/main/res/layouts/consult',
- 'src/main/res/layouts',
- 'src/main/res',
- ]
- }
- wodeshebao {
- assets.srcDirs = ['src/wodeshebao/assets']
- java.srcDirs = ['src/wodeshebao/java']
- res.srcDirs = ['src/wodeshebao/res']
- }
- wuxianyijin {
- assets.srcDirs = ['src/wuxianyijin/assets']
- java.srcDirs = ['src/wuxianyijin/java']
- res.srcDirs = ['src/wuxianyijin/res']
- }
- qgsb {
- assets.srcDirs = ['src/qgsb/assets']
- java.srcDirs = ['src/qgsb/java']
- res.srcDirs = ['src/qgsb/res']
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.3.0'
- testImplementation 'junit:junit:4.12'
- implementation(name: 'alipaySdk-15.6.2-20190416165100-noUtdid', ext: 'aar')
- implementation(name: 'shanyan_sdk_v2.3.3.0', ext: 'aar')
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'com.google.android.material:material:1.2.1'
- implementation 'com.github.bumptech.glide:glide:3.8.0'
- implementation 'com.google.code.gson:gson:2.8.5'
- implementation 'com.umeng.umsdk:analytics:8.0.0'
- implementation 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:5.1.6'
- implementation 'com.squareup.okhttp3:okhttp:3.12.1'
- implementation 'in.srain.cube:ultra-ptr:1.0.11'
- implementation 'com.sobot.chat:sobotsdk_x:2.9.5'
- implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
- implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.6'
- implementation 'com.shanp.android:push-umeng:1.0.1'
- implementation 'com.shanp.android:share:1.0.2'
- implementation 'com.pangle.cn:ads-sdk:3.5.0.6'
- }
- }
|