@attentive-mobile/attentive-react-native-sdk 1.0.2 → 1.0.5
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.md +24 -0
- package/android/build.gradle +3 -0
- package/android/src/main/java/com/attentivereactnativesdk/AttentiveReactNativeSdkModule.java +63 -0
- package/android/src/main/kotlin/com/attentivereactnativesdk/debug/AttentiveDebugHelper.kt +422 -0
- package/android/src/main/kotlin/com/attentivereactnativesdk/debug/DebugEvent.kt +76 -0
- package/attentive-react-native-sdk.podspec +1 -2
- package/ios/AttentiveReactNativeSdk.mm +11 -1
- package/ios/AttentiveReactNativeSdk.xcodeproj/project.pbxproj +2 -2
- package/ios/AttentiveReactNativeSdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/AttentiveReactNativeSdk.xcodeproj/project.xcworkspace/xcuserdata/zheref.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/AttentiveReactNativeSdk.xcodeproj/xcuserdata/zheref.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/ios/Bridging/ATTNNativeSDK.swift +770 -2
- package/ios/Podfile +1 -1
- package/lib/commonjs/index.js +12 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +12 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/index.d.ts +8 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/index.tsx +14 -0
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
RCT_EXPORT_MODULE()
|
|
22
22
|
|
|
23
23
|
RCT_EXPORT_METHOD(initialize:(NSDictionary*)configuration) {
|
|
24
|
-
_sdk = [[ATTNNativeSDK alloc] initWithDomain:configuration[@"attentiveDomain"] mode:configuration[@"mode"] skipFatigueOnCreatives:configuration[@"skipFatigueOnCreatives"]];
|
|
24
|
+
_sdk = [[ATTNNativeSDK alloc] initWithDomain:configuration[@"attentiveDomain"] mode:configuration[@"mode"] skipFatigueOnCreatives:configuration[@"skipFatigueOnCreatives"] enableDebugger:configuration[@"enableDebugger"]];
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
RCT_EXPORT_METHOD(triggerCreative) {
|
|
@@ -71,6 +71,16 @@ RCT_EXPORT_METHOD(recordCustomEvent:(NSDictionary*)attrs) {
|
|
|
71
71
|
[_sdk recordCustomEvent:attrs];
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
RCT_EXPORT_METHOD(invokeAttentiveDebugHelper) {
|
|
75
|
+
[_sdk invokeAttentiveDebugHelper];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
RCT_EXPORT_METHOD(exportDebugLogs:(RCTPromiseResolveBlock)resolve
|
|
79
|
+
reject:(RCTPromiseRejectBlock)reject) {
|
|
80
|
+
NSString *exportContent = [_sdk exportDebugLogs];
|
|
81
|
+
resolve(exportContent);
|
|
82
|
+
}
|
|
83
|
+
|
|
74
84
|
// Don't compile this code when we build for the old architecture.
|
|
75
85
|
#ifdef RCT_NEW_ARCH_ENABLED
|
|
76
86
|
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
194
194
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
195
195
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
196
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
196
|
+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
|
197
197
|
MTL_ENABLE_DEBUG_INFO = YES;
|
|
198
198
|
ONLY_ACTIVE_ARCH = YES;
|
|
199
199
|
OTHER_LDFLAGS = (
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
248
248
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
249
249
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
250
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
250
|
+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
|
251
251
|
MTL_ENABLE_DEBUG_INFO = NO;
|
|
252
252
|
OTHER_LDFLAGS = (
|
|
253
253
|
"$(inherited)",
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
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>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>AttentiveReactNativeSdk.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|