In my project I am using the cordova-file-opener2 package and I needed to modify something in the file node_modules\cordova-plugin-file-opener2\src\android\io\github\pwlin\cordova\plugins\fileopener2\FileProvider.java.
If I modify the file after building the app in Android Studio, the changes won’t persist because the file will be reverted whenever I ran
ionic cap sync. So to make the update permanent, I will have to modify it directly in the node_modules folder.
Can anyone give me some guidance for committing modified Java source files that originated from Cordova plugins?
Thank you in advance.