Back in this thread:
There was an issue that when I used the FileProvider class, it would bring in some unneeded runtimepermission code that added like 700k to my APK.
Luckily, @Ivica Golubovic was able to write a new lib that didn't cause this extra unused code to be added to the APK.
But now, after upgrading from B4A 9.01 to B4A 13, that extra code is again being included in the APK.
If I had to take a guess, some code related to the File provider functionality is now "internal" with B4A v13, so it has priority over the external lib that @Ivica Golubovic wrote.
I tried to simply rename the FileProvider.b4xlib to FileProvider.org (in the \Libraries directory) so that it wouldn't "load", but NG - the extra code was still added.
So, how can I fix this so it will use @Ivica Golubovic's library only?
How to get FileProvider working without entire RuntimePermission lib or entire com.android.support:support-v4 ?
I need my app to be able to update itself, but also be as small as possible. I also don't want my app to require permission to the user's storage/files, so I am using FileProvider. The FileProvider class uses the function "GetSafeDirDefaultExternal" to get a directory that the shared file can...
www.b4x.com
There was an issue that when I used the FileProvider class, it would bring in some unneeded runtimepermission code that added like 700k to my APK.
Luckily, @Ivica Golubovic was able to write a new lib that didn't cause this extra unused code to be added to the APK.
But now, after upgrading from B4A 9.01 to B4A 13, that extra code is again being included in the APK.
If I had to take a guess, some code related to the File provider functionality is now "internal" with B4A v13, so it has priority over the external lib that @Ivica Golubovic wrote.
I tried to simply rename the FileProvider.b4xlib to FileProvider.org (in the \Libraries directory) so that it wouldn't "load", but NG - the extra code was still added.
So, how can I fix this so it will use @Ivica Golubovic's library only?