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

booster.transform.r.inline.ignores 失效 #462

Open
SheepYoung opened this issue Jun 24, 2024 · 0 comments
Open

booster.transform.r.inline.ignores 失效 #462

SheepYoung opened this issue Jun 24, 2024 · 0 comments

Comments

@SheepYoung
Copy link

使用5.0.0-RC1 版本
内联读取文件booster.transform.r.inline.ignores 为空

report.text 日志如下:

dependencies:
...
  - /home/apps/.gradle/caches/transforms-3/c76d7a8ba5c959f0bb45a7a089b85186/transformed/jetified-eventbus-3.2.0.jar
  - /home/apps/.gradle/caches/transforms-3/b8c2a2a6cab1174b9aa0452b73a32de5/transformed/jetified-proguard-annotations-1.19.0.jar
  - /home/apps/.gradle/caches/transforms-3/ad4faa8e8cc75116012a960b95dd17d0/transformed/jetified-baselegacyapi-6.5.0.300-runtime.jar
  - /home/apps/.gradle/caches/transforms-3/b8f10c0f07b3f2be8b16f85bb5a761f9/transformed/jetified-ui-6.5.0.300-runtime.jar
  - /home/apps/.gradle/caches/transforms-3/baed030fde3701bef0e6758284bb382e/transformed/jetified-log-6.5.0.300-runtime.jar
  - /tools/android/TeamCity/buildAgent/work/5e45ea12b84d4bd5/vipshop/build/intermediates/javac/abi64ProductRelease/classes

booster.transform.r.inline.ignores=[]
    override fun onPreTransform(context: TransformContext) {
        this.appPackage = context.originalApplicationId.replace('.', '/')
        this.logger = getReport(context, "report.txt").touch().printWriter()
        this.symbols = SymbolList.from(context.artifacts.get(SYMBOL_LIST).single())
        this.appRStyleable = "$appPackage/$R_STYLEABLE"
        this.ignores = context.getProperty(PROPERTY_IGNORES, "").trim().split(',')
                .filter(String::isNotEmpty)
                .map(Wildcard.Companion::valueOf).toSet()

... 

        logger.println(deps.joinToString("\n  - ", "dependencies:\n  - ", "\n"))
        logger.println("$PROPERTY_IGNORES=$ignores\n")
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

1 participant