diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..9c650ad --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,36 @@ +name: Publish + +on: + push: + tags: + - "v*.*.*" + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + # Lets GitHub issue a short-lived OIDC identity token for this job, which npm + # verifies against the package's registered "Trusted Publisher" instead of a + # long-lived NPM_TOKEN secret. See https://docs.npmjs.com/trusted-publishers + id-token: write + steps: + - uses: actions/checkout@v7 + + - uses: jdx/mise-action@v4 + + - name: Install dependencies + run: npm install + + - name: Lint and type-check + run: npm run build:tests + + - name: Set version from tag + run: npm pkg set version="${GITHUB_REF_NAME#v}" + + # No auth token here on purpose: npm publish authenticates via the OIDC + # token from `id-token: write` above. --provenance attaches a signed + # attestation (built from this exact commit/workflow) to the published + # package, visible on the npm listing as a supply-chain transparency check. + - name: Publish to npm + run: npm publish --access public --provenance diff --git a/CLAUDE.md b/CLAUDE.md index ef08deb..1219509 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -55,7 +55,7 @@ React Native CodePush is a native module that enables over-the-air updates for R - When debugging a CI failure, don't trust the first plausible-looking theory from log noise — reproduce the exact failing command locally on matching hardware/toolchain before writing up a root cause. This is faster than iterating against multi-hour CI runs and catches wrong hypotheses early. - Before running `npm run test:setup:ios`, shut down all booted simulators (`xcrun simctl shutdown all`) — the test framework's simulator picker hangs silently (no error) if simulators are already booted outside it. - `npm run test:setup:ios` provisions a full test app outside the repo (under a system temp/`test-run` dir), not inside `test/` — expect to search for it rather than finding it checked into the repo tree. -- The provisioned test app's `node_modules/@code-push-next/react-native-code-push` is a real copy, not a symlink — editing `ios/` (or `android/`) native source in the repo has zero effect on `test:fast:ios` runs until you re-copy those files into that `node_modules` path (or rerun `test:setup:ios`). +- The provisioned test app's `node_modules/@bitrise/code-push-sdk` is a real copy, not a symlink — editing `ios/` (or `android/`) native source in the repo has zero effect on `test:fast:ios` runs until you re-copy those files into that `node_modules` path (or rerun `test:setup:ios`). ### Build Integration - **Android Gradle Plugin**: Automatically generates bundle hashes and processes assets diff --git a/CodePush.podspec b/CodePush.podspec index 9b22e82..84e5f9f 100644 --- a/CodePush.podspec +++ b/CodePush.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.author = package['author'] s.license = package['license'] s.homepage = package['homepage'] - s.source = { :git => 'https://github.com/CodePushNext/react-native-code-push.git', :tag => "v#{s.version}"} + s.source = { :git => 'https://github.com/bitrise-io/react-native-code-push.git', :tag => "v#{s.version}"} s.ios.deployment_target = '15.5' s.tvos.deployment_target = '15.5' s.preserve_paths = '*.js' diff --git a/Examples/CodePushDemo/android/app/build.gradle b/Examples/CodePushDemo/android/app/build.gradle index 9950c65..899b3d4 100644 --- a/Examples/CodePushDemo/android/app/build.gradle +++ b/Examples/CodePushDemo/android/app/build.gradle @@ -118,4 +118,4 @@ dependencies { } } -apply from: "../../node_modules/@code-push-next/react-native-code-push/android/codepush.gradle" \ No newline at end of file +apply from: "../../node_modules/@bitrise/code-push-sdk/android/codepush.gradle" diff --git a/Examples/CodePushDemo/ios/Podfile.lock b/Examples/CodePushDemo/ios/Podfile.lock index b9f337f..05f0629 100644 --- a/Examples/CodePushDemo/ios/Podfile.lock +++ b/Examples/CodePushDemo/ios/Podfile.lock @@ -2422,7 +2422,7 @@ PODS: DEPENDENCIES: - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) - - "CodePush (from `../node_modules/@code-push-next/react-native-code-push`)" + - "CodePush (from `../node_modules/@bitrise/code-push-sdk`)" - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) - fast_float (from `../node_modules/react-native/third-party-podspecs/fast_float.podspec`) - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) @@ -2510,7 +2510,7 @@ EXTERNAL SOURCES: boost: :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" CodePush: - :path: "../node_modules/@code-push-next/react-native-code-push" + :path: "../node_modules/@bitrise/code-push-sdk" DoubleConversion: :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" fast_float: diff --git a/Examples/CodePushDemo/package.json b/Examples/CodePushDemo/package.json index a3d64e3..3d391c7 100644 --- a/Examples/CodePushDemo/package.json +++ b/Examples/CodePushDemo/package.json @@ -14,7 +14,7 @@ "react-native": "0.82.1", "@react-native/new-app-screen": "0.82.1", "react-native-safe-area-context": "^5.5.2", - "@code-push-next/react-native-code-push": "file:../.." + "@bitrise/code-push-sdk": "file:../.." }, "devDependencies": { "@babel/core": "^7.25.2", @@ -39,4 +39,4 @@ "engines": { "node": ">=20" } -} \ No newline at end of file +} diff --git a/Examples/CodePushDemo/yarn.lock b/Examples/CodePushDemo/yarn.lock index ca410d0..0258218 100644 --- a/Examples/CodePushDemo/yarn.lock +++ b/Examples/CodePushDemo/yarn.lock @@ -1019,7 +1019,7 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@code-push-next/react-native-code-push@file:../..": +"@bitrise/code-push-sdk@file:../..": version "10.2.0" dependencies: code-push "4.2.3" diff --git a/Examples/CodePushDemoAppCpp/App.js b/Examples/CodePushDemoAppCpp/App.js index 4107064..cdcac4f 100644 --- a/Examples/CodePushDemoAppCpp/App.js +++ b/Examples/CodePushDemoAppCpp/App.js @@ -11,7 +11,7 @@ import { View, } from 'react-native'; -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; class App extends Component<{}> { constructor() { diff --git a/Examples/CodePushDemoAppCpp/package.json b/Examples/CodePushDemoAppCpp/package.json index 68146e9..2f8109e 100644 --- a/Examples/CodePushDemoAppCpp/package.json +++ b/Examples/CodePushDemoAppCpp/package.json @@ -11,7 +11,7 @@ "dependencies": { "react": "^17.0.2", "react-native": "^0.68.5", - "@code-push-next/react-native-code-push": "^8.1.0", + "@bitrise/code-push-sdk": "file:../..", "react-native-windows": "^1.0.0" }, "resolutions": { diff --git a/Examples/CodePushExpoDemoApp/App.js b/Examples/CodePushExpoDemoApp/App.js index e3ff93b..cf6c9ff 100644 --- a/Examples/CodePushExpoDemoApp/App.js +++ b/Examples/CodePushExpoDemoApp/App.js @@ -1,7 +1,7 @@ import { StatusBar } from 'expo-status-bar'; import React, { useState, useEffect } from 'react'; import { StyleSheet, Text, View } from 'react-native'; -import codePush from '@code-push-next/react-native-code-push'; +import codePush from '@bitrise/code-push-sdk'; function App() { // Log current package information on app start diff --git a/Examples/CodePushExpoDemoApp/app.json b/Examples/CodePushExpoDemoApp/app.json index 20ff9ef..02e2c6b 100644 --- a/Examples/CodePushExpoDemoApp/app.json +++ b/Examples/CodePushExpoDemoApp/app.json @@ -29,7 +29,7 @@ }, "plugins": [ [ - "@code-push-next/react-native-code-push/expo", + "@bitrise/code-push-sdk/expo", { "ios": { "CodePushDeploymentKey": "Tf2qo0NCNKloj8Ym2Z2Bk_VQ_zLDNzk2MGNjNDktNWFiZS00NTAwLWFlNDEtZjMzNzllNGU0MjE0", @@ -51,4 +51,4 @@ ] ] } -} \ No newline at end of file +} diff --git a/Examples/CodePushExpoDemoApp/package-lock.json b/Examples/CodePushExpoDemoApp/package-lock.json index 6f6712e..7f44c27 100644 --- a/Examples/CodePushExpoDemoApp/package-lock.json +++ b/Examples/CodePushExpoDemoApp/package-lock.json @@ -8,7 +8,7 @@ "name": "codepushexpodemoapp", "version": "1.0.0", "dependencies": { - "@code-push-next/react-native-code-push": "github:naveen-bitrise/react-native-code-push#expo-fix", + "@bitrise/code-push-sdk": "github:naveen-bitrise/react-native-code-push#expo-fix", "expo": "~53.0.10", "expo-build-properties": "^0.14.6", "expo-status-bar": "~2.2.3", @@ -1492,7 +1492,7 @@ "node": ">=6.9.0" } }, - "node_modules/@code-push-next/react-native-code-push": { + "node_modules/@bitrise/code-push-sdk": { "version": "10.1.0", "resolved": "git+ssh://git@github.com/naveen-bitrise/react-native-code-push.git#83ed5143f8b6ab63cc02fe1ea97032a80355dafe", "license": "MIT", @@ -1506,7 +1506,7 @@ "xcode": "3.0.1" } }, - "node_modules/@code-push-next/react-native-code-push/node_modules/brace-expansion": { + "node_modules/@bitrise/code-push-sdk/node_modules/brace-expansion": { "version": "1.1.12", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", @@ -1516,7 +1516,7 @@ "concat-map": "0.0.1" } }, - "node_modules/@code-push-next/react-native-code-push/node_modules/glob": { + "node_modules/@bitrise/code-push-sdk/node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", @@ -1537,7 +1537,7 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@code-push-next/react-native-code-push/node_modules/minimatch": { + "node_modules/@bitrise/code-push-sdk/node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", @@ -1549,7 +1549,7 @@ "node": "*" } }, - "node_modules/@code-push-next/react-native-code-push/node_modules/semver": { + "node_modules/@bitrise/code-push-sdk/node_modules/semver": { "version": "7.7.2", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", diff --git a/Examples/CodePushExpoDemoApp/package.json b/Examples/CodePushExpoDemoApp/package.json index 0170282..cb6dfe0 100644 --- a/Examples/CodePushExpoDemoApp/package.json +++ b/Examples/CodePushExpoDemoApp/package.json @@ -9,7 +9,7 @@ "web": "expo start --web" }, "dependencies": { - "@code-push-next/react-native-code-push": "github:naveen-bitrise/react-native-code-push#expo-fix", + "@bitrise/code-push-sdk": "file:../..", "expo": "~53.0.10", "expo-build-properties": "^0.14.6", "expo-status-bar": "~2.2.3", diff --git a/README.md b/README.md index b3a05b2..550578a 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ _Note: CodePush only works with Video components when using `require` in the sou Once you've followed the general-purpose ["getting started"](https://docs.microsoft.com/en-us/appcenter/distribution/codepush/index) instructions for setting up your CodePush account, you can start CodePush-ifying your React Native app by running the following command from within your app's root directory: ```shell -yarn add @code-push-next/react-native-code-push +yarn add @bitrise/code-push-sdk ``` As with all other React Native plugins, the integration experience is different for iOS and Android, so perform the following setup steps depending on which platform(s) you are targeting. Note, if you are targeting both platforms it is recommended to create separate CodePush applications for each platform. @@ -118,7 +118,7 @@ The simplest way to do this is to "CodePush-ify" your app's root component. To d - For class component ```javascript - import codePush from "@code-push-next/react-native-code-push"; + import codePush from "@bitrise/code-push-sdk"; class MyApp extends Component {} @@ -128,7 +128,7 @@ The simplest way to do this is to "CodePush-ify" your app's root component. To d - For functional component ```javascript - import codePush from "@code-push-next/react-native-code-push"; + import codePush from "@bitrise/code-push-sdk"; let MyApp: () => React$Node = () => {}; @@ -142,7 +142,7 @@ The simplest way to do this is to "CodePush-ify" your app's root component. To d - For class component ```javascript - import codePush from "@code-push-next/react-native-code-push"; + import codePush from "@bitrise/code-push-sdk"; @codePush class MyApp extends Component {} @@ -151,7 +151,7 @@ The simplest way to do this is to "CodePush-ify" your app's root component. To d - For functional component ```javascript - import codePush from "@code-push-next/react-native-code-push"; + import codePush from "@bitrise/code-push-sdk"; const MyApp: () => React$Node = () => {}; @@ -225,7 +225,7 @@ _NOTE: If you are using [Redux](http://redux.js.org) and [Redux Saga](https://re // ... "plugins": [ [ - "@code-push-next/react-native-code-push/expo", + "@bitrise/code-push-sdk/expo", { "ios": { "CodePushDeploymentKey": "deployment key", diff --git a/android/codepush.gradle b/android/codepush.gradle index 68b5390..116de30 100644 --- a/android/codepush.gradle +++ b/android/codepush.gradle @@ -69,9 +69,9 @@ gradle.projectsEvaluated { def nodeModulesPath; if (project.hasProperty('nodeModulesPath')) { - nodeModulesPath = "${project.nodeModulesPath}/@code-push-next/react-native-code-push" + nodeModulesPath = "${project.nodeModulesPath}/@bitrise/code-push-sdk" } else { - nodeModulesPath = findNodeModulePath(projectDir, "@code-push-next/react-native-code-push") + nodeModulesPath = findNodeModulePath(projectDir, "@bitrise/code-push-sdk") } def targetName = variant.name.capitalize() diff --git a/docs/setup-android.md b/docs/setup-android.md index cae7224..dfac9b2 100644 --- a/docs/setup-android.md +++ b/docs/setup-android.md @@ -13,7 +13,7 @@ In order to integrate CodePush into your Android project, please perform the fol ```gradle ... - apply from: "../../node_modules/@code-push-next/react-native-code-push/android/codepush.gradle" + apply from: "../../node_modules/@bitrise/code-push-sdk/android/codepush.gradle" ... ``` diff --git a/expo.js b/expo.js index 2a38171..d453377 100644 --- a/expo.js +++ b/expo.js @@ -242,7 +242,7 @@ const withAndroidGradle = (config) => { let content = modConfig.modResults.contents; // This part adds the codepush.gradle apply line and is correct. - const codePushApplyLine = 'apply from: "../../node_modules/@code-push-next/react-native-code-push/android/codepush.gradle"'; + const codePushApplyLine = 'apply from: "../../node_modules/@bitrise/code-push-sdk/android/codepush.gradle"'; if (!content.includes(codePushApplyLine)) { content += `\n${codePushApplyLine}\n`; } diff --git a/mise.toml b/mise.toml index ee9b7ed..d672f00 100644 --- a/mise.toml +++ b/mise.toml @@ -1,4 +1,4 @@ [tools] -node = "22" +node = "24" java = "17" ruby = "4.0" diff --git a/package-lock.json b/package-lock.json index 48b251e..2bdd2b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@code-push-next/react-native-code-push", + "name": "@bitrise/code-push-sdk", "version": "10.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@code-push-next/react-native-code-push", + "name": "@bitrise/code-push-sdk", "version": "10.4.1", "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 39cf5e3..7bab663 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,17 @@ { - "name": "@code-push-next/react-native-code-push", - "version": "10.4.1", + "name": "@bitrise/code-push-sdk", + "version": "0.0.0", "description": "React Native plugin for the CodePush service", "main": "CodePush.js", "typings": "typings/react-native-code-push.d.ts", - "homepage": "https://microsoft.github.io/code-push", + "homepage": "https://github.com/bitrise-io/react-native-code-push", "keywords": [ "react-native", "code", - "push" + "push", + "expo" ], - "author": "Code Push Next", + "author": "Bitrise", "license": "MIT", "scripts": { "clean": "shx rm -rf bin", @@ -38,7 +39,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/CodePushNext/react-native-code-push" + "url": "https://github.com/bitrise-io/react-native-code-push" }, "dependencies": { "code-push": "4.2.3", diff --git a/scripts/tools/linkToolsAndroid.js b/scripts/tools/linkToolsAndroid.js index 49f1184..8a7905c 100644 --- a/scripts/tools/linkToolsAndroid.js +++ b/scripts/tools/linkToolsAndroid.js @@ -13,7 +13,7 @@ exports.getJSBundleFileOverride = ` `; exports.reactNativeHostInstantiation = "new ReactNativeHost(this) {"; exports.mainActivityClassDeclaration = "public class MainActivity extends ReactActivity {"; -exports.codePushGradleLink = `\napply from: "../../node_modules/@code-push-next/react-native-code-push/android/codepush.gradle"`; +exports.codePushGradleLink = `\napply from: "../../node_modules/@bitrise/code-push-sdk/android/codepush.gradle"`; exports.deploymentKeyName = "CodePushDeploymentKey"; exports.getMainApplicationLocation = function () { diff --git a/test/template/app.json b/test/template/app.json index 688070e..67fe977 100644 --- a/test/template/app.json +++ b/test/template/app.json @@ -15,7 +15,7 @@ }, "plugins": [ [ - "@code-push-next/react-native-code-push/expo", + "@bitrise/code-push-sdk/expo", { "ios": { "CodePushDeploymentKey": "mock-ios-deployment-key", diff --git a/test/template/codePushWrapper.js b/test/template/codePushWrapper.js index 81767f4..0a166e3 100644 --- a/test/template/codePushWrapper.js +++ b/test/template/codePushWrapper.js @@ -1,4 +1,4 @@ -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; // This module wraps CodePush API calls to add test message callbacks to every function for simpler test code. @@ -70,4 +70,4 @@ module.exports = { } ); } -} \ No newline at end of file +} diff --git a/test/template/index.js b/test/template/index.js index 748c011..57d8a45 100644 --- a/test/template/index.js +++ b/test/template/index.js @@ -13,7 +13,7 @@ import { View } from 'react-native'; -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; var testScenario = require("./CODE_PUSH_INDEX_JS_PATH"); @@ -165,4 +165,4 @@ const styles = StyleSheet.create({ }, }); -AppRegistry.registerComponent('CODE_PUSH_TEST_APP_NAME', () => CODE_PUSH_TEST_APP_NAME); \ No newline at end of file +AppRegistry.registerComponent('CODE_PUSH_TEST_APP_NAME', () => CODE_PUSH_TEST_APP_NAME); diff --git a/test/template/scenarios/scenarioDisallowRestartImmediate.js b/test/template/scenarios/scenarioDisallowRestartImmediate.js index 0f996ce..fa01445 100644 --- a/test/template/scenarios/scenarioDisallowRestartImmediate.js +++ b/test/template/scenarios/scenarioDisallowRestartImmediate.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { diff --git a/test/template/scenarios/scenarioDisallowRestartOnResume.js b/test/template/scenarios/scenarioDisallowRestartOnResume.js index 8de414f..576b5ab 100644 --- a/test/template/scenarios/scenarioDisallowRestartOnResume.js +++ b/test/template/scenarios/scenarioDisallowRestartOnResume.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { diff --git a/test/template/scenarios/scenarioDisallowRestartOnSuspend.js b/test/template/scenarios/scenarioDisallowRestartOnSuspend.js index dad30ee..3a83bea 100644 --- a/test/template/scenarios/scenarioDisallowRestartOnSuspend.js +++ b/test/template/scenarios/scenarioDisallowRestartOnSuspend.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { diff --git a/test/template/scenarios/scenarioInstall.js b/test/template/scenarios/scenarioInstall.js index 1f9ca06..31a444a 100644 --- a/test/template/scenarios/scenarioInstall.js +++ b/test/template/scenarios/scenarioInstall.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -9,4 +9,4 @@ module.exports = { getScenarioName: function () { return "Install"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioInstallOnRestartWithRevert.js b/test/template/scenarios/scenarioInstallOnRestartWithRevert.js index f88dde7..a96e9f3 100644 --- a/test/template/scenarios/scenarioInstallOnRestartWithRevert.js +++ b/test/template/scenarios/scenarioInstallOnRestartWithRevert.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -9,4 +9,4 @@ module.exports = { getScenarioName: function () { return "Install on Restart with Revert"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioInstallOnResumeWithRevert.js b/test/template/scenarios/scenarioInstallOnResumeWithRevert.js index 2905767..143a6de 100644 --- a/test/template/scenarios/scenarioInstallOnResumeWithRevert.js +++ b/test/template/scenarios/scenarioInstallOnResumeWithRevert.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -9,4 +9,4 @@ module.exports = { getScenarioName: function () { return "Install on Resume with Revert"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioInstallOnSuspendWithRevert.js b/test/template/scenarios/scenarioInstallOnSuspendWithRevert.js index 9fbf473..50f4883 100644 --- a/test/template/scenarios/scenarioInstallOnSuspendWithRevert.js +++ b/test/template/scenarios/scenarioInstallOnSuspendWithRevert.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { diff --git a/test/template/scenarios/scenarioInstallRestart2x.js b/test/template/scenarios/scenarioInstallRestart2x.js index 4523e65..a07849a 100644 --- a/test/template/scenarios/scenarioInstallRestart2x.js +++ b/test/template/scenarios/scenarioInstallRestart2x.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -14,4 +14,4 @@ module.exports = { getScenarioName: function () { return "Install and Restart 2x"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioInstallWithRevert.js b/test/template/scenarios/scenarioInstallWithRevert.js index 17c1da2..94daa1f 100644 --- a/test/template/scenarios/scenarioInstallWithRevert.js +++ b/test/template/scenarios/scenarioInstallWithRevert.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -9,4 +9,4 @@ module.exports = { getScenarioName: function () { return "Install with Revert"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioRestart.js b/test/template/scenarios/scenarioRestart.js index 6a6c707..473067b 100644 --- a/test/template/scenarios/scenarioRestart.js +++ b/test/template/scenarios/scenarioRestart.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -16,4 +16,4 @@ module.exports = { getScenarioName: function () { return "Restart"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioRestart2x.js b/test/template/scenarios/scenarioRestart2x.js index d8f05b2..c82d179 100644 --- a/test/template/scenarios/scenarioRestart2x.js +++ b/test/template/scenarios/scenarioRestart2x.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -14,4 +14,4 @@ module.exports = { getScenarioName: function () { return "Restart2x"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioSync.js b/test/template/scenarios/scenarioSync.js index b797beb..cf9aa66 100644 --- a/test/template/scenarios/scenarioSync.js +++ b/test/template/scenarios/scenarioSync.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -9,4 +9,4 @@ module.exports = { getScenarioName: function () { return "Sync"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioSync2x.js b/test/template/scenarios/scenarioSync2x.js index beecf1d..f5cf23f 100644 --- a/test/template/scenarios/scenarioSync2x.js +++ b/test/template/scenarios/scenarioSync2x.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -10,4 +10,4 @@ module.exports = { getScenarioName: function () { return "Sync 2x"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioSyncMandatoryDefault.js b/test/template/scenarios/scenarioSyncMandatoryDefault.js index c842c66..937ae74 100644 --- a/test/template/scenarios/scenarioSyncMandatoryDefault.js +++ b/test/template/scenarios/scenarioSyncMandatoryDefault.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -9,4 +9,4 @@ module.exports = { getScenarioName: function () { return "Sync Mandatory Default"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioSyncMandatoryRestart.js b/test/template/scenarios/scenarioSyncMandatoryRestart.js index bc05e9b..2dd55c6 100644 --- a/test/template/scenarios/scenarioSyncMandatoryRestart.js +++ b/test/template/scenarios/scenarioSyncMandatoryRestart.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -13,4 +13,4 @@ module.exports = { getScenarioName: function () { return "Sync Mandatory Restart"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioSyncMandatoryResume.js b/test/template/scenarios/scenarioSyncMandatoryResume.js index b536855..ee37fca 100644 --- a/test/template/scenarios/scenarioSyncMandatoryResume.js +++ b/test/template/scenarios/scenarioSyncMandatoryResume.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -13,4 +13,4 @@ module.exports = { getScenarioName: function () { return "Sync Mandatory Resume"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioSyncMandatorySuspend.js b/test/template/scenarios/scenarioSyncMandatorySuspend.js index 96e9518..e52fa43 100644 --- a/test/template/scenarios/scenarioSyncMandatorySuspend.js +++ b/test/template/scenarios/scenarioSyncMandatorySuspend.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { diff --git a/test/template/scenarios/scenarioSyncRestartDelay.js b/test/template/scenarios/scenarioSyncRestartDelay.js index 9ba3ac0..f515c3d 100644 --- a/test/template/scenarios/scenarioSyncRestartDelay.js +++ b/test/template/scenarios/scenarioSyncRestartDelay.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -13,4 +13,4 @@ module.exports = { getScenarioName: function () { return "Sync Restart Delay"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioSyncResume.js b/test/template/scenarios/scenarioSyncResume.js index 98bcd19..7a3f5b1 100644 --- a/test/template/scenarios/scenarioSyncResume.js +++ b/test/template/scenarios/scenarioSyncResume.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -10,4 +10,4 @@ module.exports = { getScenarioName: function () { return "Sync Resume"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioSyncResumeDelay.js b/test/template/scenarios/scenarioSyncResumeDelay.js index 7070b16..9a7babb 100644 --- a/test/template/scenarios/scenarioSyncResumeDelay.js +++ b/test/template/scenarios/scenarioSyncResumeDelay.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -13,4 +13,4 @@ module.exports = { getScenarioName: function () { return "Sync Resume Delay"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/scenarioSyncSuspend.js b/test/template/scenarios/scenarioSyncSuspend.js index 695588c..9dd5454 100644 --- a/test/template/scenarios/scenarioSyncSuspend.js +++ b/test/template/scenarios/scenarioSyncSuspend.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { diff --git a/test/template/scenarios/scenarioSyncSuspendDelay.js b/test/template/scenarios/scenarioSyncSuspendDelay.js index d89a64e..d62f3dd 100644 --- a/test/template/scenarios/scenarioSyncSuspendDelay.js +++ b/test/template/scenarios/scenarioSyncSuspendDelay.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { diff --git a/test/template/scenarios/updateNARConditional.js b/test/template/scenarios/updateNARConditional.js index 01fcdbd..48d74ac 100644 --- a/test/template/scenarios/updateNARConditional.js +++ b/test/template/scenarios/updateNARConditional.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -16,4 +16,4 @@ module.exports = { getScenarioName: function () { return "Conditional Update"; } -}; \ No newline at end of file +}; diff --git a/test/template/scenarios/updateNotifyApplicationReady.js b/test/template/scenarios/updateNotifyApplicationReady.js index bfa6e0f..735f6ba 100644 --- a/test/template/scenarios/updateNotifyApplicationReady.js +++ b/test/template/scenarios/updateNotifyApplicationReady.js @@ -1,5 +1,5 @@ var CodePushWrapper = require("../codePushWrapper.js"); -import CodePush from "@code-push-next/react-native-code-push"; +import CodePush from "@bitrise/code-push-sdk"; module.exports = { startTest: function (testApp) { @@ -10,4 +10,4 @@ module.exports = { getScenarioName: function () { return "Good Update"; } -}; \ No newline at end of file +}; diff --git a/test/test.ts b/test/test.ts index 00de751..914cf25 100644 --- a/test/test.ts +++ b/test/test.ts @@ -129,7 +129,7 @@ class RNAndroid extends Platform.Android implements RNPlatform { }); } - const gradleContent: string = slash(path.join(innerprojectDirectory, "node_modules", "@code-push-next/react-native-code-push", "android", "codepush.gradle")); + const gradleContent: string = slash(path.join(innerprojectDirectory, "node_modules", "@bitrise/code-push-sdk", "android", "codepush.gradle")); //// Set up gradle to build CodePush with the app // Add CodePush to android/app/build.gradle