123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- plugins {
- id 'com.android.application'
- }
- def releaseTime() {
- return new Date().format("yyyyMMddHHmmss", TimeZone.getTimeZone("UTC"))
- }
- android {
- compileSdkVersion 30
- buildToolsVersion "30.0.3"
- defaultConfig {
- applicationId "com.edufound.reader"
- minSdkVersion 21
- targetSdkVersion 30
- versionCode 1
- versionName "1.0"
- flavorDimensions "versionCode"
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "2006"]//添加一个默认渠道号
- testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
- ndk {
- abiFilters 'armeabi-v7a'
- }
- }
- 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)
- }
- }
- }
- }
- }
- sourceSets {
- main {
- jniLibs.srcDirs = ['libs']
- res.srcDirs = [
- 'src/main/res', //默认只有这一个路径
- 'src/fragmentRecommend', //首页推荐
- 'src/fragmentUser',//首页我的
- 'src/activityLoginAlert'//登录弹窗
- ]
- }
- }
- 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.+'
- 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')
- }
- //gson
- implementation 'com.google.code.gson:gson:2.8.9'
- //logger
- implementation 'com.orhanobut:logger:2.2.0'
- //mmkv
- 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包依赖必选
- //ijkplayer
- implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
- implementation "tv.danmaku.ijk.media:ijkplayer-exo:0.8.8"
- //JZ播放器
- implementation 'cn.jzvd:jiaozivideoplayer:7.7.0'
- //recyclerview
- implementation 'androidx.recyclerview:recyclerview:1.1.0'
- //驰声
- implementation 'io.github.ChivoxSupport:vox-sdk:2.2.23+2.0.8.1'
- //rxBind
- implementation 'com.jakewharton.rxbinding4:rxbinding:4.0.0'
- implementation "androidx.constraintlayout:constraintlayout:2.1.1"
- // To use constraintlayout in compose
- implementation "androidx.constraintlayout:constraintlayout-compose:1.0.0-rc01"
- }
|