I have annotated one of my library project's method as restricted @RestrictTo(Scope.LIBRARY)
even tried @RestrictTo(Scope.LIBRARY_GROUP)
but this not prevent the APIs from being used in the other modules of the project.
I have even tried setting group=xxx
and group=yyy
in both modules.
Restricting API call
No error/warning shown by the Android Studio.
Event lint is enabled for Restricted APIs.
I have even tried running lint on the caller module using ./gradlew lint
Please find the implementation on Github
library module - async-task-processor
tried setting different groups - module example
tried using a completely different package name - module myapplication
Not sure what is wrong here please help.