Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ PODS:
- FBLazyVector (0.77.0)
- fmt (11.0.2)
- glog (0.3.5)
- NoCodes (0.1.2):
- NoCodes (0.1.3):
- Qonversion (= 5.13.3)
- Qonversion (5.13.3):
- Qonversion/Main (= 5.13.3)
- Qonversion/Main (5.13.3)
- QonversionSandwich (6.0.6):
- NoCodes (= 0.1.2)
- QonversionSandwich (6.0.8):
- NoCodes (= 0.1.3)
- Qonversion (= 5.13.3)
- RCT-Folly (2024.11.18.00):
- boost
Expand Down Expand Up @@ -1188,8 +1188,8 @@ PODS:
- React-jsiexecutor
- React-RCTFBReactNativeSpec
- ReactCommon/turbomodule/core
- react-native-qonversion (8.2.3):
- QonversionSandwich (= 6.0.6)
- react-native-qonversion (9.0.1):
- QonversionSandwich (= 6.0.8)
- React
- React-nativeconfig (0.77.0)
- React-NativeModulesApple (0.77.0):
Expand Down Expand Up @@ -1681,9 +1681,9 @@ SPEC CHECKSUMS:
FBLazyVector: 2bc03a5cf64e29c611bbc5d7eb9d9f7431f37ee6
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
glog: eb93e2f488219332457c3c4eafd2738ddc7e80b8
NoCodes: bd4c23f3cace02d750fe8485572a4e289dc095a9
NoCodes: 21b87d320a16758c6eb79167ff98010d81b4894e
Qonversion: 2b32ae8681de3ba02db5b5ed69c8f213ac4a28fa
QonversionSandwich: 3aff94b79bb6d9734508a7495a77f47d8dde33cd
QonversionSandwich: 8a8638ee1fbdf304f0629f064712d206c390fedf
RCT-Folly: 36fe2295e44b10d831836cc0d1daec5f8abcf809
RCTDeprecation: f5c19ebdb8804b53ed029123eb69914356192fc8
RCTRequired: 6ae6cebe470486e0e0ce89c1c0eabb998e7c51f4
Expand Down Expand Up @@ -1713,7 +1713,7 @@ SPEC CHECKSUMS:
React-logger: 9a0c4e1e41cd640ac49d69aacadab783f7e0096b
React-Mapbuffer: 6993c785c22a170c02489bc78ed207814cbd700f
React-microtasksnativemodule: e5b64ff00f213f89fb7306999405f5aec5effe2d
react-native-qonversion: cb25e3ddc7c3a1e77893562161323c75ad1fa54e
react-native-qonversion: 09da537e697c350f70d4b72de5d80f6ca4e5b692
React-nativeconfig: cd0fbb40987a9658c24dab5812c14e5522a64929
React-NativeModulesApple: 447544c38e64eabf151638695393f97f7a75e0dc
React-perflogger: 15a7bcb6c46eae8a981f7add8c9f4172e2372324
Expand Down
12 changes: 2 additions & 10 deletions ios/RNNoCodes.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#import "RNNoCodes.h"

static NSString *const kNoCodesEventName = @"NoCodesEvent";

@interface RNNoCodes ()

@property (nonatomic, strong) NoCodesSandwich *noCodesSandwich;
Expand All @@ -21,7 +19,7 @@ - (instancetype)init {
}

- (NSArray<NSString *> *)supportedEvents {
return @[kNoCodesEventName];
return [_noCodesSandwich getAvailableEvents];
}

RCT_EXPORT_METHOD(initialize:(NSString *)projectKey
Expand Down Expand Up @@ -59,13 +57,7 @@ + (BOOL)requiresMainQueueSetup {
}

- (void)noCodesDidTriggerWithEvent:(NSString * _Nonnull)event payload:(NSDictionary<NSString *,id> * _Nullable)payload {
NSMutableDictionary *eventData = [NSMutableDictionary dictionary];
eventData[@"event"] = event;
if (payload) {
eventData[@"payload"] = payload;
}

[self sendEventWithName:kNoCodesEventName body:eventData];
[self sendEventWithName:event body:payload];
}

@end