Skip to content

Commit 0b4436b

Browse files
committed
feat: enhance new architecture support by allowing environment variable for newArchEnabled
1 parent ce9f08c commit 0b4436b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def isNewArchitectureEnabled() {
99
// - Set `newArchEnabled` to true inside the `gradle.properties` file
1010
// - Invoke gradle with `-newArchEnabled=true`
1111
// - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true`
12-
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
12+
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" || System.env.ORG_GRADLE_PROJECT_newArchEnabled == "true"
1313
}
1414

1515
def IS_NEW_ARCHITECTURE_ENABLED = isNewArchitectureEnabled()

react-native.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ module.exports = {
22
dependency: {
33
platforms: {
44
android: {
5-
packageImportPath:
6-
"import com.microsoft.codepush.react.CodePush;",
7-
packageInstance:
8-
"CodePush.getInstance(getResources().getString(R.string.CodePushDeploymentKey), getApplicationContext(), (0 != (getApplicationContext().getApplicationInfo().flags & android.content.pm.ApplicationInfo.FLAG_DEBUGGABLE)))",
95
sourceDir: './android/app',
106
}
117
}

0 commit comments

Comments
 (0)