skip icon indicating copy to clipboard operation
skip copied to clipboard

`android-sdk-min` is 29

Open dfabulich opened this issue 5 months ago • 3 comments

The generated settings.gradle.kts file in the .build folder has this line:

version("android-sdk-min", "29")

That's kinda high. According to the Android Studio "Help me choose" dialog, supporting API level 29 and higher only supports 87.6% of users as of April 1, 2025.

When creating a new project as of today, Android Studio recommends supporting at least back to API 24.

Image

dfabulich avatar Jul 24 '25 00:07 dfabulich

If I manually override this in Android/app/build.gradle.kts, will that break anything?

dfabulich avatar Jul 24 '25 00:07 dfabulich

TBH, I don't recall where the 29 min SDK level came from. I just tried bumping it down to 26 with the Hello Skip sample, and it works fine. Any lower, and we get an error about the <adaptive-icon> element in the AndroidManifest.xml, but if that was stripped out, you might be able to bring it even lower.

Some of Skip's features, like dark mode synchronization with the system default setting, will only work in API 29 or higher. But these shouldn't prevent your app from running.

I recommend trying to bump it down and experimenting on an emulator with an older minimum API and see if it works OK.

marcprux avatar Jul 24 '25 00:07 marcprux

P.S. SkipFuse (i.e., non-transpiled native Swift on Android) does require API 28 or higher, because that is the minimum version that the official Swift Android SDK will support. This doesn't affect SkipLite transpiled apps, only SkipFuse.

marcprux avatar Jul 24 '25 00:07 marcprux