Skip to content

Commit c10b931

Browse files
committed
Add support for SDK 35 aka Android 15.
-- Due to my limited knowledge about Views or XML layouts, I'm not able to fix the overlapping content with status bar in Android 15. Rather I have, opted out from the enforcement. For now it is fine but Google will soon make it deprecated, so we need to adapt the layout for Android 15 before it deprecate. It is because Android 15 by-default enables edge to edge view.
1 parent efc4bea commit c10b931

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

app/src/main/kotlin/dev/jahir/kuper/app/MainActivity.kt

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import com.github.javiersantos.piracychecker.PiracyChecker
44
import dev.jahir.kuper.ui.activities.KuperActivity
55

66
class MainActivity : KuperActivity() {
7-
87
/**
98
* These things here have the default values. You can delete the ones you don't want to change
109
* and/or modify the ones you want to.
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<!-- For Material You Theme -->
5+
<style name="MyApp.Default.MaterialYou" parent="Frames.Default.MaterialYou">
6+
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
7+
</style>
8+
9+
<!-- For Non-Material You Amoled Theme -->
10+
<style name="MyApp.Default.Amoled" parent="Frames.Default.Amoled">
11+
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
12+
</style>
13+
14+
<!-- For Material You Amoled Theme -->
15+
<style name="MyApp.Default.Amoled.MaterialYou" parent="Frames.Default.Amoled.MaterialYou">
16+
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
17+
</style>
18+
19+
<!-- For Non-Material You Theme -->
20+
<style name="MyApp.Default" parent="Frames.Default">
21+
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
22+
</style>
23+
</resources>

buildSrc/src/main/java/Versions.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
object Versions {
44
// Plugins
5-
const val gradle = "8.5.0"
5+
const val gradle = "8.6.0"
66
const val kotlin = "2.0.0"
77
const val sonatype = "2.0.0"
88
const val ksp = "$kotlin-1.0.22"
@@ -12,8 +12,8 @@ object Versions {
1212

1313
// App
1414
const val minSdk = 21
15-
const val targetSdk = 34
16-
const val buildTools = "34.0.0"
15+
const val targetSdk = 35
16+
const val buildTools = "35.0.0"
1717

1818
// Frames
1919
const val frames = "3.6.2"

0 commit comments

Comments
 (0)