@onekeyfe/react-native-bundle-update 1.1.21

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 (130) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +36 -0
  3. package/ReactNativeBundleUpdate.podspec +34 -0
  4. package/android/CMakeLists.txt +24 -0
  5. package/android/build.gradle +139 -0
  6. package/android/gradle.properties +4 -0
  7. package/android/src/main/AndroidManifest.xml +1 -0
  8. package/android/src/main/cpp/cpp-adapter.cpp +6 -0
  9. package/android/src/main/java/com/margelo/nitro/reactnativebundleupdate/ReactNativeBundleUpdate.kt +1409 -0
  10. package/android/src/main/java/com/margelo/nitro/reactnativebundleupdate/ReactNativeBundleUpdatePackage.kt +24 -0
  11. package/ios/Frameworks/Gopenpgp.xcframework/Info.plist +52 -0
  12. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Gopenpgp +0 -0
  13. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Armor.objc.h +96 -0
  14. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Constants.objc.h +197 -0
  15. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Crypto.objc.h +1963 -0
  16. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Gopenpgp.h +23 -0
  17. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Mime.objc.h +59 -0
  18. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Mobile.objc.h +252 -0
  19. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Profile.objc.h +107 -0
  20. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Universe.objc.h +29 -0
  21. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/ref.h +35 -0
  22. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Info.plist +20 -0
  23. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Modules/module.modulemap +13 -0
  24. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Gopenpgp +0 -0
  25. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Armor.objc.h +96 -0
  26. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Constants.objc.h +197 -0
  27. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Crypto.objc.h +1963 -0
  28. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Gopenpgp.h +23 -0
  29. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Mime.objc.h +59 -0
  30. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Mobile.objc.h +252 -0
  31. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Profile.objc.h +107 -0
  32. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Universe.objc.h +29 -0
  33. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/ref.h +35 -0
  34. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Info.plist +20 -0
  35. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Modules/module.modulemap +13 -0
  36. package/ios/ReactNativeBundleUpdate.swift +1338 -0
  37. package/lib/module/ReactNativeBundleUpdate.nitro.js +4 -0
  38. package/lib/module/ReactNativeBundleUpdate.nitro.js.map +1 -0
  39. package/lib/module/index.js +6 -0
  40. package/lib/module/index.js.map +1 -0
  41. package/lib/module/package.json +1 -0
  42. package/lib/typescript/package.json +1 -0
  43. package/lib/typescript/src/ReactNativeBundleUpdate.nitro.d.ts +101 -0
  44. package/lib/typescript/src/ReactNativeBundleUpdate.nitro.d.ts.map +1 -0
  45. package/lib/typescript/src/index.d.ts +4 -0
  46. package/lib/typescript/src/index.d.ts.map +1 -0
  47. package/nitro.json +17 -0
  48. package/nitrogen/generated/android/c++/JAscFileInfo.hpp +65 -0
  49. package/nitrogen/generated/android/c++/JBundleDownloadASCParams.hpp +77 -0
  50. package/nitrogen/generated/android/c++/JBundleDownloadEvent.hpp +65 -0
  51. package/nitrogen/generated/android/c++/JBundleDownloadParams.hpp +73 -0
  52. package/nitrogen/generated/android/c++/JBundleDownloadResult.hpp +73 -0
  53. package/nitrogen/generated/android/c++/JBundleInstallParams.hpp +69 -0
  54. package/nitrogen/generated/android/c++/JBundleSwitchParams.hpp +65 -0
  55. package/nitrogen/generated/android/c++/JBundleVerifyASCParams.hpp +73 -0
  56. package/nitrogen/generated/android/c++/JBundleVerifyParams.hpp +69 -0
  57. package/nitrogen/generated/android/c++/JFallbackBundleInfo.hpp +65 -0
  58. package/nitrogen/generated/android/c++/JFunc_void_BundleDownloadEvent.hpp +78 -0
  59. package/nitrogen/generated/android/c++/JHybridReactNativeBundleUpdateSpec.cpp +486 -0
  60. package/nitrogen/generated/android/c++/JHybridReactNativeBundleUpdateSpec.hpp +89 -0
  61. package/nitrogen/generated/android/c++/JLocalBundleInfo.hpp +61 -0
  62. package/nitrogen/generated/android/c++/JTestResult.hpp +61 -0
  63. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/AscFileInfo.kt +44 -0
  64. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadASCParams.kt +53 -0
  65. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadEvent.kt +44 -0
  66. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadParams.kt +50 -0
  67. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadResult.kt +50 -0
  68. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleInstallParams.kt +47 -0
  69. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleSwitchParams.kt +44 -0
  70. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleVerifyASCParams.kt +50 -0
  71. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleVerifyParams.kt +47 -0
  72. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/FallbackBundleInfo.kt +44 -0
  73. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/Func_void_BundleDownloadEvent.kt +80 -0
  74. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/HybridReactNativeBundleUpdateSpec.kt +159 -0
  75. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/LocalBundleInfo.kt +41 -0
  76. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/TestResult.kt +41 -0
  77. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/reactnativebundleupdateOnLoad.kt +35 -0
  78. package/nitrogen/generated/android/reactnativebundleupdate+autolinking.cmake +81 -0
  79. package/nitrogen/generated/android/reactnativebundleupdate+autolinking.gradle +27 -0
  80. package/nitrogen/generated/android/reactnativebundleupdateOnLoad.cpp +46 -0
  81. package/nitrogen/generated/android/reactnativebundleupdateOnLoad.hpp +25 -0
  82. package/nitrogen/generated/ios/ReactNativeBundleUpdate+autolinking.rb +60 -0
  83. package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Bridge.cpp +113 -0
  84. package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Bridge.hpp +513 -0
  85. package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Umbrella.hpp +83 -0
  86. package/nitrogen/generated/ios/ReactNativeBundleUpdateAutolinking.mm +33 -0
  87. package/nitrogen/generated/ios/ReactNativeBundleUpdateAutolinking.swift +25 -0
  88. package/nitrogen/generated/ios/c++/HybridReactNativeBundleUpdateSpecSwift.cpp +11 -0
  89. package/nitrogen/generated/ios/c++/HybridReactNativeBundleUpdateSpecSwift.hpp +304 -0
  90. package/nitrogen/generated/ios/swift/AscFileInfo.swift +58 -0
  91. package/nitrogen/generated/ios/swift/BundleDownloadASCParams.swift +91 -0
  92. package/nitrogen/generated/ios/swift/BundleDownloadEvent.swift +58 -0
  93. package/nitrogen/generated/ios/swift/BundleDownloadParams.swift +80 -0
  94. package/nitrogen/generated/ios/swift/BundleDownloadResult.swift +80 -0
  95. package/nitrogen/generated/ios/swift/BundleInstallParams.swift +69 -0
  96. package/nitrogen/generated/ios/swift/BundleSwitchParams.swift +58 -0
  97. package/nitrogen/generated/ios/swift/BundleVerifyASCParams.swift +80 -0
  98. package/nitrogen/generated/ios/swift/BundleVerifyParams.swift +69 -0
  99. package/nitrogen/generated/ios/swift/FallbackBundleInfo.swift +58 -0
  100. package/nitrogen/generated/ios/swift/Func_void.swift +47 -0
  101. package/nitrogen/generated/ios/swift/Func_void_BundleDownloadEvent.swift +47 -0
  102. package/nitrogen/generated/ios/swift/Func_void_BundleDownloadResult.swift +47 -0
  103. package/nitrogen/generated/ios/swift/Func_void_TestResult.swift +47 -0
  104. package/nitrogen/generated/ios/swift/Func_void_bool.swift +47 -0
  105. package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +47 -0
  106. package/nitrogen/generated/ios/swift/Func_void_std__string.swift +47 -0
  107. package/nitrogen/generated/ios/swift/Func_void_std__vector_AscFileInfo_.swift +47 -0
  108. package/nitrogen/generated/ios/swift/Func_void_std__vector_FallbackBundleInfo_.swift +47 -0
  109. package/nitrogen/generated/ios/swift/Func_void_std__vector_LocalBundleInfo_.swift +47 -0
  110. package/nitrogen/generated/ios/swift/HybridReactNativeBundleUpdateSpec.swift +80 -0
  111. package/nitrogen/generated/ios/swift/HybridReactNativeBundleUpdateSpec_cxx.swift +595 -0
  112. package/nitrogen/generated/ios/swift/LocalBundleInfo.swift +47 -0
  113. package/nitrogen/generated/ios/swift/TestResult.swift +47 -0
  114. package/nitrogen/generated/shared/c++/AscFileInfo.hpp +83 -0
  115. package/nitrogen/generated/shared/c++/BundleDownloadASCParams.hpp +95 -0
  116. package/nitrogen/generated/shared/c++/BundleDownloadEvent.hpp +83 -0
  117. package/nitrogen/generated/shared/c++/BundleDownloadParams.hpp +91 -0
  118. package/nitrogen/generated/shared/c++/BundleDownloadResult.hpp +91 -0
  119. package/nitrogen/generated/shared/c++/BundleInstallParams.hpp +87 -0
  120. package/nitrogen/generated/shared/c++/BundleSwitchParams.hpp +83 -0
  121. package/nitrogen/generated/shared/c++/BundleVerifyASCParams.hpp +91 -0
  122. package/nitrogen/generated/shared/c++/BundleVerifyParams.hpp +87 -0
  123. package/nitrogen/generated/shared/c++/FallbackBundleInfo.hpp +83 -0
  124. package/nitrogen/generated/shared/c++/HybridReactNativeBundleUpdateSpec.cpp +45 -0
  125. package/nitrogen/generated/shared/c++/HybridReactNativeBundleUpdateSpec.hpp +124 -0
  126. package/nitrogen/generated/shared/c++/LocalBundleInfo.hpp +79 -0
  127. package/nitrogen/generated/shared/c++/TestResult.hpp +79 -0
  128. package/package.json +169 -0
  129. package/src/ReactNativeBundleUpdate.nitro.ts +143 -0
  130. package/src/index.tsx +8 -0
@@ -0,0 +1,197 @@
1
+ // Objective-C API for talking to github.com/ProtonMail/gopenpgp/v3/constants Go package.
2
+ // gobind -lang=objc github.com/ProtonMail/gopenpgp/v3/constants
3
+ //
4
+ // File is generated by gobind. Do not edit.
5
+
6
+ #ifndef __Constants_H__
7
+ #define __Constants_H__
8
+
9
+ @import Foundation;
10
+ #include "ref.h"
11
+ #include "Universe.objc.h"
12
+
13
+
14
+ /**
15
+ * Cipher suite names.
16
+ */
17
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsAES128;
18
+ /**
19
+ * Cipher suite names.
20
+ */
21
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsAES192;
22
+ /**
23
+ * Cipher suite names.
24
+ */
25
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsAES256;
26
+ /**
27
+ * ArmorChecksumEnabled defines the default behavior for adding an armor checksum
28
+ to an armored message.
29
+
30
+ If set to true, an armor checksum is added to the message.
31
+
32
+ If set to false, no armor checksum is added.
33
+ */
34
+ FOUNDATION_EXPORT const BOOL ConstantsArmorChecksumEnabled;
35
+ /**
36
+ * Constants for armored data.
37
+ */
38
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsArmorHeaderComment;
39
+ /**
40
+ * Constants for armored data.
41
+ */
42
+ FOUNDATION_EXPORT const BOOL ConstantsArmorHeaderEnabled;
43
+ /**
44
+ * Constants for armored data.
45
+ */
46
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsArmorHeaderVersion;
47
+ /**
48
+ * Cipher suite names.
49
+ */
50
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsCAST5;
51
+ /**
52
+ * Wraps the packet.CipherFunction enum from go-crypto
53
+ for go-mobile clients.
54
+ int8 type for go-mobile support.
55
+ */
56
+ FOUNDATION_EXPORT const int8_t ConstantsCipher3DES;
57
+ /**
58
+ * Wraps the packet.CipherFunction enum from go-crypto
59
+ for go-mobile clients.
60
+ int8 type for go-mobile support.
61
+ */
62
+ FOUNDATION_EXPORT const int8_t ConstantsCipherAES128;
63
+ /**
64
+ * Wraps the packet.CipherFunction enum from go-crypto
65
+ for go-mobile clients.
66
+ int8 type for go-mobile support.
67
+ */
68
+ FOUNDATION_EXPORT const int8_t ConstantsCipherAES192;
69
+ /**
70
+ * Wraps the packet.CipherFunction enum from go-crypto
71
+ for go-mobile clients.
72
+ int8 type for go-mobile support.
73
+ */
74
+ FOUNDATION_EXPORT const int8_t ConstantsCipherAES256;
75
+ /**
76
+ * Wraps the packet.CipherFunction enum from go-crypto
77
+ for go-mobile clients.
78
+ int8 type for go-mobile support.
79
+ */
80
+ FOUNDATION_EXPORT const int8_t ConstantsCipherCAST5;
81
+ /**
82
+ * Use compression defined by the pgp profile.
83
+ */
84
+ FOUNDATION_EXPORT const int8_t ConstantsDefaultCompression;
85
+ /**
86
+ * HighSecurity is the high security level.
87
+ */
88
+ FOUNDATION_EXPORT const int8_t ConstantsHighSecurity;
89
+ /**
90
+ * Use no compression (default).
91
+ */
92
+ FOUNDATION_EXPORT const int8_t ConstantsNoCompression;
93
+ /**
94
+ * Constants for armored data.
95
+ */
96
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsPGPMessageHeader;
97
+ /**
98
+ * Constants for armored data.
99
+ */
100
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsPGPSignatureHeader;
101
+ /**
102
+ * Constants for armored data.
103
+ */
104
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsPrivateKeyHeader;
105
+ /**
106
+ * Constants for armored data.
107
+ */
108
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsPublicKeyHeader;
109
+ FOUNDATION_EXPORT const long ConstantsSIGNATURE_BAD_CONTEXT;
110
+ FOUNDATION_EXPORT const long ConstantsSIGNATURE_FAILED;
111
+ FOUNDATION_EXPORT const long ConstantsSIGNATURE_NOT_SIGNED;
112
+ FOUNDATION_EXPORT const long ConstantsSIGNATURE_NO_VERIFIER;
113
+ FOUNDATION_EXPORT const long ConstantsSIGNATURE_OK;
114
+ /**
115
+ * OpenPGP signature types.
116
+ int8 type for go-mobile clients.
117
+ */
118
+ FOUNDATION_EXPORT const int8_t ConstantsSigTypeBinary;
119
+ /**
120
+ * OpenPGP signature types.
121
+ int8 type for go-mobile clients.
122
+ */
123
+ FOUNDATION_EXPORT const int8_t ConstantsSigTypeCasualCert;
124
+ /**
125
+ * OpenPGP signature types.
126
+ int8 type for go-mobile clients.
127
+ */
128
+ FOUNDATION_EXPORT const int8_t ConstantsSigTypeCertificationRevocation;
129
+ /**
130
+ * OpenPGP signature types.
131
+ int8 type for go-mobile clients.
132
+ */
133
+ FOUNDATION_EXPORT const int8_t ConstantsSigTypeDirectSignature;
134
+ /**
135
+ * OpenPGP signature types.
136
+ int8 type for go-mobile clients.
137
+ */
138
+ FOUNDATION_EXPORT const int8_t ConstantsSigTypeGenericCert;
139
+ /**
140
+ * OpenPGP signature types.
141
+ int8 type for go-mobile clients.
142
+ */
143
+ FOUNDATION_EXPORT const int8_t ConstantsSigTypeKeyRevocation;
144
+ /**
145
+ * OpenPGP signature types.
146
+ int8 type for go-mobile clients.
147
+ */
148
+ FOUNDATION_EXPORT const int8_t ConstantsSigTypePersonaCert;
149
+ /**
150
+ * OpenPGP signature types.
151
+ int8 type for go-mobile clients.
152
+ */
153
+ FOUNDATION_EXPORT const int8_t ConstantsSigTypePositiveCert;
154
+ /**
155
+ * OpenPGP signature types.
156
+ int8 type for go-mobile clients.
157
+ */
158
+ FOUNDATION_EXPORT const int8_t ConstantsSigTypePrimaryKeyBinding;
159
+ /**
160
+ * OpenPGP signature types.
161
+ int8 type for go-mobile clients.
162
+ */
163
+ FOUNDATION_EXPORT const int8_t ConstantsSigTypeSubkeyBinding;
164
+ /**
165
+ * OpenPGP signature types.
166
+ int8 type for go-mobile clients.
167
+ */
168
+ FOUNDATION_EXPORT const int8_t ConstantsSigTypeSubkeyRevocation;
169
+ /**
170
+ * OpenPGP signature types.
171
+ int8 type for go-mobile clients.
172
+ */
173
+ FOUNDATION_EXPORT const int8_t ConstantsSigTypeText;
174
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsSignatureContextName;
175
+ /**
176
+ * StandardSecurity is the default security level.
177
+ */
178
+ FOUNDATION_EXPORT const int8_t ConstantsStandardSecurity;
179
+ /**
180
+ * Cipher suite names.
181
+ */
182
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsThreeDES;
183
+ /**
184
+ * Cipher suite names.
185
+ */
186
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsTripleDES;
187
+ FOUNDATION_EXPORT NSString* _Nonnull const ConstantsVersion;
188
+ /**
189
+ * Use ZIP compression.
190
+ */
191
+ FOUNDATION_EXPORT const int8_t ConstantsZIPCompression;
192
+ /**
193
+ * Use ZLIB compression.
194
+ */
195
+ FOUNDATION_EXPORT const int8_t ConstantsZLIBCompression;
196
+
197
+ #endif