mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 01:07:34 +01:00
feat: support upside-down-cake/vanilla-ice-cream sdk shorthand (#3113)
This commit is contained in:
parent
5cd94d6aa0
commit
70d941d18d
@ -699,6 +699,11 @@ final public class AndrolibResources {
|
||||
return ResConfigFlags.SDK_S_V2;
|
||||
case "T":
|
||||
case "TIRAMISU":
|
||||
return ResConfigFlags.SDK_TIRAMISU;
|
||||
case "UPSIDEDOWNCAKE":
|
||||
case "UPSIDE_DOWN_CAKE":
|
||||
case "VANILLAICECREAM":
|
||||
case "VANILLA_ICE_CREAM":
|
||||
return ResConfigFlags.SDK_DEVELOPMENT;
|
||||
default:
|
||||
return Integer.parseInt(sdkVersion);
|
||||
|
@ -538,7 +538,7 @@ public class ResConfigFlags {
|
||||
public final static byte SDK_R = 30;
|
||||
public final static byte SDK_S = 31;
|
||||
public final static byte SDK_S_V2 = 32;
|
||||
public final static byte SDK_T = 33;
|
||||
public final static byte SDK_TIRAMISU = 33;
|
||||
|
||||
// AOSP has this as 10,000 for dev purposes.
|
||||
// platform_frameworks_base/commit/c7a1109a1fe0771d4c9b572dcf178e2779fc4f2d
|
||||
|
@ -101,7 +101,7 @@ public class InvalidSdkBoundingTest extends BaseTest {
|
||||
AndrolibResources androlibResources = new AndrolibResources();
|
||||
|
||||
Map<String, String> sdkInfo = new LinkedHashMap<>();
|
||||
sdkInfo.put("targetSdkVersion", "T");
|
||||
sdkInfo.put("targetSdkVersion", "VANILLAICECREAM");
|
||||
|
||||
androlibResources.setSdkInfo(sdkInfo);
|
||||
assertEquals("10000", androlibResources.checkTargetSdkVersionBounds());
|
||||
|
Loading…
x
Reference in New Issue
Block a user