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" flavorDimensions "versionCode" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } signingConfigs { efunbox { keyAlias "edufound_key" keyPassword "edufound321" storeFile file("C:/Users/Candy/Desktop/edufound.keystore") storePassword "edufound123" } } 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 = [app_name: "app", app_icon: "@mipmap/ic_launcher"] } // 语文复习 yuwen_review { applicationId 'com.edufound.bytedance.yuwen.review' // manifestPlaceholders = [app_name: "app1", app_icon: "@mipmap/ic_launcher"] } // 数学预习 mathematics_prepare { applicationId 'com.edufound.bytedance.mathematics.prepare' // manifestPlaceholders = [app_name: "app", app_icon: "@mipmap/ic_launcher"] } // 数学复习 mathematics_review { applicationId 'com.edufound.bytedance.mathematics.review' // manifestPlaceholders = [app_name: "app1", app_icon: "@mipmap/ic_launcher"] } } // productFlavors.all { // flavor -> flavor.manifestPlaceholders = [] // } } 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' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.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包依赖(必选) }