Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CodePush.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion Examples/CodePushDemo/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ dependencies {
}
}

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"
4 changes: 2 additions & 2 deletions Examples/CodePushDemo/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions Examples/CodePushDemo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -39,4 +39,4 @@
"engines": {
"node": ">=20"
}
}
}
2 changes: 1 addition & 1 deletion Examples/CodePushDemo/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion Examples/CodePushDemoAppCpp/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion Examples/CodePushDemoAppCpp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion Examples/CodePushExpoDemoApp/App.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions Examples/CodePushExpoDemoApp/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"plugins": [
[
"@code-push-next/react-native-code-push/expo",
"@bitrise/code-push-sdk/expo",
{
"ios": {
"CodePushDeploymentKey": "Tf2qo0NCNKloj8Ym2Z2Bk_VQ_zLDNzk2MGNjNDktNWFiZS00NTAwLWFlNDEtZjMzNzllNGU0MjE0",
Expand All @@ -51,4 +51,4 @@
]
]
}
}
}
12 changes: 6 additions & 6 deletions Examples/CodePushExpoDemoApp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Examples/CodePushExpoDemoApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 {}

Expand All @@ -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 = () => {};

Expand All @@ -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 {}
Expand All @@ -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 = () => {};

Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions android/codepush.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion docs/setup-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
...
```

Expand Down
2 changes: 1 addition & 1 deletion expo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}
Expand Down
2 changes: 1 addition & 1 deletion mise.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[tools]
node = "22"
node = "24"
java = "17"
ruby = "4.0"
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about Expo? Can we add Expo as keyword?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, fixed

"code",
"push"
"push",
"expo"
],
"author": "Code Push Next",
"author": "Bitrise",
"license": "MIT",
"scripts": {
"clean": "shx rm -rf bin",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scripts/tools/linkToolsAndroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/template/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"plugins": [
[
"@code-push-next/react-native-code-push/expo",
"@bitrise/code-push-sdk/expo",
{
"ios": {
"CodePushDeploymentKey": "mock-ios-deployment-key",
Expand Down
4 changes: 2 additions & 2 deletions test/template/codePushWrapper.js
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -70,4 +70,4 @@ module.exports = {
}
);
}
}
}
4 changes: 2 additions & 2 deletions test/template/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down Expand Up @@ -165,4 +165,4 @@ const styles = StyleSheet.create({
},
});

AppRegistry.registerComponent('CODE_PUSH_TEST_APP_NAME', () => CODE_PUSH_TEST_APP_NAME);
AppRegistry.registerComponent('CODE_PUSH_TEST_APP_NAME', () => CODE_PUSH_TEST_APP_NAME);
Loading