Commit Graph

33 Commits

Author SHA1 Message Date
Eric Rozell
63afcba0bb fix(NuGet): align NuGet dependencies with react-native-windows (#1209)
Switching to .csproj-based NuGet package references and updating to match the current dependencies for react-native-windows.

Towards Microsoft/react-native-windows#1644
2018-02-21 13:42:30 +03:00
Meng-Yuan Huang
c689f764c7 Fix a GetFileAsync exception due to that fileNameToDelete uses forward slash characters as path separator. (#1126) 2017-12-28 23:52:11 -08:00
Eric Rozell
cf36d1cf25 Enable CodePush for react-native-windows v0.50+ (#1051)
In react-native-windows v0.50+, we added ReactNativeHost, which has better support for running React Native in the background as well as embedding React Native in other controls besides XAML Pages.
2017-11-16 20:22:01 +03:00
Alexander Bodalevsky
b79257f419 Fix WPF. Application crashes on startup (#973)
* Align windows examples with the latest react native  react native v: 0.47.1

* re-create corrupted json file
2017-08-24 12:51:44 +03:00
Alexander Bodalevsky
fe9745237b [WPF] Fix application crash when storage file was deleted while app is being active. (#897)
* Create file if non exist on each call

* Added asyn operation
2017-06-22 14:53:23 +03:00
Alexander Bodalevsky
d132593458 Windows: Implemented TelemetryManager (#812)
* Examples updated to RNW 0.43.0

* Initial implementation

* interim commit

* getUpdateReport - completed

* getBinaryUpdateReport - completed

* getRetryStatusReport - completed

* getRollbackReport - completed

* recordStatusReported - completed
saveStatusReportForRetry - completed

* Commented unused variables

* Fixed telemetry report

* Optimization: run telemetry in async mode

* neat fixes

* react-native-windows updated to 0.43.0-rc.0

* neat fix

* added async to some ReactMEthod calls
2017-06-16 13:58:52 +03:00
Alexander Bodalevsky
6a1d1ffcac WPF:WINDOWS Added ability to update application installed in Program Files folder (#813)
* Updated Windows Example

* Organized usings

* Fix for update application in write protected folder

* Typo fixed

* Examples updated to RNW 0.43.0

* Fixed Warning  CS0108
2017-06-16 13:52:06 +03:00
Alexander Bodalevsky
80210059b0 Windows - Fix for #713 NullReferenceException due to missing ProcessorId key (#743) 2017-03-21 13:35:51 -07:00
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