123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- apply plugin: "com.android.application"
- def releaseTime() {
- return new Date().format("yyyyMMddHHmmss")
- }
- android {
- compileSdkVersion 28
- defaultConfig {
- applicationId "com.edufound.android.xyyf"
- minSdkVersion 19
- targetSdkVersion 28
- versionCode 10020
- versionName "1.0.0.2.0"
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- multiDexEnabled true
- flavorDimensions "versionCode"
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "2012"]//添加一个默认渠道号
- }
- signingConfigs {
- efunbox {
- keyAlias "edufound_key"
- keyPassword "edufound321"
- storeFile file("C:/Users/candy/Desktop/efunbox/edufound.keystore")
- storePassword "edufound123"
- }
- debug {
- keyAlias "edufound_key"
- keyPassword "edufound321"
- storeFile file("C:/Users/candy/Desktop/efunbox/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_mobile_xyyf_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 == ("2012")) {
- newoutputFile = "\\tmail\\"
- }
- output.outputFileName = new File(newoutputFile, fileName)
- }
- }
- }
- }
- debug {
- minifyEnabled false
- proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
- signingConfig signingConfigs.efunbox
- }
- }
- repositories {
- flatDir {
- dirs "libs"
- }
- mavenCentral()
- }
- sourceSets {
- main {
- jniLibs.srcDirs = ["libs"]
- }
- }
- productFlavors {
- //义方
- channel_tmail {
- signingConfig signingConfigs.efunbox
- manifestPlaceholders = [
- appCode: "2012",
- appIcon: "@drawable/icon",
- ]
- }
- }
- productFlavors.all {
- flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: manifestPlaceholders.appCode, icon: manifestPlaceholders.appIcon]
- }
- }
- allprojects {
- repositories {
- jcenter()
- }
- }
- dependencies {
- implementation fileTree(dir: "libs", include: ['*.jar', '*.aar'])
- implementation 'com.android.support.constraint:constraint-layout:1.0.2'
- implementation "com.android.support:appcompat-v7:28.0.0"
- implementation "android.arch.navigation:navigation-fragment:1.0.0"
- implementation "android.arch.navigation:navigation-ui:1.0.0"
- api files("libs/codec.jar")
- api files("libs/commons-codec-1.7.jar")
- api files("libs/commons-lang-2.2.jar")
- api files("libs/commons-net-3.3.jar")
- api files("libs/bcprov-jdk15-136.jar")
- api "com.google.code.gson:gson:2.8.6"
- implementation 'com.alibaba:fastjson:1.2.73'
- // implementation files("libs/dom4j-1.6.1.jar")
- //okhttp
- implementation "com.squareup.okhttp3:okhttp:3.4.1"
- //多种seekbar
- implementation "com.github.warkiz.widget:indicatorseekbar:2.1.0"
- //
- //cardView
- implementation 'com.android.support:cardview-v7:28.0.0'
- //recyclerview
- implementation 'com.android.support:recyclerview-v7:28.0.0'
- //wheelview
- implementation 'com.cncoderx.wheelview:library:1.2.5'
- api files("libs/gcs-authservice-1.0.0.21.jar")
- api files("libs/registry-api-1.1.16-20201203.085134-3.jar")
- api files("libs/aranger.jar")
- // 友盟基础组件库(所有友盟业务SDK都依赖基础组件库)
- implementation 'com.umeng.umsdk:common:9.4.4'// (必选)
- implementation 'com.umeng.umsdk:asms:1.4.1'// asms包依赖必选
- }
|