Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

试了下打aab不生效 #86

Open
HelloJokerWord opened this issue Mar 22, 2024 · 3 comments
Open

试了下打aab不生效 #86

HelloJokerWord opened this issue Mar 22, 2024 · 3 comments

Comments

@HelloJokerWord
Copy link

AndroidJunkCode版本
id "io.github.qq549631030.android-junk-code" version "1.3.3"

gradle版本
gradle-8.0.2-bin.zip

AGP版本
classpath 'com.android.tools.build:gradle:7.4.2'

JDK版本
jdk11
productFlavors配置

androidJunkCode配置

androidJunkCode {
variantConfig {
release {//变体名称,如果没有设置productFlavors就是buildType名称,如果有设置productFlavors就是flavor+buildType,例如(freeRelease、proRelease)
packageBase = "com.id.hy.haiya" //生成java类根包名
packageCount = 10 //生成包数量
activityCountPerPackage = 2 //每个包下生成Activity类数量
excludeActivityJavaFile = false //是否排除生成Activity的Java文件,默认false(layout和写入AndroidManifest.xml还会执行),主要用于处理类似神策全埋点编译过慢问题
otherCountPerPackage = 25 //每个包下生成其它类的数量
methodCountPerClass = 50 //每个类下生成方法数量
resPrefix = "hasin_" //生成的layout、drawable、string等资源名前缀
drawableCount = 100 //生成drawable资源数量
stringCount = 100 //生成string数量
}
}
}
bug描述
aab包下的AndroidManifest.xml下没有相应的Activity

@wanggangroger
Copy link

可以加个好友一起探讨一下问题吗

@loveanao
Copy link

loveanao commented May 29, 2024

插件版本1.3.3 + AGP7.0.4 + GradleVersion7.0.2 测试 apk 和 aab 正常

@TaoSunkist
Copy link

TaoSunkist commented Jul 24, 2024

distributionUrl=https://services.gradle.org/distributions/gradle-8.0-bin.zip
classpath "com.github.qq549631030:android-junk-code:1.3.3"


Gradle 8.0

Build time: 2023-02-13 13:15:21 UTC
Revision: 62ab9b7c7f884426cf79fbedcf07658b2dbe9e97

Kotlin: 1.8.10
Groovy: 3.0.13
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 17.0.10 (Homebrew 17.0.10+0)
OS: Mac OS X 14.5 x86_64

试了下,好像没有遇见你说的问题

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants