Skip to content

lchli/AndroidFlavorPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AndroidFlavorPlugin

This is a android apk flavor maker gradle plugin.安卓渠道包制作插件。

Thanks

https://github.com/GavinCT/AndroidMultiChannelBuildTool

https://github.com/chrisbanes/gradle-mvn-push

Usage

(1)in root project build.gradle

depedencies {
...

   classpath 'com.github.lchli:AndroidApkFlavorMaker:1.0.0'
   
   ...
}

(2)in app/build.gradle

apply plugin: 'com.lchli.makeApkFlavor'
...

android {
   ...
   //config flavor output dir,channel.txt,sourceApkName.
    LiAnPlugin{
        flavorApksDir="${buildDir}/flavorApks"
        flavorChannelFilePath="${buildDir.parent}/channel.txt"
        sourceApkName="app-debug.apk"
    }
    
    ...
}

(3)build.

$ gradle clean build makeApkFlavors

channel util.

ChannelUtil

channel.txt must like below,each line replace a channel name:

samsungapps
hiapk
anzhi
360cn

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors