]> git.lizzy.rs Git - dragonfireclient.git/commit
Use scoped app storage on Android (#11466)
authorrubenwardy <rw@rubenwardy.com>
Fri, 15 Oct 2021 16:14:48 +0000 (17:14 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Oct 2021 16:14:48 +0000 (18:14 +0200)
commit6901c5fae54eafb05494823b60d4e26c14b342f1
tree84cfeee77d5917d554a8eb3feca166083cbfdc9b
parentfe7195badb2801f4957d6dea2c961a3ffcf7debf
Use scoped app storage on Android (#11466)

From November 2021, the Play Store will no longer be accepting
apps which use the deprecated getExternalStorageDirectory() API.

Therefore, this commit replaces uses of deprecated API with the new
scoped API (`getExternalFilesDir()` and `getExternalCacheDir()`).
It also provides a temporary migration to move user data from the
shared external directory to new storage.

Fixes #2097,  #11417 and #11118
.clang-format
android/app/src/main/java/net/minetest/minetest/CopyZipTask.java [deleted file]
android/app/src/main/java/net/minetest/minetest/GameActivity.java
android/app/src/main/java/net/minetest/minetest/MainActivity.java
android/app/src/main/java/net/minetest/minetest/UnzipService.java
android/app/src/main/java/net/minetest/minetest/Utils.java [new file with mode: 0644]
android/app/src/main/res/layout/activity_main.xml
android/app/src/main/res/values/strings.xml
android/native/build.gradle
src/porting_android.cpp