Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
a9da067
Create CODEOWNERS (#2329)
Sep 2, 2022
fcb347f
Update README.md (#2340)
betocode Sep 15, 2022
47f502d
Fix: react-native init command error (#2377)
Kwonkunkun Dec 13, 2022
9f903a9
Fix usage of removed method AppState.removeEventListener (#2385)
trcoffman Dec 15, 2022
c0d3394
Fix GA tests pipelines (#2394)
thewulf7 Jan 4, 2023
4ac9fdb
[Android] Fix issue where CODE_PUSH_APK_BUILD_TIME resource was not g…
Abbondanzo Jan 4, 2023
16d4724
Bump vm2 from 3.9.7 to 3.9.13 (#2408)
dependabot[bot] Jan 4, 2023
e879fc7
Bump vm2 from 3.9.7 to 3.9.13 in /Examples/CodePushDemoApp (#2409)
dependabot[bot] Jan 4, 2023
d6e0324
Bump vm2 from 3.9.7 to 3.9.13 in /Examples/CodePushDemoAppCpp (#2410)
dependabot[bot] Jan 4, 2023
f58d767
Bump Newtonsoft.Json from 10.0.3 to 13.0.2 in /windows-legacy/CodePus…
dependabot[bot] Jan 4, 2023
a1565b5
Bump qs from 6.5.2 to 6.5.3 in /Examples/CodePushDemoAppCpp (#2381)
dependabot[bot] Jan 4, 2023
3af06d4
Bump qs from 6.10.1 to 6.11.0 in /Examples/CodePushDemoApp (#2380)
dependabot[bot] Jan 4, 2023
6478ab5
Bump minimatch from 3.0.4 to 3.1.2 in /Examples/CodePushDemoAppCpp (#…
dependabot[bot] Jan 4, 2023
f11bb02
Bump minimatch from 3.0.4 to 3.1.2 in /Examples/CodePushDemoApp (#2374)
dependabot[bot] Jan 4, 2023
5b38631
Bump minimist from 1.2.5 to 1.2.7 in /Examples/CodePushDemoApp (#2405)
dependabot[bot] Jan 4, 2023
c7875db
Bump minimist from 1.2.5 to 1.2.7 (#2407)
dependabot[bot] Jan 4, 2023
5a59132
Bump qs from 6.10.1 to 6.11.0 (#2379)
dependabot[bot] Jan 4, 2023
cc87b9f
Bump async from 3.2.0 to 3.2.4 (#2406)
dependabot[bot] Jan 4, 2023
a0d2a6a
Bump json5 from 2.2.0 to 2.2.3 in /Examples/CodePushDemoApp (#2404)
dependabot[bot] Jan 4, 2023
04c9cbc
Bump json5 from 2.2.0 to 2.2.3 in /Examples/CodePushDemoAppCpp (#2403)
dependabot[bot] Jan 4, 2023
dec0006
Bump decode-uri-component in /Examples/CodePushDemoAppCpp (#2383)
dependabot[bot] Jan 4, 2023
9d16ab7
Bump decode-uri-component in /Examples/CodePushDemoApp (#2387)
dependabot[bot] Jan 4, 2023
c2a2131
Bump plist from 3.0.4 to 3.0.5 (#2315)
dependabot[bot] Jan 4, 2023
d34c6d9
Bump plist from 3.0.4 to 3.0.6 in /Examples/CodePushDemoApp (#2316)
dependabot[bot] Jan 4, 2023
8c36884
Bump Newtonsoft.Json in /windows-legacy/CodePush.Net46.Test (#2291)
dependabot[bot] Jan 4, 2023
1cd2b95
Bump minimatch from 3.0.4 to 3.0.5 (#2412)
dependabot[bot] Jan 4, 2023
6ac33ea
Bump Newtonsoft.Json in /windows-legacy/CodePush.Net46 (#2289)
dependabot[bot] Jan 4, 2023
a1a012a
Bump moment from 2.29.1 to 2.29.4 in /Examples/CodePushDemoAppCpp (#2…
dependabot[bot] Jan 4, 2023
6c6add7
Bump async from 2.6.3 to 2.6.4 in /Examples/CodePushDemoApp (#2262)
dependabot[bot] Jan 4, 2023
1eb052d
Bump async from 2.6.3 to 2.6.4 in /Examples/CodePushDemoAppCpp (#2261)
dependabot[bot] Jan 4, 2023
e2234fc
Bump simple-plist from 1.3.0 to 1.3.1 in /Examples/CodePushDemoAppCpp…
dependabot[bot] Jan 4, 2023
9045a31
Bump url-parse from 1.5.7 to 1.5.10 (#2230)
dependabot[bot] Jan 4, 2023
351b1e0
Bump url-parse from 1.5.7 to 1.5.10 in /Examples/CodePushDemoApp (#2231)
dependabot[bot] Jan 4, 2023
bdff675
Bump url-parse from 1.5.7 to 1.5.10 in /Examples/CodePushDemoAppCpp (…
dependabot[bot] Jan 4, 2023
ab067e8
Bump simple-plist from 1.1.1 to 1.3.1 in /Examples/CodePushDemoApp (#…
dependabot[bot] Jan 4, 2023
9bcf442
Bump simple-plist from 1.1.1 to 1.3.1 (#2277)
dependabot[bot] Jan 4, 2023
67debe6
fix new NativeEventEmitter() was called with a non-null argument with…
herparis Jan 5, 2023
c83dadf
Update deps and fix vulnerabilities (#2424)
DmitriyKirakosyan Jan 18, 2023
98cbc9c
Release 7.1.0 (#2425)
DmitriyKirakosyan Jan 19, 2023
0b677ea
Merge branch 'master' of https://github.com/microsoft/react-native-co…
bishalfan Jan 19, 2023
8ea841f
Support RN 0.71.0 (Closes #2418)
johnf Jan 13, 2023
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @microsoft/appcenter-fte
37 changes: 20 additions & 17 deletions .github/workflows/react-native-code-push-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ jobs:
uses: actions/checkout@v3
- name: Start adb server
run: adb devices
- name: Gradle cache
uses: gradle/gradle-build-action@v2
- name: Download system image "android-${{ matrix.api-level }}"
run: $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-${{ matrix.api-level }};google_apis;x86"
- name: Create android emulator
run: $ANDROID_HOME/tools/bin/avdmanager create avd --force --name TestEmulator --abi google_apis/x86 --package 'system-images;android-${{ matrix.api-level }};google_apis;x86' --device "Nexus 6P"
- name: Start android emulator
run: $ANDROID_HOME/emulator/emulator -avd TestEmulator -noaudio -no-window -no-snapshot-save -no-boot-anim -memory 6144 &
- run: sleep 120
- name: Wait for emulator to boot
run: $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done'
- run: adb shell settings put global window_animation_scale 0.0
- run: adb shell settings put global transition_animation_scale 0.0
- run: adb shell settings put global animator_duration_scale 0.0
Expand All @@ -32,34 +35,34 @@ jobs:
with:
distribution: 'microsoft'
java-version: '11'
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.4'
bundler-cache: true
- name: Package Installation
run: npm i
- name: Install react-native
run: npm install -g react-native
run: npm install
- name: Setup Android tests
run: npm run build:tests && npm run test:setup:android
- name: Remove react-native
run: npm remove -g react-native
- name: Install react-native-cli
run: npm install -g react-native-cli
- name: Run Android test
run: npm run test:fast:android

test-iOS:
name: Test iOS app
runs-on: macos-latest
env:
NO_FLIPPER: ${{ secrets.NO_FLIPPER }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependecies
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.4'
bundler-cache: true
- name: Install dependencies
run: npm install
- name: Install react-native-cli
run: npm install react-native-cli
- name: Install reacti-native
run: npm install react-native
- name: Build tests
run: npm run build:tests
- name: Setup tests
run: npm run test:setup:ios
- name: Setup iOS tests
run: npm run build:tests && npm run test:setup:ios
- name: Run tests
run: npm run test:fast:ios
13 changes: 6 additions & 7 deletions CodePush.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async function notifyApplicationReadyInternal() {
return statusReport;
}

async function tryReportStatus(statusReport, resumeListener) {
async function tryReportStatus(statusReport, retryOnAppResume) {
const config = await getConfiguration();
const previousLabelOrAppVersion = statusReport.previousLabelOrAppVersion;
const previousDeploymentKey = statusReport.previousDeploymentKey || config.deploymentKey;
Expand Down Expand Up @@ -209,22 +209,21 @@ async function tryReportStatus(statusReport, resumeListener) {
}

NativeCodePush.recordStatusReported(statusReport);
resumeListener && AppState.removeEventListener("change", resumeListener);
retryOnAppResume && retryOnAppResume.remove();
} catch (e) {
log(`Report status failed: ${JSON.stringify(statusReport)}`);
NativeCodePush.saveStatusReportForRetry(statusReport);
// Try again when the app resumes
if (!resumeListener) {
resumeListener = async (newState) => {
if (!retryOnAppResume) {
const resumeListener = AppState.addEventListener("change", async (newState) => {
if (newState !== "active") return;
const refreshedStatusReport = await NativeCodePush.getNewStatusReport();
if (refreshedStatusReport) {
tryReportStatus(refreshedStatusReport, resumeListener);
} else {
AppState.removeEventListener("change", resumeListener);
resumeListener && resumeListener.remove();
}
};
AppState.addEventListener("change", resumeListener);
});
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CodePushDemoApp/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.67.1",
"react-native": "0.68.5",
"react-native-code-push": "7.0.4"
},
"resolutions": {
Expand Down
Loading