@srcpush/react-native-code-push 1.0.3-feat-new-arch.4 → 1.0.3-feat-new-arch.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ def isNewArchitectureEnabled() {
9
9
  // - Set `newArchEnabled` to true inside the `gradle.properties` file
10
10
  // - Invoke gradle with `-newArchEnabled=true`
11
11
  // - 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"
13
13
  }
14
14
 
15
15
  def IS_NEW_ARCHITECTURE_ENABLED = isNewArchitectureEnabled()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srcpush/react-native-code-push",
3
- "version": "1.0.3-feat-new-arch.4",
3
+ "version": "1.0.3-feat-new-arch.5",
4
4
  "description": "React Native plugin for the CodePush service",
5
5
  "main": "CodePush.js",
6
6
  "typings": "typings/react-native-code-push.d.ts",
@@ -2,10 +2,6 @@ module.exports = {
2
2
  dependency: {
3
3
  platforms: {
4
4
  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)))",
9
5
  sourceDir: './android/app',
10
6
  }
11
7
  }