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 not full delete R&styleable field #447

Open
tudou0digua opened this issue Jan 19, 2024 · 1 comment
Open

booster-transform-r-inline not full delete R&styleable field #447

tudou0digua opened this issue Jan 19, 2024 · 1 comment

Comments

@tudou0digua
Copy link

tudou0digua commented Jan 19, 2024

Please provide the following informations.

  • System version
    win11
  • Java version
    java 11
  • Gradle version
    7.5
  • Android Gradle plugin version
    7.3
  • Booster version
    4.16.3
  • Stack traces

R&styleable 被内联之后,旧的 R&styleable 的变量声明被删除了,但是变量赋值还在

styleable 类 由:

public static final class styleable {
static {
public static final int[] ActionBar = new int[]{.........};
public static final int[] ActionBarLayout = new int[]{16842931};
public static final int[] ActionMenuItemView = new int[]{16843071};
}
}

变为了:

public static final class styleable {
static {
ActionBar = new int[]{.........};
ActionBarLayout = new int[]{16842931};
ActionMenuItemView = new int[]{16843071};
}
}

缺少了变量名称前的 变量类型声明
例如:public static final int[] ActionBar = new int[]{.........}; 前面的 public static final int[] 不见了

项目组件化之后,如何使用插件检测类的变量是否存在,会报错
因为,class 文件中,对变量的引用和赋值还在,但是,变量的声明不见了

能否将变量的赋值也进行删除

@tudou0digua
Copy link
Author

tudou0digua commented Jan 19, 2024

项目组件化之后,如何使用插件检测类的变量是否存在,会报错
因为,class 文件中,对变量的引用和赋值还在,但是,变量的声明不见了

能否将变量的赋值也进行删除

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