File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ allprojects {
2626
2727ext {
2828 android = [
29- compileSdkVersion : 30 ,
29+ compileSdkVersion : 35 , // Updated to support Android 15 for 16KB page sizes
3030 buildToolsVersion : ' 34.0.0' ,
3131 minSdkVersion : 21 ,
3232 targetSdkVersion : 25 , // higher target version needs more storage permission request.
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ def usingCMakeCompileDebug() {
1111 return gradle. ext != null && gradle. ext. has(" usingCMakeCompileDebug" ) && gradle. ext. usingCMakeCompileDebug;
1212}
1313
14+ def enable16kPageSizes () {
15+ return gradle. ext != null && gradle. ext. has(" enable16kPageSizes" ) && gradle. ext. enable16kPageSizes;
16+ }
17+
1418android {
1519 compileSdkVersion rootProject. ext. android. compileSdkVersion
1620 buildToolsVersion rootProject. ext. android. buildToolsVersion
@@ -22,7 +26,8 @@ android {
2226 defaultConfig {
2327 applicationId rootProject. ext. android. applicationId
2428 minSdkVersion rootProject. ext. android. minSdkVersion
25- targetSdkVersion rootProject. ext. android. targetSdkVersion
29+ // Use Android 15+ (API 35) when 16KB page sizes are enabled, otherwise use default
30+ targetSdkVersion enable16kPageSizes() ? 35 : rootProject. ext. android. targetSdkVersion
2631 versionCode rootProject. ext. android. versionCode
2732 versionName rootProject. ext. android. versionName
2833 signingConfig signingConfigs. debug
You can’t perform that action at this time.
0 commit comments