LonamiWebs / Klooni1010

libGDX game based on the original 1010!
https://lonamiwebs.github.io/klooni
GNU General Public License v3.0
233 stars 72 forks source link

Make app movable to SD card #67

Closed Atrate closed 4 years ago

Atrate commented 4 years ago

Rationale

Over 25% of the world's Android devices still run Android 6.0 or older [1]. This version of Android still has native support for moving applications to SD cards — this is crucial when dealing with low-storage devices. Many more recent OEM OSes also support moving applications to SD cards. This means making applications movable to the SD card is IMHO a rational choice.

Solution

Add android:installLocation="auto" flag to AndroidMainfest.xml. The default for Android is, curiously, not "auto" but "internalOnly"

https://developer.android.com/guide/topics/data/install-location

Signed-off-by: Atrate Atrate@protonmail.com

Lonami commented 4 years ago

Neat, thanks. Could you also bump the version so that I can tag a new release and have it rebuilt by F-Droid?

https://github.com/LonamiWebs/Klooni1010/blob/6985ae58b9d6601d0d4a6be251ba1ee31f8f0e19/android/build.gradle#L24-L25

https://github.com/LonamiWebs/Klooni1010/blob/6985ae58b9d6601d0d4a6be251ba1ee31f8f0e19/build.gradle#L21

If I was a bit better with Gradle I'm sure there would be a way to only have "one true place" with the version, but for now those two need to be updated. Just a patch bump should be fine (850 and 0.8.5).

Atrate commented 4 years ago

Done, @Lonami.