react-native-update 10.55.1 → 10.56.0
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.
- package/README-CN.md +35 -0
- package/README.md +37 -0
- package/android/build.gradle +53 -27
- package/android/jni/Application.mk +6 -1
- package/android/jni/hpatch.c +59 -4
- package/android/lib/arm64-v8a/librnupdate.so +0 -0
- package/android/lib/armeabi-v7a/librnupdate.so +0 -0
- package/android/lib/x86/librnupdate.so +0 -0
- package/android/lib/x86_64/librnupdate.so +0 -0
- package/android/proguard.pro +70 -14
- package/android/src/main/java/cn/reactnative/modules/update/ApkInstaller.java +15 -8
- package/android/src/main/java/cn/reactnative/modules/update/ArchiveLimits.java +1 -0
- package/android/src/main/java/cn/reactnative/modules/update/BundledResourceCopier.java +1 -2
- package/android/src/main/java/cn/reactnative/modules/update/CleanupKeepNames.java +25 -0
- package/android/src/main/java/cn/reactnative/modules/update/DownloadTask.java +98 -34
- package/android/src/main/java/cn/reactnative/modules/update/DownloadTaskParams.java +29 -0
- package/android/src/main/java/cn/reactnative/modules/update/FileOperationException.java +15 -0
- package/android/src/main/java/cn/reactnative/modules/update/HttpUtils.java +59 -0
- package/android/src/main/java/cn/reactnative/modules/update/InstallRecord.java +27 -1
- package/android/src/main/java/cn/reactnative/modules/update/NativeCheckOrchestrator.java +57 -16
- package/android/src/main/java/cn/reactnative/modules/update/ReactReloadManager.java +38 -46
- package/android/src/main/java/cn/reactnative/modules/update/UpdateContext.java +279 -183
- package/android/src/main/java/cn/reactnative/modules/update/UpdateFileUtils.java +14 -0
- package/android/src/main/java/cn/reactnative/modules/update/UpdateModuleImpl.java +222 -215
- package/android/src/main/java/cn/reactnative/modules/update/UpdatePackage.java +5 -0
- package/android/src/newarch/cn/reactnative/modules/update/UpdateModule.java +23 -25
- package/android/src/oldarch/cn/reactnative/modules/update/UpdateModule.java +29 -29
- package/cpp/patch_core/archive_limits.h +6 -0
- package/cpp/patch_core/jni_util.h +6 -2
- package/cpp/patch_core/patch_core.cpp +237 -84
- package/cpp/patch_core/patch_core.h +11 -0
- package/cpp/patch_core/patch_core_android.cpp +49 -33
- package/cpp/patch_core/update_core_android.cpp +134 -103
- package/cpp/update_flow_core/flow_json.cpp +150 -17
- package/cpp/update_flow_core/flow_json.h +13 -1
- package/cpp/update_flow_core/update_flow_core.cpp +78 -8
- package/cpp/update_flow_core/update_flow_core.h +9 -0
- package/cpp/update_flow_core/update_flow_jni.cpp +44 -25
- package/harmony/hvigor-plugin.ts +168 -21
- package/harmony/pushy/src/README.md +74 -0
- package/harmony/pushy/src/main/cpp/CMakeLists.txt +13 -3
- package/harmony/pushy/src/main/cpp/PushyTurboModule.cpp +11 -5
- package/harmony/pushy/src/main/cpp/pushy.cpp +103 -18
- package/harmony/pushy/src/main/ets/ArchiveLimits.ts +61 -5
- package/harmony/pushy/src/main/ets/DownloadTask.ts +255 -166
- package/harmony/pushy/src/main/ets/ErrorCodes.ts +75 -0
- package/harmony/pushy/src/main/ets/EventHub.ts +22 -20
- package/harmony/pushy/src/main/ets/InstallRecord.ts +79 -21
- package/harmony/pushy/src/main/ets/Logger.ts +42 -16
- package/harmony/pushy/src/main/ets/NativeCheckOrchestrator.ts +98 -17
- package/harmony/pushy/src/main/ets/NativePatchCore.ts +10 -3
- package/harmony/pushy/src/main/ets/PathUtils.ts +9 -3
- package/harmony/pushy/src/main/ets/PushyTurboModule.ts +139 -53
- package/harmony/pushy/src/main/ets/UpdateContext.ts +269 -159
- package/harmony/pushy/src/main/module.json5 +5 -1
- package/harmony/pushy.har +0 -0
- package/ios/PrivacyInfo.xcprivacy +79 -0
- package/ios/RCTPushy/RCTPushy.mm +399 -170
- package/ios/RCTPushy/RCTPushyDownloader.h +14 -0
- package/ios/RCTPushy/RCTPushyDownloader.mm +136 -11
- package/package.json +14 -24
- package/react-native-update.podspec +36 -3
- package/src/client.ts +236 -82
- package/src/context.ts +40 -27
- package/src/core.ts +41 -16
- package/src/endpoint.ts +2 -1
- package/src/error.ts +49 -11
- package/src/index.ts +14 -0
- package/src/locales/en.ts +1 -23
- package/src/locales/zh.ts +1 -22
- package/src/provider.tsx +159 -111
- package/src/type.ts +0 -2
- package/src/updateFlowCore.ts +10 -2
- package/src/utils.ts +61 -4
- package/android/src/main/java/cn/reactnative/modules/update/ReactNativeHostHandler.java +0 -13
- package/android/src/main/java/cn/reactnative/modules/update/UpdateModuleSupport.java +0 -45
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
// The HAR declares no permissions itself: the network is used by the host
|
|
3
|
+
// app's process, so the CONSUMER must request ohos.permission.INTERNET in
|
|
4
|
+
// its entry module.json5 (and should keep cleartextTrafficPermitted:false
|
|
5
|
+
// in network_config.json). See harmony/pushy/src/README.md.
|
|
2
6
|
"module": {
|
|
3
7
|
"name": "pushy",
|
|
4
8
|
"type": "har",
|
|
5
9
|
"deviceTypes": ['default'],
|
|
6
10
|
},
|
|
7
|
-
}
|
|
11
|
+
}
|
package/harmony/pushy.har
CHANGED
|
Binary file
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>NSPrivacyTracking</key>
|
|
6
|
+
<false/>
|
|
7
|
+
<!--
|
|
8
|
+
Release builds POST lifecycle events (download/patch/rollback/markSuccess
|
|
9
|
+
outcomes with the bundle hash, package version, SDK/RN/OS versions and a
|
|
10
|
+
random per-install id) and, unless disableErrorReporting is set, JS
|
|
11
|
+
exception reports (message + stack) to {server}/report/{appKey}. Nothing
|
|
12
|
+
is linked to the user's identity or used for tracking. Hosts that set
|
|
13
|
+
disableTelemetry send neither.
|
|
14
|
+
-->
|
|
15
|
+
<key>NSPrivacyCollectedDataTypes</key>
|
|
16
|
+
<array>
|
|
17
|
+
<dict>
|
|
18
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
19
|
+
<string>NSPrivacyCollectedDataTypeCrashData</string>
|
|
20
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
21
|
+
<false/>
|
|
22
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
23
|
+
<false/>
|
|
24
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
25
|
+
<array>
|
|
26
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
27
|
+
</array>
|
|
28
|
+
</dict>
|
|
29
|
+
<dict>
|
|
30
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
31
|
+
<string>NSPrivacyCollectedDataTypeOtherDiagnosticData</string>
|
|
32
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
33
|
+
<false/>
|
|
34
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
35
|
+
<false/>
|
|
36
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
37
|
+
<array>
|
|
38
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
39
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
40
|
+
</array>
|
|
41
|
+
</dict>
|
|
42
|
+
</array>
|
|
43
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
44
|
+
<array>
|
|
45
|
+
<dict>
|
|
46
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
47
|
+
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
|
|
48
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
49
|
+
<array>
|
|
50
|
+
<string>E174.1</string>
|
|
51
|
+
</array>
|
|
52
|
+
</dict>
|
|
53
|
+
<dict>
|
|
54
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
55
|
+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
|
|
56
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
57
|
+
<array>
|
|
58
|
+
<string>C617.1</string>
|
|
59
|
+
</array>
|
|
60
|
+
</dict>
|
|
61
|
+
<dict>
|
|
62
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
63
|
+
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
|
|
64
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
65
|
+
<array>
|
|
66
|
+
<string>35F9.1</string>
|
|
67
|
+
</array>
|
|
68
|
+
</dict>
|
|
69
|
+
<dict>
|
|
70
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
71
|
+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
|
72
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
73
|
+
<array>
|
|
74
|
+
<string>CA92.1</string>
|
|
75
|
+
</array>
|
|
76
|
+
</dict>
|
|
77
|
+
</array>
|
|
78
|
+
</dict>
|
|
79
|
+
</plist>
|