@amplytools/react-native-amply-sdk 0.1.7 → 0.1.8
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.
|
@@ -502,20 +502,13 @@ RCT_EXPORT_MODULE()
|
|
|
502
502
|
{
|
|
503
503
|
// Forward log entries to JS as DebugLog events via the system event channel
|
|
504
504
|
NSString *levelStr = @"debug";
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
case ASDKLogLevelInfo:
|
|
513
|
-
levelStr = @"info";
|
|
514
|
-
break;
|
|
515
|
-
case ASDKLogLevelDebug:
|
|
516
|
-
default:
|
|
517
|
-
levelStr = @"debug";
|
|
518
|
-
break;
|
|
505
|
+
ASDKLogLevel *level = entry.level;
|
|
506
|
+
if (level == ASDKLogLevel.error) {
|
|
507
|
+
levelStr = @"error";
|
|
508
|
+
} else if (level == ASDKLogLevel.warn) {
|
|
509
|
+
levelStr = @"warn";
|
|
510
|
+
} else if (level == ASDKLogLevel.info) {
|
|
511
|
+
levelStr = @"info";
|
|
519
512
|
}
|
|
520
513
|
|
|
521
514
|
NSMutableDictionary *properties = [NSMutableDictionary dictionary];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amplytools/react-native-amply-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "React Native SDK for Amply: Mobile SDK to orchestrate in-app experiences and campaigns remotely, without app releases",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|