Граф коммитов

129 Коммитов

Автор SHA1 Сообщение Дата
MikhailSuendukov 6c5bdd9f98
Improve root component ref definition (#2705)
* improve root component ref definition

* check RootComponent.prototype for null
2024-07-03 08:24:48 +07:00
Tyler Coffman 9f903a91f2
Fix usage of removed method AppState.removeEventListener (#2385)
AppState.removeEventListener was removed in react-native 0.70, after being
deprecated for over a year. Anybody using react-native 0.70 will experience an
unhandled TypeError when trying to invoke removeEventListener.

Replace the usage of removeEventListener with the `remove()` method on the
subscription returned by addEventListener.

Stop reassigning the resumeListener argument. It's a bad practice to reassign
function arguments, and it is common to have an eslint rule to block this.
Rename the argument to retryOnAppResume so that when we create resumeListener,
there is no reassignment of a function argument.
2022-12-15 17:36:55 +01:00
Andrey Dubov 0a3db5a139
Block sending requests if the deployment key is missed (#1967) 2020-11-05 14:35:19 +03:00
Andrey Dubov 0d3d2d70e2
Move disallowRestart to native side (#1894)
Issue: Now disallowRestart feature works for InstallMode.IMMEDIATE only. #788

Solution: Move _allowed flag to the native side and use it for ON_NEXT_RESUME, ON_NEXT_SUSPEND, and IMMEDIATE installation mode.
2020-07-15 12:08:53 +03:00
Alexander Goncharov c39fa0d31c
Replace App Store version with binary version in docs (#1614) 2019-06-18 23:17:52 +03:00
Yuri Kulikov 693b769ba6 [Feature] Re-try mechanism for CodePush Rollbacks (#1467) 2018-12-06 13:48:26 +03:00
Chris Williams 8200dbc4e7 Fix typo in 'downloadProgressCallbackkWithTryCatch' (#1428) 2018-10-12 22:53:58 +03:00
Marc 8b5b8eab0a Expose clearUpdates method to RN for purging downloaded packages (#1269)
This is useful when changing to a deployment with an older version than
the currently installed package.
2018-06-29 11:30:18 +03:00
Hunter Dolan 14c2530a5f Move the install button on the update dialog to the right of the ignore button (#1232) 2018-03-30 17:25:11 +03:00
David Buchan-Swanson a585cbb003 hoist non-react static methods in decorator (#1037) 2017-10-09 17:05:21 +03:00
Ruslan Bikkinin 85e094f7e1 Handle TargetBinaryVersionMismatch #2 (#920)
* Handle TargetBinaryVersionMismatch

* fix readme, add binary version mismatch example to docs

* fix docs, typings
2017-07-17 17:19:52 +03:00
Sergey Akhalkov 8d63d81bf3 fix java.lang.NullPointerException: java.io.File.<init> (File.java:262) exception (#911)
relates to #906, #910
2017-07-03 17:13:16 +03:00
farwayer 3d5bf1a685 Avoid to set refs on stateless components (#866) 2017-06-06 09:10:16 +03:00
Jiaming Lu a59e4cfabb Fix packageHash not passed to /updateCheck on Android (#803) 2017-05-25 11:32:21 +03:00
Sergey Akhalkov 2cd2ef0ca2 sync: install update even if an error occurs in callbacks (#787)
Wrap up syncStatusChangeCallback and downloadProgressCallback methods with try/catch block to make it possible to install CodePush updates even if an error occurs while trying to run syncStatusChangeCallback or downloadProgressCallback methods
2017-04-27 13:34:44 -07:00
Sergey Akhalkov 54351dbe19 installModes: implement new ON_NEXT_SUSPEND install mode (#770)
Restart the app _while_ it is in the background, but only after it has been in the background for "minimumBackgroundDuration" seconds (0 by default), so that user context isn't lost unless the app suspension is long enough to not matter.
2017-04-11 12:52:18 +03:00
Sergey Akhalkov e558fb28c4 Check if currentPackage isn’t undefined before accessing to the isPending property (#779) 2017-04-04 15:32:36 +03:00
Sergey Akhalkov c84337501a CodePush.js: fix syncStatus value mismatch (#765)
After `SyncStatus` correctly goes to `UPDATE_INSTALLED`, on the next resume it transitions to `CHECKING_FOR_UPDATE` and then `UP_TO_DATE`, even though the update has not yet been installed. It should be equals to `UPDATE_INSTALLED` value again until next app restart.
2017-03-31 10:59:52 +03:00
Geoffrey Goh df909cf4e6 oops 2016-08-18 12:05:36 -07:00
Geoffrey Goh e1edb83ab4 don't bind lifecycle hooks if root component instance is not ES6 2016-08-18 12:01:51 -07:00
Mads Lee Jensen 153ba2621b added syncStatusCallback variable declaration 2016-08-05 23:58:48 +02:00
Mads Lee Jensen dd6ad915b5 guard against codePushDownloadDidProgress(...) or codePushStatusDidChange(...) not being defined 2016-08-05 16:15:00 +02:00
Mads Lee Jensen 81e0f13ff9 bind 'this' to the react component in the callbacks codePushStatusDidChange(...) and codePushDownloadDidProgress(...) 2016-08-05 15:20:50 +02:00
Geoffrey Goh d8bdd63ce7 CR feedback 2016-08-02 17:44:02 -07:00
Geoffrey Goh 79381ebf0a allow no opts to decorator 2016-08-02 17:34:02 -07:00
Geoffrey Goh 3f29e9d03b Update CodePush.js 2016-08-02 16:30:27 -07:00
Geoffrey Goh dfd6a4f8ce remove codepushify property 2016-08-01 17:55:09 -07:00
Geoffrey Goh f0379ffb3e CR feedback 2016-08-01 16:25:03 -07:00
Geoffrey Goh 6fa99e1094 CR feedback 2016-08-01 16:24:43 -07:00
Geoffrey Goh 4326515f28 CR feedback 2016-08-01 16:17:46 -07:00
Geoffrey Goh f92acc6f55 update error handling 2016-07-16 12:16:19 -07:00
Geoffrey Goh 902009f721 add codePushify decorator 2016-07-15 20:17:30 -07:00
Ian MacLeod 8c432e4595 Bug fix for #379 where status report can be undefined on notifyApplicationReady
I introduced a crash on subsequent launches after an update is applied, where `getNewStatusReport()` returns nothing.  This fixes it!
2016-06-23 10:52:35 -07:00
Geoffrey Goh 848a9616a7 Merge pull request #379 from convoyinc/nevir/status-report
Expose status reports via notifyAppReady()
2016-06-17 11:17:17 -07:00
Ian MacLeod 04e84b5c6b Bring back resumeListener 2016-06-15 15:55:03 -07:00
scottbommarito ce6ac09d9b Merge pull request #357 from Microsoft/automated-testing
ADD AUTOMATED TESTING
2016-06-15 11:04:12 -07:00
Ian MacLeod bc7ee8b1f6 Typings for the status report 2016-06-15 10:18:52 -07:00
Ian MacLeod 26634c02a9 Expose the status report when calling notifyAppReady 2016-06-15 10:18:07 -07:00
Ian MacLeod 5bf85953ed Include local package mixins when returning packages from getUpdateMetadata()
I.e. this exposes `install()` on packages returned by `getUpdateMetadata()`.
2016-06-14 18:52:25 -07:00
scottbommarito fdb3bd9df1 Merge branch 'master' into automated-testing 2016-06-13 10:37:02 -07:00
Geoffrey Goh 44ba85dab8 Update CodePush.js 2016-06-08 10:50:56 -07:00
Geoffrey Goh aa456010fb Update CodePush.js 2016-06-07 18:37:03 -07:00
scottbommarito e87f1977d0 tests work on android, mostly on iOS 2016-05-25 14:26:35 -07:00
Jonathan Carter 1306c4b635 Tweaking log messages 2016-05-23 17:30:52 -07:00
danielbasedow 1a49e760cb work on issues from comments
-remove restartAllowed
-add logging to RestartManager
-keep track of pending restarts
2016-05-23 21:59:44 +02:00
danielbasedow 3ffa986670 remove comma 2016-05-23 21:10:29 +02:00
danielbasedow d8e6d302a1 move restartApp to RestartManager 2016-05-22 18:41:07 +02:00
danielbasedow 088daeaf7d add code to delay automatic restarts 2016-05-22 11:53:20 +02:00
Geoffrey Goh 2043e296ac Revert "update JS"
This reverts commit b038fb493f.
2016-05-10 15:26:36 -07:00
Geoffrey Goh b038fb493f update JS 2016-05-10 13:35:10 -07:00