Skip to content

Commit 8cddd26

Browse files
committed
Target SDK 35 & Minimum SDK 19
Build tools 35.0.0. Update `sdk` utils to detect API 35.
1 parent 5ef756c commit 8cddd26

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ android:
1010
components:
1111
- tools
1212
- platform-tools
13-
- build-tools-34.0.0
14-
- android-34
13+
- build-tools-35.0.0
14+
- android-35
1515
- extra-android-support
1616
- extra-android-m2repository
1717
- extra-google-m2repository

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
buildscript {
1818
ext.versions = [
19-
'compileSdk': 34,
20-
'minSdk' : 14,
21-
'targetSdk' : 34,
22-
'buildTools': '34.0.0',
19+
'compileSdk': 35,
20+
'minSdk' : 19,
21+
'targetSdk' : 35,
22+
'buildTools': '35.0.0',
2323
'androidx' : '1.13.1',
24-
'kotlin' : '1.9.21'
24+
'kotlin' : '1.9.24'
2525
]
2626

2727
repositories {

dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicSdkUtils.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -516,23 +516,24 @@ public static boolean is34() {
516516
}
517517

518518
/**
519-
* Detects if the current API version is U or above.
519+
* Detects if the current API version is 35 or above.
520520
*
521521
* @param equals {@code true} to check for equality.
522522
* <p>{@code false} to match greater than or equal.
523523
*
524-
* @return {@code true} if the current API version is U or above.
524+
* @return {@code true} if the current API version is 35 or above.
525525
*/
526-
public static boolean isU(boolean equals) {
527-
return is34() || (is33(equals) && isPreview());
526+
public static boolean is35(boolean equals) {
527+
return equals ? Build.VERSION.SDK_INT == Build.VERSION_CODES.VANILLA_ICE_CREAM
528+
: Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM;
528529
}
529530

530531
/**
531-
* Detects if the current API version is U or above.
532+
* Detects if the current API version is 35 or above.
532533
*
533-
* @return {@code true} if the current API version is U or above.
534+
* @return {@code true} if the current API version is 35 or above.
534535
*/
535-
public static boolean isU() {
536-
return isU(false);
536+
public static boolean is35() {
537+
return is35(false);
537538
}
538539
}

0 commit comments

Comments
 (0)