In this flutter app i have a java library that uses a json file and a certificate inside the android/app/src/res/raw directory. But when i'am running the app in Release mode it failed to find those json and certificate files. And when i analyze both build APK's, i found out that release APK's res directory is different compared to debug mode. show below.
This is a screenshot of a release APK when analyzed
This is a screenshot of a debug APK when analyzed
Is there any way to exclude the res/raw directory from changing? Or to fix it