apply plugin: 'com.android.application' android { compileSdkVersion 30 buildToolsVersion "30.0.1" defaultConfig { applicationId "com.edufound.bytedance" minSdkVersion 14 targetSdkVersion 30 versionCode 1 versionName "1.0" multiDexEnabled true flavorDimensions "versionCode" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" manifestPlaceholders = [APP_SCHEME_HOST: "com.edufound.bytedance.yuwen.prepare"] } signingConfigs { efunbox { keyAlias "edufound_key" keyPassword "edufound321" storeFile file("C:/Users/Candy/Desktop/edufound.keystore") storePassword "edufound123" } } 123123123 buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs.efunbox zipAlignEnabled true } } sourceSets { main { jniLibs.srcDirs = ["libs"] } } productFlavors { // 语文预习 yuwen_prepare { applicationId 'com.edufound.bytedance.yuwen.prepare' manifestPlaceholders = [schemeHost: "com.edufound.bytedance.yuwen.prepare", appName : "语文预习" ] } // 语文复习 yuwen_review { applicationId 'com.edufound.bytedance.yuwen.review' manifestPlaceholders = [schemeHost: "com.edufound.bytedance.yuwen.review", appName : "语文复习" ] } // 数学预习 mathematics_prepare { applicationId 'com.edufound.bytedance.mathematics.prepare' manifestPlaceholders = [schemeHost: "com.edufound.bytedance.mathematics.prepare", appName : "数学预习" ] } // 数学复习 mathematics_review { applicationId 'com.edufound.bytedance.mathematics.review' manifestPlaceholders = [schemeHost: "com.edufound.bytedance.mathematics.review", appName : "数学复习" ] } } productFlavors.all { flavor -> flavor.manifestPlaceholders = [ APP_SCHEME_HOST: manifestPlaceholders.schemeHost, APP_NAME : manifestPlaceholders.appName ] } } repositories { flatDir { dirs 'libs' } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.3.1' implementation 'androidx.appcompat:appcompat:1.2.0' //okhttp3 implementation 'com.squareup.okhttp3:okhttp:4.8.0' implementation 'com.squareup.okio:okio:2.7.0' //gson implementation 'com.google.code.gson:gson:2.8.6' //umeng implementation 'com.umeng.umsdk:common:9.3.0' // (必选)版本号 implementation 'com.umeng.umsdk:asms:1.1.3' // asms包依赖(必选) implementation 'com.umeng.umsdk:crash:0.0.5' // native crash包依赖(必选) }