Bump minimum SDK version to API 23

- Updated the `minSdk` in `app/build.gradle.kts`.
- Adjusted the api-level for the test-android min sdk CI workflow
  in `.github/workflows/ci.yml`.
- Simplified the `getOsString()` method in `ErrorActivity.java` by removing
  the conditional check for `Build.VERSION_CODES.M`, as API 23 is now the minimum.
This commit is contained in:
Hatake Kakashri 2026-01-13 22:12:50 +05:30
parent f5245eac91
commit 0b43dd2a62
3 changed files with 3 additions and 4 deletions

View File

@ -69,7 +69,7 @@ jobs:
strategy:
matrix:
include:
- api-level: 21
- api-level: 23
target: default
arch: x86
- api-level: 35

View File

@ -44,7 +44,7 @@ android {
defaultConfig {
applicationId = "org.schabi.newpipe"
resValue("string", "app_name", "NewPipe")
minSdk = 21
minSdk = 23
targetSdk = 35
versionCode = System.getProperty("versionCodeOverride")?.toInt() ?: 1005

View File

@ -307,8 +307,7 @@ public class ErrorActivity extends AppCompatActivity {
}
private String getOsString() {
final String osBase = Build.VERSION.SDK_INT >= Build.VERSION_CODES.M
? Build.VERSION.BASE_OS : "Android";
final String osBase = Build.VERSION.BASE_OS;
return System.getProperty("os.name")
+ " " + (osBase.isEmpty() ? "Android" : osBase)
+ " " + Build.VERSION.RELEASE