Skip to content

Commit

Permalink
API 35 Preview - Vanilla Ice Cream (#3696)
Browse files Browse the repository at this point in the history
* fix: support API 35 as Vanilla Ice Cream

* feat: update internal framework to API 35 preview (Vanilla Ice Cream)

* chore: SDK_CUR_DEVELOPMENT is 10,000
  • Loading branch information
iBotPeaches committed Sep 18, 2024
1 parent 674bb42 commit c6bb75e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ private int mapSdkShorthandToVersion(String sdkVersion) {
return ResConfigFlags.SDK_UPSIDEDOWN_CAKE;
case "VANILLAICECREAM":
case "VANILLA_ICE_CREAM":
return ResConfigFlags.SDK_VANILLA_ICE_CREAM;
case "SDK_CUR_DEVELOPMENT":
return ResConfigFlags.SDK_DEVELOPMENT;
default:
return Integer.parseInt(sdkVersion);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ public int hashCode() {
public final static byte SDK_S_V2 = 32;
public final static byte SDK_TIRAMISU = 33;
public final static byte SDK_UPSIDEDOWN_CAKE = 34;
public final static byte SDK_VANILLA_ICE_CREAM = 35;

// AOSP has this as 10,000 for dev purposes.
// platform_frameworks_base/commit/c7a1109a1fe0771d4c9b572dcf178e2779fc4f2d
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void checkForSdkDevelopmentInsaneTestValue() {
ApkInfo apkInfo = new ApkInfo();

Map<String, String> sdkInfo = new LinkedHashMap<>();
sdkInfo.put("targetSdkVersion", "VANILLAICECREAM");
sdkInfo.put("targetSdkVersion", "SDK_CUR_DEVELOPMENT");

apkInfo.setSdkInfo(sdkInfo);
assertEquals("10000", apkInfo.checkTargetSdkVersionBounds());
Expand Down

0 comments on commit c6bb75e

Please sign in to comment.