@amplytools/react-native-amply-sdk 0.6.0 → 0.6.2

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.
@@ -22,7 +22,7 @@ Pod::Spec.new do |s|
22
22
  s.dependency 'React-RCTFabric'
23
23
 
24
24
  # Amply KMP SDK from CocoaPods
25
- s.dependency 'AmplySDK', '~> 0.6.0'
25
+ s.dependency 'AmplySDK', '~> 0.6.1'
26
26
 
27
27
  s.libraries = 'c++'
28
28
  s.pod_target_xcconfig = {
@@ -15,7 +15,7 @@ buildscript {
15
15
  apply plugin: 'com.android.library'
16
16
  apply plugin: 'org.jetbrains.kotlin.android'
17
17
 
18
- def amplySdkVersion = project.findProperty('amplySdkVersion') ?: System.getenv('AMPLY_SDK_VERSION') ?: '0.6.0'
18
+ def amplySdkVersion = project.findProperty('amplySdkVersion') ?: System.getenv('AMPLY_SDK_VERSION') ?: '0.6.1'
19
19
  group = 'tools.amply'
20
20
  version = amplySdkVersion
21
21
 
@@ -527,7 +527,9 @@ static NSArray<ASDKDataSetTypeEventParam *> *AmplyEventParamsFromArray(id raw, B
527
527
  if (outDroppedNullValue) *outDroppedNullValue = YES;
528
528
  continue;
529
529
  }
530
- [result addObject:[[ASDKDataSetTypeEventParam alloc] initWithName:name value:value compareType:@"==="]];
530
+ // valueType:nil → SDK falls back to raw attribute columns (no typed coercion),
531
+ // matching the Android bridge which relies on the Kotlin default.
532
+ [result addObject:[[ASDKDataSetTypeEventParam alloc] initWithName:name value:value compareType:@"===" valueType:nil]];
531
533
  }
532
534
  return result;
533
535
  }
@@ -592,7 +594,9 @@ static ASDKDataSetType *AmplyDataSetTypeFromDictionary(NSDictionary *type, NSStr
592
594
  BOOL droppedNullValue = NO;
593
595
  NSArray<ASDKDataSetTypeEventParam *> *params = AmplyEventParamsFromArray(eventDict[@"params"], &droppedNullValue);
594
596
  if (droppedNullValue) continue;
595
- [events addObject:[[ASDKDataSetTypeEventsEvent alloc] initWithName:eventNameStr type:eventType params:params]];
597
+ // id:nil → id-less declaration (limits-style): not projected into
598
+ // @events.aggregates, still fully queryable through @events.data.
599
+ [events addObject:[[ASDKDataSetTypeEventsEvent alloc] initWithName:eventNameStr type:eventType params:params id:nil]];
596
600
  }
597
601
  return [[ASDKDataSetTypeEvents alloc] initWithData:events];
598
602
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amplytools/react-native-amply-sdk",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
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": {