Package-level declarations
Types
A helper object to save the application's Logcat output to a file.
Functions
This function extracts assets from the APK into the app's files directory so that they can be more easily used e.g. we can pass a file: URI to maplibre pointing at the files directory but not into the APK assets directly. There's obviously a storage cost associated with this, so it should only be used when absolutely necessary.
fuzzyCompare is based on Damerau-Levenshtein distance. It return a score which is the ratio of the distance to the length of the strings. However, it also allows for the search string to be shorter than the haystack string and will give a slightly better score to strings that are naturally the same length.
Return the application locale if there is one, otherwise return the default system one