@vexor-push/react-native-code-push 0.2.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.
Files changed (57) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +61 -0
  3. package/android/build.gradle +129 -0
  4. package/android/generated/java/com/vexorpush/codepush/NativeVexorCodePushSpec.java +91 -0
  5. package/android/generated/jni/CMakeLists.txt +36 -0
  6. package/android/generated/jni/RNVexorCodePushSpec-generated.cpp +110 -0
  7. package/android/generated/jni/RNVexorCodePushSpec.h +31 -0
  8. package/android/generated/jni/react/renderer/components/RNVexorCodePushSpec/ComponentDescriptors.cpp +22 -0
  9. package/android/generated/jni/react/renderer/components/RNVexorCodePushSpec/ComponentDescriptors.h +24 -0
  10. package/android/generated/jni/react/renderer/components/RNVexorCodePushSpec/EventEmitters.cpp +16 -0
  11. package/android/generated/jni/react/renderer/components/RNVexorCodePushSpec/EventEmitters.h +17 -0
  12. package/android/generated/jni/react/renderer/components/RNVexorCodePushSpec/Props.cpp +19 -0
  13. package/android/generated/jni/react/renderer/components/RNVexorCodePushSpec/Props.h +18 -0
  14. package/android/generated/jni/react/renderer/components/RNVexorCodePushSpec/RNVexorCodePushSpecJSI-generated.cpp +129 -0
  15. package/android/generated/jni/react/renderer/components/RNVexorCodePushSpec/RNVexorCodePushSpecJSI.h +184 -0
  16. package/android/generated/jni/react/renderer/components/RNVexorCodePushSpec/ShadowNodes.cpp +17 -0
  17. package/android/generated/jni/react/renderer/components/RNVexorCodePushSpec/ShadowNodes.h +23 -0
  18. package/android/generated/jni/react/renderer/components/RNVexorCodePushSpec/States.cpp +16 -0
  19. package/android/generated/jni/react/renderer/components/RNVexorCodePushSpec/States.h +19 -0
  20. package/android/gradle.properties +5 -0
  21. package/android/src/main/AndroidManifest.xml +3 -0
  22. package/android/src/main/AndroidManifestNew.xml +2 -0
  23. package/android/src/main/java/com/vexorpush/codepush/CrashHandler.kt +78 -0
  24. package/android/src/main/java/com/vexorpush/codepush/SharedPrefs.kt +60 -0
  25. package/android/src/main/java/com/vexorpush/codepush/Utils.kt +105 -0
  26. package/android/src/main/java/com/vexorpush/codepush/VexorCodePush.kt +100 -0
  27. package/android/src/main/java/com/vexorpush/codepush/VexorCodePushModule.kt +698 -0
  28. package/android/src/newarch/VexorCodePushSpec.kt +7 -0
  29. package/android/src/oldarch/VexorCodePushSpec.kt +24 -0
  30. package/app.plugin.js +1 -0
  31. package/current-version.js +27 -0
  32. package/deployment-state.js +33 -0
  33. package/index.d.ts +101 -0
  34. package/index.js +535 -0
  35. package/ios/VexorCodePush.h +13 -0
  36. package/ios/VexorCodePush.mm +949 -0
  37. package/ios/generated/RNVexorCodePushSpec/ComponentDescriptors.cpp +22 -0
  38. package/ios/generated/RNVexorCodePushSpec/ComponentDescriptors.h +24 -0
  39. package/ios/generated/RNVexorCodePushSpec/EventEmitters.cpp +16 -0
  40. package/ios/generated/RNVexorCodePushSpec/EventEmitters.h +17 -0
  41. package/ios/generated/RNVexorCodePushSpec/Props.cpp +19 -0
  42. package/ios/generated/RNVexorCodePushSpec/Props.h +18 -0
  43. package/ios/generated/RNVexorCodePushSpec/RCTComponentViewHelpers.h +18 -0
  44. package/ios/generated/RNVexorCodePushSpec/RNVexorCodePushSpec-generated.mm +130 -0
  45. package/ios/generated/RNVexorCodePushSpec/RNVexorCodePushSpec.h +109 -0
  46. package/ios/generated/RNVexorCodePushSpec/ShadowNodes.cpp +17 -0
  47. package/ios/generated/RNVexorCodePushSpec/ShadowNodes.h +23 -0
  48. package/ios/generated/RNVexorCodePushSpec/States.cpp +16 -0
  49. package/ios/generated/RNVexorCodePushSpec/States.h +19 -0
  50. package/ios/generated/RNVexorCodePushSpecJSI-generated.cpp +129 -0
  51. package/ios/generated/RNVexorCodePushSpecJSI.h +184 -0
  52. package/package.json +51 -0
  53. package/plugin/src/index.ts +92 -0
  54. package/plugin/tsconfig.json +9 -0
  55. package/react-native-code-push.podspec +48 -0
  56. package/react-native.config.js +13 -0
  57. package/src/NativeVexorCodePush.ts +21 -0
@@ -0,0 +1,22 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateComponentDescriptorCpp.js
9
+ */
10
+
11
+ #include "ComponentDescriptors.h"
12
+ #include <react/renderer/core/ConcreteComponentDescriptor.h>
13
+ #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
14
+
15
+ namespace facebook::react {
16
+
17
+ void RNVexorCodePushSpec_registerComponentDescriptorsFromCodegen(
18
+ std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) {
19
+
20
+ }
21
+
22
+ } // namespace facebook::react
@@ -0,0 +1,24 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateComponentDescriptorH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include "ShadowNodes.h"
14
+ #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
+ #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
16
+
17
+ namespace facebook::react {
18
+
19
+
20
+
21
+ void RNVexorCodePushSpec_registerComponentDescriptorsFromCodegen(
22
+ std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
23
+
24
+ } // namespace facebook::react
@@ -0,0 +1,16 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateEventEmitterCpp.js
9
+ */
10
+
11
+ #include "EventEmitters.h"
12
+
13
+
14
+ namespace facebook::react {
15
+
16
+ } // namespace facebook::react
@@ -0,0 +1,17 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateEventEmitterH.js
9
+ */
10
+ #pragma once
11
+
12
+ #include <react/renderer/components/view/ViewEventEmitter.h>
13
+
14
+
15
+ namespace facebook::react {
16
+
17
+ } // namespace facebook::react
@@ -0,0 +1,19 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GeneratePropsCpp.js
9
+ */
10
+
11
+ #include "Props.h"
12
+ #include <react/renderer/core/PropsParserContext.h>
13
+ #include <react/renderer/core/propsConversions.h>
14
+
15
+ namespace facebook::react {
16
+
17
+
18
+
19
+ } // namespace facebook::react
@@ -0,0 +1,18 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GeneratePropsH.js
9
+ */
10
+ #pragma once
11
+
12
+
13
+
14
+ namespace facebook::react {
15
+
16
+
17
+
18
+ } // namespace facebook::react
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateComponentHObjCpp.js
8
+ */
9
+
10
+ #import <Foundation/Foundation.h>
11
+ #import <React/RCTDefines.h>
12
+ #import <React/RCTLog.h>
13
+
14
+ NS_ASSUME_NONNULL_BEGIN
15
+
16
+
17
+
18
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,130 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #import "RNVexorCodePushSpec.h"
15
+
16
+
17
+ @implementation NativeVexorCodePushSpecBase
18
+
19
+
20
+ - (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper
21
+ {
22
+ _eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
23
+ }
24
+ @end
25
+
26
+
27
+ namespace facebook::react {
28
+
29
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_setupBundlePath(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
30
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "setupBundlePath", @selector(setupBundlePath:extension:version:maxVersions:metadata:resolve:reject:), args, count);
31
+ }
32
+
33
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_downloadAndInstallBundle(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
34
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "downloadAndInstallBundle", @selector(downloadAndInstallBundle:headersJson:extension:version:maxVersions:metadata:resolve:reject:), args, count);
35
+ }
36
+
37
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_setExactBundlePath(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
38
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "setExactBundlePath", @selector(setExactBundlePath:resolve:reject:), args, count);
39
+ }
40
+
41
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_deleteBundle(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
42
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "deleteBundle", @selector(deleteBundle:resolve:reject:), args, count);
43
+ }
44
+
45
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_restart(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
46
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "restart", @selector(restart), args, count);
47
+ }
48
+
49
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_getCurrentVersion(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
50
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "getCurrentVersion", @selector(getCurrentVersion:resolve:reject:), args, count);
51
+ }
52
+
53
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_getUpdateMetadata(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
54
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "getUpdateMetadata", @selector(getUpdateMetadata:resolve:reject:), args, count);
55
+ }
56
+
57
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_setCurrentVersion(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
58
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "setCurrentVersion", @selector(setCurrentVersion:resolve:reject:), args, count);
59
+ }
60
+
61
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_setUpdateMetadata(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
62
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "setUpdateMetadata", @selector(setUpdateMetadata:resolve:reject:), args, count);
63
+ }
64
+
65
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_rollbackToPreviousBundle(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
66
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "rollbackToPreviousBundle", @selector(rollbackToPreviousBundle:resolve:reject:), args, count);
67
+ }
68
+
69
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_getBundleList(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
70
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "getBundleList", @selector(getBundleList:resolve:reject:), args, count);
71
+ }
72
+
73
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_deleteBundleById(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
74
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "deleteBundleById", @selector(deleteBundleById:resolve:reject:), args, count);
75
+ }
76
+
77
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_clearAllBundles(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
78
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "clearAllBundles", @selector(clearAllBundles:resolve:reject:), args, count);
79
+ }
80
+
81
+ static facebook::jsi::Value __hostFunction_NativeVexorCodePushSpecJSI_writeFile(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
82
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "writeFile", @selector(writeFile:base64Content:encoding:resolve:reject:), args, count);
83
+ }
84
+
85
+ NativeVexorCodePushSpecJSI::NativeVexorCodePushSpecJSI(const ObjCTurboModule::InitParams &params)
86
+ : ObjCTurboModule(params) {
87
+
88
+ methodMap_["setupBundlePath"] = MethodMetadata {5, __hostFunction_NativeVexorCodePushSpecJSI_setupBundlePath};
89
+
90
+
91
+ methodMap_["downloadAndInstallBundle"] = MethodMetadata {6, __hostFunction_NativeVexorCodePushSpecJSI_downloadAndInstallBundle};
92
+
93
+
94
+ methodMap_["setExactBundlePath"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushSpecJSI_setExactBundlePath};
95
+
96
+
97
+ methodMap_["deleteBundle"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushSpecJSI_deleteBundle};
98
+
99
+
100
+ methodMap_["restart"] = MethodMetadata {0, __hostFunction_NativeVexorCodePushSpecJSI_restart};
101
+
102
+
103
+ methodMap_["getCurrentVersion"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushSpecJSI_getCurrentVersion};
104
+
105
+
106
+ methodMap_["getUpdateMetadata"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushSpecJSI_getUpdateMetadata};
107
+
108
+
109
+ methodMap_["setCurrentVersion"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushSpecJSI_setCurrentVersion};
110
+
111
+
112
+ methodMap_["setUpdateMetadata"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushSpecJSI_setUpdateMetadata};
113
+
114
+
115
+ methodMap_["rollbackToPreviousBundle"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushSpecJSI_rollbackToPreviousBundle};
116
+
117
+
118
+ methodMap_["getBundleList"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushSpecJSI_getBundleList};
119
+
120
+
121
+ methodMap_["deleteBundleById"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushSpecJSI_deleteBundleById};
122
+
123
+
124
+ methodMap_["clearAllBundles"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushSpecJSI_clearAllBundles};
125
+
126
+
127
+ methodMap_["writeFile"] = MethodMetadata {3, __hostFunction_NativeVexorCodePushSpecJSI_writeFile};
128
+
129
+ }
130
+ } // namespace facebook::react
@@ -0,0 +1,109 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #ifndef __cplusplus
15
+ #error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
16
+ #endif
17
+
18
+ // Avoid multiple includes of RNVexorCodePushSpec symbols
19
+ #ifndef RNVexorCodePushSpec_H
20
+ #define RNVexorCodePushSpec_H
21
+
22
+ #import <Foundation/Foundation.h>
23
+ #import <RCTRequired/RCTRequired.h>
24
+ #import <RCTTypeSafety/RCTConvertHelpers.h>
25
+ #import <RCTTypeSafety/RCTTypedModuleConstants.h>
26
+ #import <React/RCTBridgeModule.h>
27
+ #import <React/RCTCxxConvert.h>
28
+ #import <React/RCTManagedPointer.h>
29
+ #import <ReactCommon/RCTTurboModule.h>
30
+ #import <optional>
31
+ #import <vector>
32
+
33
+
34
+ @protocol NativeVexorCodePushSpec <RCTBridgeModule, RCTTurboModule>
35
+
36
+ - (void)setupBundlePath:(NSString *)path
37
+ extension:(NSString *)extension
38
+ version:(NSNumber *)version
39
+ maxVersions:(NSNumber *)maxVersions
40
+ metadata:(NSString *)metadata
41
+ resolve:(RCTPromiseResolveBlock)resolve
42
+ reject:(RCTPromiseRejectBlock)reject;
43
+ - (void)downloadAndInstallBundle:(NSString *)url
44
+ headersJson:(NSString *)headersJson
45
+ extension:(NSString *)extension
46
+ version:(NSNumber *)version
47
+ maxVersions:(NSNumber *)maxVersions
48
+ metadata:(NSString *)metadata
49
+ resolve:(RCTPromiseResolveBlock)resolve
50
+ reject:(RCTPromiseRejectBlock)reject;
51
+ - (void)setExactBundlePath:(NSString *)path
52
+ resolve:(RCTPromiseResolveBlock)resolve
53
+ reject:(RCTPromiseRejectBlock)reject;
54
+ - (void)deleteBundle:(double)i
55
+ resolve:(RCTPromiseResolveBlock)resolve
56
+ reject:(RCTPromiseRejectBlock)reject;
57
+ - (void)restart;
58
+ - (void)getCurrentVersion:(double)a
59
+ resolve:(RCTPromiseResolveBlock)resolve
60
+ reject:(RCTPromiseRejectBlock)reject;
61
+ - (void)getUpdateMetadata:(double)a
62
+ resolve:(RCTPromiseResolveBlock)resolve
63
+ reject:(RCTPromiseRejectBlock)reject;
64
+ - (void)setCurrentVersion:(NSString *)version
65
+ resolve:(RCTPromiseResolveBlock)resolve
66
+ reject:(RCTPromiseRejectBlock)reject;
67
+ - (void)setUpdateMetadata:(NSString *)metadata
68
+ resolve:(RCTPromiseResolveBlock)resolve
69
+ reject:(RCTPromiseRejectBlock)reject;
70
+ - (void)rollbackToPreviousBundle:(double)a
71
+ resolve:(RCTPromiseResolveBlock)resolve
72
+ reject:(RCTPromiseRejectBlock)reject;
73
+ - (void)getBundleList:(double)a
74
+ resolve:(RCTPromiseResolveBlock)resolve
75
+ reject:(RCTPromiseRejectBlock)reject;
76
+ - (void)deleteBundleById:(NSString *)id
77
+ resolve:(RCTPromiseResolveBlock)resolve
78
+ reject:(RCTPromiseRejectBlock)reject;
79
+ - (void)clearAllBundles:(double)a
80
+ resolve:(RCTPromiseResolveBlock)resolve
81
+ reject:(RCTPromiseRejectBlock)reject;
82
+ - (void)writeFile:(NSString *)path
83
+ base64Content:(NSString *)base64Content
84
+ encoding:(NSString *)encoding
85
+ resolve:(RCTPromiseResolveBlock)resolve
86
+ reject:(RCTPromiseRejectBlock)reject;
87
+
88
+ @end
89
+
90
+ @interface NativeVexorCodePushSpecBase : NSObject {
91
+ @protected
92
+ facebook::react::EventEmitterCallback _eventEmitterCallback;
93
+ }
94
+ - (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper;
95
+
96
+
97
+ @end
98
+
99
+ namespace facebook::react {
100
+ /**
101
+ * ObjC++ class for module 'NativeVexorCodePush'
102
+ */
103
+ class JSI_EXPORT NativeVexorCodePushSpecJSI : public ObjCTurboModule {
104
+ public:
105
+ NativeVexorCodePushSpecJSI(const ObjCTurboModule::InitParams &params);
106
+ };
107
+ } // namespace facebook::react
108
+
109
+ #endif // RNVexorCodePushSpec_H
@@ -0,0 +1,17 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateShadowNodeCpp.js
9
+ */
10
+
11
+ #include "ShadowNodes.h"
12
+
13
+ namespace facebook::react {
14
+
15
+
16
+
17
+ } // namespace facebook::react
@@ -0,0 +1,23 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateShadowNodeH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include "EventEmitters.h"
14
+ #include "Props.h"
15
+ #include "States.h"
16
+ #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
+ #include <jsi/jsi.h>
18
+
19
+ namespace facebook::react {
20
+
21
+
22
+
23
+ } // namespace facebook::react
@@ -0,0 +1,16 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateStateCpp.js
9
+ */
10
+ #include "States.h"
11
+
12
+ namespace facebook::react {
13
+
14
+
15
+
16
+ } // namespace facebook::react
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateStateH.js
8
+ */
9
+ #pragma once
10
+
11
+ #ifdef ANDROID
12
+ #include <folly/dynamic.h>
13
+ #endif
14
+
15
+ namespace facebook::react {
16
+
17
+
18
+
19
+ } // namespace facebook::react
@@ -0,0 +1,129 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleCpp.js
8
+ */
9
+
10
+ #include "RNVexorCodePushSpecJSI.h"
11
+
12
+ namespace facebook::react {
13
+
14
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_setupBundlePath(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
+ return static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->setupBundlePath(
16
+ rt,
17
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
18
+ count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
19
+ count <= 2 || args[2].isUndefined() ? std::nullopt : std::make_optional(args[2].asNumber()),
20
+ count <= 3 || args[3].isUndefined() ? std::nullopt : std::make_optional(args[3].asNumber()),
21
+ count <= 4 || args[4].isUndefined() ? std::nullopt : std::make_optional(args[4].asString(rt))
22
+ );
23
+ }
24
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_downloadAndInstallBundle(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
25
+ return static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->downloadAndInstallBundle(
26
+ rt,
27
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
28
+ count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
29
+ count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
30
+ count <= 3 || args[3].isUndefined() ? std::nullopt : std::make_optional(args[3].asNumber()),
31
+ count <= 4 || args[4].isUndefined() ? std::nullopt : std::make_optional(args[4].asNumber()),
32
+ count <= 5 || args[5].isUndefined() ? std::nullopt : std::make_optional(args[5].asString(rt))
33
+ );
34
+ }
35
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_setExactBundlePath(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
36
+ return static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->setExactBundlePath(
37
+ rt,
38
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
39
+ );
40
+ }
41
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_deleteBundle(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
42
+ return static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->deleteBundle(
43
+ rt,
44
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
45
+ );
46
+ }
47
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_restart(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
48
+ static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->restart(
49
+ rt
50
+ );
51
+ return jsi::Value::undefined();
52
+ }
53
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_getCurrentVersion(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
54
+ return static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->getCurrentVersion(
55
+ rt,
56
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
57
+ );
58
+ }
59
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_getUpdateMetadata(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
60
+ return static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->getUpdateMetadata(
61
+ rt,
62
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
63
+ );
64
+ }
65
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_setCurrentVersion(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
66
+ return static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->setCurrentVersion(
67
+ rt,
68
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
69
+ );
70
+ }
71
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_setUpdateMetadata(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
72
+ return static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->setUpdateMetadata(
73
+ rt,
74
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
75
+ );
76
+ }
77
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_rollbackToPreviousBundle(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
78
+ return static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->rollbackToPreviousBundle(
79
+ rt,
80
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
81
+ );
82
+ }
83
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_getBundleList(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
84
+ return static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->getBundleList(
85
+ rt,
86
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
87
+ );
88
+ }
89
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_deleteBundleById(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
90
+ return static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->deleteBundleById(
91
+ rt,
92
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
93
+ );
94
+ }
95
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_clearAllBundles(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
96
+ return static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->clearAllBundles(
97
+ rt,
98
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
99
+ );
100
+ }
101
+ static jsi::Value __hostFunction_NativeVexorCodePushCxxSpecJSI_writeFile(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
102
+ return static_cast<NativeVexorCodePushCxxSpecJSI *>(&turboModule)->writeFile(
103
+ rt,
104
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
105
+ count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
106
+ count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
107
+ );
108
+ }
109
+
110
+ NativeVexorCodePushCxxSpecJSI::NativeVexorCodePushCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
111
+ : TurboModule("VexorCodePush", jsInvoker) {
112
+ methodMap_["setupBundlePath"] = MethodMetadata {5, __hostFunction_NativeVexorCodePushCxxSpecJSI_setupBundlePath};
113
+ methodMap_["downloadAndInstallBundle"] = MethodMetadata {6, __hostFunction_NativeVexorCodePushCxxSpecJSI_downloadAndInstallBundle};
114
+ methodMap_["setExactBundlePath"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushCxxSpecJSI_setExactBundlePath};
115
+ methodMap_["deleteBundle"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushCxxSpecJSI_deleteBundle};
116
+ methodMap_["restart"] = MethodMetadata {0, __hostFunction_NativeVexorCodePushCxxSpecJSI_restart};
117
+ methodMap_["getCurrentVersion"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushCxxSpecJSI_getCurrentVersion};
118
+ methodMap_["getUpdateMetadata"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushCxxSpecJSI_getUpdateMetadata};
119
+ methodMap_["setCurrentVersion"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushCxxSpecJSI_setCurrentVersion};
120
+ methodMap_["setUpdateMetadata"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushCxxSpecJSI_setUpdateMetadata};
121
+ methodMap_["rollbackToPreviousBundle"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushCxxSpecJSI_rollbackToPreviousBundle};
122
+ methodMap_["getBundleList"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushCxxSpecJSI_getBundleList};
123
+ methodMap_["deleteBundleById"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushCxxSpecJSI_deleteBundleById};
124
+ methodMap_["clearAllBundles"] = MethodMetadata {1, __hostFunction_NativeVexorCodePushCxxSpecJSI_clearAllBundles};
125
+ methodMap_["writeFile"] = MethodMetadata {3, __hostFunction_NativeVexorCodePushCxxSpecJSI_writeFile};
126
+ }
127
+
128
+
129
+ } // namespace facebook::react