@srcpush/react-native-code-push 1.0.3-develop.2 → 1.0.3-develop.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CONTRIBUTING.md +20 -9
  2. package/package.json +1 -1
  3. package/windows/CodePush/CodePush.def +0 -3
  4. package/windows/CodePush/CodePush.vcxproj +0 -198
  5. package/windows/CodePush/CodePush.vcxproj.filters +0 -91
  6. package/windows/CodePush/CodePushConfig.cpp +0 -104
  7. package/windows/CodePush/CodePushConfig.h +0 -66
  8. package/windows/CodePush/CodePushConfig.idl +0 -12
  9. package/windows/CodePush/CodePushDownloadHandler.cpp +0 -73
  10. package/windows/CodePush/CodePushDownloadHandler.h +0 -32
  11. package/windows/CodePush/CodePushNativeModule.cpp +0 -937
  12. package/windows/CodePush/CodePushNativeModule.h +0 -247
  13. package/windows/CodePush/CodePushPackage.cpp +0 -456
  14. package/windows/CodePush/CodePushPackage.h +0 -49
  15. package/windows/CodePush/CodePushTelemetryManager.cpp +0 -213
  16. package/windows/CodePush/CodePushTelemetryManager.h +0 -29
  17. package/windows/CodePush/CodePushUpdateUtils.cpp +0 -86
  18. package/windows/CodePush/CodePushUpdateUtils.h +0 -38
  19. package/windows/CodePush/CodePushUtils.cpp +0 -29
  20. package/windows/CodePush/CodePushUtils.h +0 -18
  21. package/windows/CodePush/FileUtils.cpp +0 -131
  22. package/windows/CodePush/FileUtils.h +0 -28
  23. package/windows/CodePush/PropertySheet.props +0 -16
  24. package/windows/CodePush/ReactPackageProvider.cpp +0 -15
  25. package/windows/CodePush/ReactPackageProvider.h +0 -22
  26. package/windows/CodePush/ReactPackageProvider.idl +0 -9
  27. package/windows/CodePush/miniz/LICENSE +0 -22
  28. package/windows/CodePush/miniz/miniz.c +0 -7657
  29. package/windows/CodePush/miniz/miniz.h +0 -1338
  30. package/windows/CodePush/miniz/readme.md +0 -37
  31. package/windows/CodePush/packages.config +0 -4
  32. package/windows/CodePush/pch.cpp +0 -1
  33. package/windows/CodePush/pch.h +0 -4
  34. package/windows-legacy/CodePush/CodePush.csproj +0 -128
  35. package/windows-legacy/CodePush/CodePushUtils.cs +0 -47
  36. package/windows-legacy/CodePush/FileUtils.cs +0 -40
  37. package/windows-legacy/CodePush/Properties/AssemblyInfo.cs +0 -29
  38. package/windows-legacy/CodePush/Properties/CodePush.rd.xml +0 -33
  39. package/windows-legacy/CodePush/UpdateManager.cs +0 -305
  40. package/windows-legacy/CodePush/UpdateUtils.cs +0 -46
  41. package/windows-legacy/CodePush.Net46/Adapters/Http/HttpProgress.cs +0 -28
  42. package/windows-legacy/CodePush.Net46/Adapters/Storage/ApplicationDataContainer.cs +0 -106
  43. package/windows-legacy/CodePush.Net46/CodePush.Net46.csproj +0 -103
  44. package/windows-legacy/CodePush.Net46/CodePushUtils.cs +0 -158
  45. package/windows-legacy/CodePush.Net46/FileUtils.cs +0 -55
  46. package/windows-legacy/CodePush.Net46/Properties/AssemblyInfo.cs +0 -36
  47. package/windows-legacy/CodePush.Net46/UpdateManager.cs +0 -330
  48. package/windows-legacy/CodePush.Net46/UpdateUtils.cs +0 -70
  49. package/windows-legacy/CodePush.Net46/packages.config +0 -5
  50. package/windows-legacy/CodePush.Net46.Test/ApplicationDataContainerTest.cs +0 -105
  51. package/windows-legacy/CodePush.Net46.Test/CodePush.Net46.Test.csproj +0 -137
  52. package/windows-legacy/CodePush.Net46.Test/Properties/AssemblyInfo.cs +0 -36
  53. package/windows-legacy/CodePush.Net46.Test/TelemetryManagerTest.cs +0 -117
  54. package/windows-legacy/CodePush.Net46.Test/app.config +0 -11
  55. package/windows-legacy/CodePush.Net46.Test/packages.config +0 -4
  56. package/windows-legacy/CodePush.Shared/CodePush.Shared.projitems +0 -22
  57. package/windows-legacy/CodePush.Shared/CodePush.Shared.shproj +0 -13
  58. package/windows-legacy/CodePush.Shared/CodePushConstants.cs +0 -35
  59. package/windows-legacy/CodePush.Shared/CodePushNativeModule.cs +0 -329
  60. package/windows-legacy/CodePush.Shared/CodePushReactPackage.cs +0 -235
  61. package/windows-legacy/CodePush.Shared/CodePushUtils.cs +0 -70
  62. package/windows-legacy/CodePush.Shared/InstallMode.cs +0 -9
  63. package/windows-legacy/CodePush.Shared/MinimumBackgroundListener.cs +0 -44
  64. package/windows-legacy/CodePush.Shared/SettingsManager.cs +0 -148
  65. package/windows-legacy/CodePush.Shared/TelemetryManager.cs +0 -250
  66. package/windows-legacy/CodePush.Shared/UpdateState.cs +0 -9
@@ -1,32 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
-
4
- #pragma once
5
-
6
- #include "winrt/Windows.Storage.h"
7
- #include "winrt/Windows.Foundation.h"
8
- #include "winrt/Windows.Data.Json.h"
9
- #include <string_view>
10
- #include <functional>
11
-
12
- namespace Microsoft::CodePush::ReactNative
13
- {
14
- struct CodePushDownloadHandler
15
- {
16
- winrt::Windows::Storage::StorageFile downloadFile;
17
- int64_t expectedContentLength;
18
- int64_t receivedContentLength;
19
- std::function<void(int64_t, int64_t)> progressCallback;
20
- std::wstring_view downloadUrl;
21
-
22
- CodePushDownloadHandler(
23
- winrt::Windows::Storage::StorageFile downloadFile,
24
- std::function<void(int64_t, int64_t)> progressCallback);
25
-
26
- // Returns true if the downloaded file is a zip file
27
- winrt::Windows::Foundation::IAsyncOperation<bool> Download(std::wstring_view url);
28
-
29
- private:
30
- static constexpr uint32_t BufferSize{ 256 * 1024 };
31
- };
32
- }