android-multi-channel-tool icon indicating copy to clipboard operation
android-multi-channel-tool copied to clipboard

目前会导致debug的时候提示找不到安装包

Open hwangjr opened this issue 9 years ago • 0 comments

在debug模式下会有:

  1. 安装找不到安装包
  2. 也会执行打包操作

修改MultiChannelPluginapply方法,过滤debug运行任务并取消删除原始apk文件:

            variants.all { variant ->
                def runTasks = project.gradle.startParameter.taskNames
                if (!('assemble' in runTasks || 'assembleRelease' in runTasks || 'aR' in runTasks)) {
                    return
                }
                def flavorName = variant.properties.get('flavorName')

                ....

                            // delete pkg
                            // variant.getOutputs().get(0).getOutputFile().delete()

hwangjr avatar Jun 28 '16 07:06 hwangjr