feat: Add support for AppDocuments, AppLibrary and AppTemp (#12276)
feat: Add support for AppLibrary, AppTemp, and AppCache (#12276)
Previously, there was no access to 3 specific paths used by iOS.
We have added support for these directories, and added documentation explaining how these different methods are meant to be used.
This also required the creation of a Swift plugin to allow us to access these iOS APIs.
There was a thought that we would be able to add access to these directories by setting a feature flag in the plugin and having conditional retrieval of the needed directories.
However, this proved to be much more complex than needed, since in reality we are able to
make this a purely additive change, with the only changed output being for the appCacheDir method on iOS. In the related issue #12276 , it was stated this could be acceptable.
Comparisons of the returned values before and after these changes for both Android and iOS are attached here. Android comparison: PostChangeResults-Android.csv
iOS comparison: PostChangeResults-iOS.csv
In this process, we have added a page to the sample views to immediately see the output of the different path methods.
This required some visual fixes of the examples/api app for the menu button to be usable on modern Android devices to work with insets.)