Help Needed with R8ProGuard Rules for Custom Annotations on Android

Hello there,

I am working on an Android project where I have implemented custom annotations to streamline some of our internal logic; I am facing issues when using R8ProGuard during the build process.

I need to make sure that my custom annotations are kept during runtime but it appears that R8ProGuard is removing them. How can I modify my rules to prevent this from happening?

What is the best way to write rules that will protect these specific annotations and their associated code?

I am also using third party libraries that rely on annotations. How can I ensure that R8ProGuard does not interfere with their functionality? :thinking:

Also i have read this rescores/artical; https://community.guardsquare.com/t/i-need-help-with-proguard-configuration-for-android-app ampscript-in-sfmc but have not found any solution still need your advice. if you have any advice please share with me it would appreciated.

Thank you…!