Bilibili/apk-channelization

Name: apk-channelization

Owner: bilibili

Description: [???v2??]Android???????

Created: 2015-11-05 15:05:44.0

Updated: 2018-04-16 00:48:39.0

Pushed: 2017-07-17 07:22:15.0

Homepage:

Size: 8

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Android???????

??????????Android??????????????????????AndroidManifest.xml???????

??????????UTF-16????AndroidManifest.xml?

???????????????https://github.com/wanchouchou/playWithAXML

?????

  1. signingapks.py? ????apk
  2. repackage.py??????
  3. ?????????'#'???????????????????????channels?
##########
nnel list#
##########




?????

???

  1. ??????source.apk????"aaa”,“bbb”,“ccc"?out??????

  2. ??????source.apk????????channels?????????out?????

  3. ??????zipalign

  4. ?android gradle????(1.3.0)????? ?app?build.gradle???task?releaseAllChannels?

    rEvaluate {
    oid.applicationVariants.all { variant ->
    def output = variant.outputs.get(0).outputFile as File
    if ("release".equals(variant.name) && variant.signingConfig != null) {
        def task = tasks.findByName("zipalign${variant.name.capitalize()}")
        def zipalignExe = task?.zipAlignExe
        def repackageTask = tasks.create(name: "releaseAllChannels",
                description: "Build all channel apks",
                group: "build", type: Exec) {
            commandLine 'python', rootProject.file("repackage.py").absolutePath,
                    '-f', rootProject.file('channels').absolutePath,
                    '-o', builderOutput.absolutePath,
                    "--keystore=${variant.signingConfig.storeFile}",
                    "--keypass=${variant.signingConfig.keyPassword}",
                    "--storepass=${variant.signingConfig.storePassword}",
                    "--keyalias=${variant.signingConfig.keyAlias}",
                    "--zipalignexe=${zipalignExe}",
                    output.absolutePath
        }
        repackageTask.dependsOn variant.assemble
    }
    
    

    ??task releaseAllChannels ?????????????????build??


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.