Commit Graph

119 Commits

Author SHA1 Message Date
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
Geoffrey Goh
0ee423c259 retry report status 2016-05-09 18:49:58 -07:00
Geoffrey Goh
40b8c8ef41 CR feedback 2016-05-05 14:02:54 -07:00
Geoffrey Goh
4508f63048 improve download progress perf 2016-04-27 14:29:38 -07:00
Jonathan Carter
4e631859cd Alias notifyAppReady 2016-04-18 10:06:17 -07:00
Jonathan Carter
c7b6dd2891 Fixing typos 2016-04-18 09:45:14 -07:00
Jonathan Carter
3086aeae08 iOS implementation of getUpdateMetadata 2016-04-15 15:24:22 -07:00
Jonathan Carter
af2a5c6970 iOS implementation of minimumBackgroundDuration 2016-03-10 12:06:44 -08:00
Geoffrey Goh
0ec35800c1 Merge pull request #225 from Microsoft/remove-semver-use
Remove semver use
2016-03-07 18:51:04 -08:00
Geoffrey Goh
89d0ffaeb8 clear updates when app version changes 2016-03-07 18:34:45 -08:00
Jonathan Carter
8da977ea90 Removing .done call 2016-03-07 08:58:49 -08:00