123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- ext.mainApp = true
- apply from: rootProject.file('cc-settings.gradle')
- apply from: rootProject.file('common-build.gradle')
- android {
- compileSdkVersion rootProject.compile_sdk_version
- defaultConfig {
- applicationId rootProject.application_id
- minSdkVersion rootProject.min_sdk_version
- targetSdkVersion rootProject.target_sdk_version
- versionCode rootProject.application_version_code
- versionName rootProject.application_version_name
- ndk {
-
- abiFilters 'armeabi-v7a'
-
- }
- }
- signingConfigs {
- }
- buildTypes {
- debug {
- versionNameSuffix "-" + name
- }
- release {
- debuggable false
- minifyEnabled true
- zipAlignEnabled true
- shrinkResources true
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- signingConfig signingConfigs.release
- }
- }
-
- applicationVariants.all { variant ->
- variant.outputs.all {
-
- def fileName = "${variant.productFlavors[0].name}_${defaultConfig.versionName}.apk"
- outputFileName = fileName
- }
- }
- flavorDimensions "version"
-
- productFlavors {
- dev {}
- vivo {}
- oppo {}
- huawei {}
- xiaomi {}
- coolapk {}
- yingyongbao {}
- }
-
-
-
-
- productFlavors.all {
-
- flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL: name]
- }
-
-
-
-
-
-
-
-
-
- compileOptions {
- targetCompatibility 1.8
- sourceCompatibility 1.8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
- android.buildFeatures {
- dataBinding = true
- viewBinding = false
- }
- }
- dependencies {
- implementation 'androidx.browser:browser:1.2.0'
- implementation 'com.github.promeg:tinypinyin-lexicons-android-cncity:2.0.3'
- implementation 'com.google.android.material:material:1.2.1'
- implementation files('libs/open_ad_sdk.aar')
- implementation project(':base')
- addComponent 'alipay'
- addComponent 'update'
- addComponent 'umeng'
- }
|