File tree Expand file tree Collapse file tree 4 files changed +32
-5
lines changed
Expand file tree Collapse file tree 4 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ apply plugin: 'com.android.application'
22apply plugin : ' kotlin-android'
33apply plugin : ' kotlin-android-extensions'
44apply plugin : ' kotlin-kapt'
5+ apply from : ' ../channel.gradle'
56
67kapt {
78 generateStubs = true
@@ -44,14 +45,14 @@ android {
4445 sourceCompatibility 1.8
4546 targetCompatibility 1.8
4647 }
47- kotlinOptions{
48+ kotlinOptions {
4849 jvmTarget = " 1.8"
4950 }
5051}
5152
5253dependencies {
5354 implementation fileTree(dir : ' libs' , include : [' *.jar' ])
54- implementation" org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
55+ implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
5556 // Androidx
5657 implementation ' androidx.appcompat:appcompat:1.2.0'
5758 implementation ' androidx.constraintlayout:constraintlayout:2.0.4'
Original file line number Diff line number Diff line change 11// Top-level build file where you can add configuration options common to all sub-projects/modules.
22buildscript {
3- ext. kotlin_version = ' 1.4 .10'
3+ ext. kotlin_version = ' 1.5 .10'
44 repositories {
55 google()
66 jcenter()
@@ -9,8 +9,7 @@ buildscript {
99 dependencies {
1010 classpath ' com.android.tools.build:gradle:3.4.2'
1111 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
12- // NOTE: Do not place your application dependencies here; they belong
13- // in the individual module build.gradle files
12+ classpath ' com.leon.channel:plugin:2.0.3'
1413 }
1514}
1615
Original file line number Diff line number Diff line change 1+ // 多渠道打包所需配置
2+ apply plugin : ' channel'
3+
4+ dependencies {
5+ // 多渠道
6+ api ' com.leon.channel:helper:2.0.3'
7+ }
8+ channel {
9+ // 指定渠道文件
10+ channelFile = file(" ../channel.txt" )
11+ // 多渠道包的输出目录,默认为new File(project.buildDir,"channel")
12+ baseOutputDir = new File (project. buildDir, " channel" )
13+ // 多渠道包的命名规则,默认为:${appName}-${versionName}-${versionCode}-${flavorName}-${buildType}
14+ apkNameFormat = ' ${appName}-${versionName}-${flavorName}-${buildType}'
15+ // 快速模式:生成渠道包时不进行校验(速度可以提升10倍以上,默认为false)
16+ isFastMode = false
17+ // buildTime的时间格式,默认格式:yyyyMMdd-HHmmss
18+ buildTimeDateFormat = ' yyyyMMdd-HH:mm:ss'
19+ // 低内存模式(仅针对V2签名,默认为false):只把签名块、中央目录和EOCD读取到内存,不把最大头的内容块读取到内存,在手机上合成APK时,可以使用该模式
20+ lowMemory = false
21+ }
Original file line number Diff line number Diff line change 1+ baidu
2+ xiaomi
3+ vivo
4+ oppo
5+ huawei
6+ pgy
You can’t perform that action at this time.
0 commit comments