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

Embedded classes accessibility control #21

Closed
TECTRO-SRAVNIRU opened this issue Nov 1, 2024 · 1 comment
Closed

Embedded classes accessibility control #21

TECTRO-SRAVNIRU opened this issue Nov 1, 2024 · 1 comment

Comments

@TECTRO-SRAVNIRU
Copy link

TECTRO-SRAVNIRU commented Nov 1, 2024

Is it possible to control the accessibility of classes within an aar assembly pipeline?

For example, replace the public access modifiers of classes or methods from embedded modules with internal to restrict access to them from the outside of library?

@0xera
Copy link
Collaborator

0xera commented Nov 1, 2024

This is not within the scope of this plugin. You can achieve your goals using AGP feature https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/variant/Instrumentation#transformClassesWith(java.lang.Class,com.android.build.api.instrumentation.InstrumentationScope,kotlin.Function1)

@0xera 0xera closed this as completed Nov 1, 2024
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

2 participants