1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- plugins {
- id 'com.android.application'
- }
- def releaseTime() {
- return new Date().format("yyyyMMddhhmmss", TimeZone.getTimeZone("UTC"))
- }
- android {
- compileSdkVersion 30
- buildToolsVersion "30.0.2"
- defaultConfig {
- applicationId "com.efunbox.reader"
- minSdkVersion 21
- targetSdkVersion 30
- versionCode 1
- versionName "1.0"
- flavorDimensions "versionCode"
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "2006"]//添加一个默认渠道号
- 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
- applicationVariants.all { variant ->
- variant.outputs.each { output ->
- def outputFile = output.outputFileName
- if (outputFile != null && output.outputFileName.endsWith('.apk')) {
- def fileName = "efunbox_tv_v${defaultConfig.versionCode}_${releaseTime()}_${variant.productFlavors[0].manifestPlaceholders.UMENG_CHANNEL_VALUE}_r.apk"
- def channel = variant.productFlavors[0].manifestPlaceholders.UMENG_CHANNEL_VALUE;
- def newoutputFile = "";
- if (channel == ("2006")) {
- newoutputFile = "\\义方\\"
- }
- output.outputFileName = new File(newoutputFile, fileName)
- }
- }
- }
- }
- }
- productFlavors {
- //义方
- channel_efunbox {
- signingConfig signingConfigs.efunbox
- manifestPlaceholders = [
- appCode: "2006",
- appIcon: "@drawable/icon",
- ]
- }
- }
- productFlavors.all {
- flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: manifestPlaceholders.appCode, icon: manifestPlaceholders.appIcon]
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- }
- dependencies {
- implementation 'androidx.appcompat:appcompat:1.0.0'
- testImplementation 'junit:junit:4.+'
- androidTestImplementation 'androidx.test.ext:junit:1.1.1'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
- implementation 'com.github.bumptech.glide:glide:4.12.0'
- annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
- implementation 'jp.wasabeef:glide-transformations:4.3.0'
- implementation('com.zhousf.lib:okhttp3:2.9.9') {
- exclude(module: 'support-annotations')
- exclude(module: 'gson')
- }
- implementation 'com.google.code.gson:gson:2.8.9'
- implementation 'com.orhanobut:logger:2.2.0'
- implementation 'com.tencent:mmkv:1.2.11'
- implementation 'com.uber.autodispose2:autodispose:2.0.0'
- implementation 'com.uber.autodispose2:autodispose-android:2.0.0'
- implementation 'com.uber.autodispose2:autodispose-lifecycle:2.0.0'
- implementation 'com.uber.autodispose2:autodispose-androidx-lifecycle:2.0.0'
- // 友盟基础组件库(所有友盟业务SDK都依赖基础组件库)
- implementation 'com.umeng.umsdk:common:9.4.4'// (必选)
- implementation 'com.umeng.umsdk:asms:1.4.1'// asms包依赖必选
- }
|