Skip to content

Commit

Permalink
Drop SDK 36 (expo#11033)
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne authored Nov 15, 2020
1 parent 1037e82 commit e719b91
Show file tree
Hide file tree
Showing 4,879 changed files with 5,039 additions and 308,381 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 0 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,6 @@ dependencies {
implementation(project(':expoview-abi37_0_0'))
// END_SDK_37

// BEGIN_SDK_36
implementation(project(':expoview-abi36_0_0'))
// END_SDK_36

// This is not needed in shell apps, the Amplitude module will include this dep if installed
implementation 'com.amplitude:android-sdk:2.23.2'

Expand Down
3 changes: 0 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ allprojects {
maven {
url "$rootDir/versioned-abis/expoview-abi37_0_0/maven"
}
maven {
url "$rootDir/versioned-abis/expoview-abi36_0_0/maven"
}
maven {
url "$rootDir/versioned-abis/maven"
}
Expand Down
3 changes: 0 additions & 3 deletions android/expoview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,6 @@ dependencies {
// BEGIN_SDK_37
api 'host.exp:reactandroid-abi37_0_0:1.0.0'
// END_SDK_37
// BEGIN_SDK_36
api 'host.exp:reactandroid-abi36_0_0:1.0.0'
// END_SDK_36
// WHEN_PREPARING_SHELL_REMOVE_TO_HERE
// WHEN_VERSIONING_REMOVE_TO_HERE
// WHEN_DISTRIBUTING_REMOVE_TO_HERE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ public static void setSdkVersions(List<String> sdkVersions) {
// BEGIN_SDK_37
abiVersions.add("37.0.0");
// END_SDK_37
// BEGIN_SDK_36
abiVersions.add("36.0.0");
// END_SDK_36
// WHEN_PREPARING_SHELL_REMOVE_TO_HERE
// WHEN_DISTRIBUTING_REMOVE_TO_HERE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ public class MultipleVersionReactNativeActivity extends ReactNativeActivity impl
// The 4-space indentation is used by android-build-aar.sh.
// WHEN_DISTRIBUTING_REMOVE_FROM_HERE
// WHEN_PREPARING_SHELL_REMOVE_FROM_HERE
// BEGIN_SDK_36
abi36_0_0.com.facebook.react.modules.core.DefaultHardwareBackBtnHandler,
abi36_0_0.com.facebook.react.modules.core.PermissionAwareActivity,
// END_SDK_36
// BEGIN_SDK_37
abi37_0_0.com.facebook.react.modules.core.DefaultHardwareBackBtnHandler,
abi37_0_0.com.facebook.react.modules.core.PermissionAwareActivity,
Expand All @@ -30,12 +26,6 @@ public class MultipleVersionReactNativeActivity extends ReactNativeActivity impl

// WHEN_DISTRIBUTING_REMOVE_FROM_HERE
// WHEN_PREPARING_SHELL_REMOVE_FROM_HERE
// BEGIN_SDK_36
@Override
public void requestPermissions(String[] strings, int i, abi36_0_0.com.facebook.react.modules.core.PermissionListener permissionListener) {
super.requestPermissions(strings, i, permissionListener::onRequestPermissionsResult);
}
// END_SDK_36
// BEGIN_SDK_37
@Override
public void requestPermissions(String[] strings, int i, abi37_0_0.com.facebook.react.modules.core.PermissionListener permissionListener) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,8 @@ public RNObject startReactInstance(final Exponent.StartReactInstanceDelegate del
RNObject versionedUtils = new RNObject("host.exp.exponent.VersionedUtils").loadVersion(mSDKVersion);
RNObject builder = versionedUtils.callRecursive("getReactInstanceManagerBuilder", instanceManagerBuilderProperties);

if (ABIVersion.toNumber(mSDKVersion) >= ABIVersion.toNumber("36.0.0")) {
builder.call("setCurrentActivity", this);
}
// This used to not be called prior to SDK 36
builder.call("setCurrentActivity", this);

// ReactNativeInstance is considered to be resumed when it has its activity attached, which is expected to be the case here
builder.call("setInitialLifecycleState", RNObject.versionedEnum(mSDKVersion, "com.facebook.react.common.LifecycleState", "RESUMED"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,16 +253,8 @@ private static String setStyle(@Nullable final String style, final Activity acti
appliedStatusBarStyle = STATUS_BAR_STYLE_DARK_CONTENT;
break;
default:
// TODO: remove this once SDK36 is phased out
if (ABIVersion.toNumber(sdkVersion) < ABIVersion.toNumber("37.0.0")) {
// defaults to "light-content" on pre SDK37
systemUiVisibilityFlags &= ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
appliedStatusBarStyle = STATUS_BAR_STYLE_LIGHT_CONTENT;
} else {
// default to "dark-content" since SDK37
systemUiVisibilityFlags |= View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
appliedStatusBarStyle = STATUS_BAR_STYLE_DARK_CONTENT;
}
systemUiVisibilityFlags |= View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
appliedStatusBarStyle = STATUS_BAR_STYLE_DARK_CONTENT;
break;
}
decorView.setSystemUiVisibility(systemUiVisibilityFlags);
Expand Down
2 changes: 1 addition & 1 deletion android/sdkVersions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"sdkVersions":["36.0.0","37.0.0","38.0.0","39.0.0"]}
{"sdkVersions":["37.0.0","38.0.0","39.0.0"]}
1 change: 0 additions & 1 deletion android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ project(":expo-random").projectDir = new File("../packages/expo-random/android")
"abi39_0_0",
"abi38_0_0",
"abi37_0_0",
"abi36_0_0",
].forEach({ abiVariant ->
include ":expoview-$abiVariant"
project(":expoview-$abiVariant").projectDir = new File(rootDir, "versioned-abis/expoview-$abiVariant")
Expand Down
145 changes: 0 additions & 145 deletions android/versioned-abis/expoview-abi36_0_0/build.gradle

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e719b91

Please sign in to comment.