Commit Graph

25 Commits

Author SHA1 Message Date
ymusiychuk-lohika
72cb03df39 Ensure that unzipped folder does not exist before unzip on Windows (#732)
* Ensure that Unzipped folder does not exists before unzip

* Updated comment

* Renamed InitUnzippedFolderAsync -> CreateUnzippedFolderAsync, getFolder -> existingFolder
2017-03-02 12:12:07 -08:00
Alexander Bodalevsky
be96f07eda Added React Native Windows dotNet46 support (#684)
Added support react-native-windows dotNet
Added example for react-native-windows UWP based
Added example for react-native-windows dotNet based

Project structure:

CodePush.Shared - shared code between UWP and dotNet
CodePush - UWP specific code
CodePush.Net46 - dotNet specific code

For UWP solution it needs to be added the following projects:

CodePush.Shared
CodePush
For dotNet solution it needs to be added the following projects:

CodePush.Shared
CodePush.Net46
Examples:

Examples\CodePushDemoApp\windows\CodePushDemoApp.sln the solution contains both examples (UWP and dotNet).

Notes

Example for ARM configuration has not been tested. Since there is no changes in UWP part of implementation, there is low risk of failure.

In this implementation we tried to reuse UWP library as much as possible. The following issues are relevant for both platforms:

ZipFile.ExtractToDirectory is not reliable and throws exception if:
folder exists already
path is too long (> 250 chars)
Un-zipping is quite long operation. Does it make sense for async?
await UpdateUtils.UnzipBundleAsync(downloadFile.Path, unzippedFolder.Path);
2017-02-13 16:23:20 -08:00
Eric Rozell
b72bf77e25 fix(async): Changing all await calls to .ConfigureAwait(false)
The async calls in CodePush for ReactWindows can all be executed on any background thread, so adding .ConfigureAwait(false) can improve performance and reduce the likelihood of deadlock.  The blocking calls in `InitializeUpdateAfterRestart()` were hanging, but now that .ConfigureAwait(false) is used pervasively, it is no longer a problem.

Fixes #550
2016-10-05 09:47:20 -04:00
Eric Rozell
032df754f1 style(Async): Adding suffix to async static methods. (#552) 2016-10-04 22:19:20 -07:00
Eric Rozell
ea265bb1e4 Use async void for ReactMethods instead of requeueing an async action on the native module thread. (#551) 2016-10-04 22:18:34 -07:00
Eric Rozell
9396824ba1 style(CodePush): Minor cosmetic changes throughout project (#549)
Includes the following changes:
* UpdateState.Lastest -> UpdateState.Latest
* Added *Async suffix to Task returning methods
* Using DateTimeOffset in MinimumBackgroundListener
* Disposing IDisposable streams in UpdateManager.DownloadPackage
2016-10-04 12:57:30 -07:00
Eric Rozell
b1ae3dcdd0 Fixing up project configurations to match latest in ReactWindows (#548)
* Fix hint path for react-native-windows .csproj

* Update project.json to 5.2.2 to match latest ReactWindows project.

* Upgrading Newtonsoft.Json to match latest in ReactWindows.
2016-10-04 11:18:18 -07:00
Eric Rozell
12469a37ef Merge pull request #545 from rozele/appRestart
fix(AppRestart): Fix update-on-app-restart for UWP
2016-10-04 11:12:49 -07:00
Geoffrey Goh
6ddfdd9f84 Merge branch 'windows-support' of github.com:Microsoft/react-native-code-push into windows-support 2016-05-06 10:26:57 -07:00
Geoffrey Goh
0bd9afb3d5 Min -> Minimum 2016-05-06 10:26:40 -07:00
Geoffrey Goh
05bfde6f88 Update MinBackgroundListener.cs 2016-05-05 15:45:29 -07:00
Geoffrey Goh
67a65ded01 native modules can take enum args! 2016-05-05 14:11:58 -07:00
Geoffrey Goh
40b8c8ef41 CR feedback 2016-05-05 14:02:54 -07:00
Geoffrey Goh
08283efe2d CR feedback 2016-05-05 10:37:38 -07:00
Geoffrey Goh
34f1ca4c6d update csproj (turns out you need to 'Save All' in VS before it actually gets updated) 2016-05-04 18:42:05 -07:00
Geoffrey Goh
15c72591fa get rid of CodePushUnknownException.cs 2016-05-04 18:36:13 -07:00
Geoffrey Goh
97b8233d26 CR feedback 2016-05-04 18:26:33 -07:00
Geoffrey Goh
d6b8bff46d remove unecessary comment 2016-05-02 18:21:51 -07:00
Geoffrey Goh
dcfb62628c remove TODO 2016-05-02 18:20:37 -07:00
Geoffrey Goh
e10f70254e update readme whitespaces 2016-05-02 18:19:13 -07:00
Geoffrey Goh
3ed5bf2cd8 remove whitespace line 2016-05-02 18:17:58 -07:00
Geoffrey Goh
c36367a731 update to master 2016-05-02 18:06:03 -07:00
Geoffrey Goh
15cd39c732 update API 2016-04-12 14:42:16 -07:00
Geoffrey Goh
acca84db88 make GetBundleUrl non-static 2016-04-11 19:13:42 -07:00
Geoffrey Goh
92da7c6de8 add windows support 2016-04-11 17:12:20 -07:00