@srcpush/react-native-code-push 1.0.3-feat-new-arch.3 → 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()
@@ -1,24 +1,18 @@
1
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
1
+ apply plugin: 'com.android.library'
2
2
 
3
- buildscript {
4
- repositories {
5
- google()
6
- mavenCentral()
7
- }
8
- dependencies {
9
- classpath 'com.android.tools.build:gradle:1.3.0'
3
+ android {
4
+ namespace "com.microsoft.codepush.react"
5
+ compileSdkVersion 33
10
6
 
11
- // NOTE: Do not place your application dependencies here; they belong
12
- // in the individual module build.gradle files
7
+ defaultConfig {
8
+ minSdkVersion 21
9
+ targetSdkVersion 33
10
+ versionCode 1
11
+ versionName "1.0"
13
12
  }
14
13
  }
15
14
 
16
- allprojects {
17
- android {
18
- namespace "com.microsoft.codepush.react"
19
- }
20
- repositories {
21
- mavenLocal()
22
- mavenCentral()
23
- }
24
- }
15
+ repositories {
16
+ mavenLocal()
17
+ mavenCentral()
18
+ }
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.3",
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
  }