reactnative-plugin-appice 1.7.16 → 1.7.18
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/example/App.js +14 -11
- package/example/PageA.tsx +16 -0
- package/example/android/.gradle/7.3.3/checksums/checksums.lock +0 -0
- package/example/android/.gradle/7.3.3/fileChanges/last-build.bin +0 -0
- package/example/android/.gradle/7.3.3/fileHashes/fileHashes.lock +0 -0
- package/example/android/.gradle/vcs-1/gc.properties +0 -0
- package/example/android/build.gradle +3 -3
- package/example/package.json +1 -1
- package/example/usePageTracking.ts +88 -0
- package/example/yarn.lock +6199 -6736
- package/ios/AppIceReactPlugin.m +6 -4
- package/ios/AppIceReactPlugin.xcworkspace/xcuserdata/artherajesh.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/package.json +1 -1
- package/example/android/local.properties +0 -8
- /package/{android/src/main/test → example/android/.gradle/7.3.3/gc.properties} +0 -0
package/ios/AppIceReactPlugin.m
CHANGED
|
@@ -167,11 +167,13 @@ RCT_EXPORT_METHOD(getUserId:(RCTResponseSenderBlock)callback)
|
|
|
167
167
|
RCTLog(@"getUserIdArray %@", getUserIdArray);
|
|
168
168
|
|
|
169
169
|
if (getUserIdArray && getUserIdArray.count > 0 && callback) {
|
|
170
|
-
|
|
170
|
+
NSError *error = nil;
|
|
171
|
+
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:getUserIdArray options:0 error:&error];
|
|
172
|
+
NSString *jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
|
|
173
|
+
[self returnResult:jsonString withCallback:callback andError:nil];
|
|
174
|
+
|
|
171
175
|
} else {
|
|
172
|
-
|
|
173
|
-
callback(@[[NSNull null]]);
|
|
174
|
-
}
|
|
176
|
+
[self returnResult:nil withCallback:callback andError:nil];
|
|
175
177
|
}
|
|
176
178
|
|
|
177
179
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
-
# as it contains information specific to your local configuration.
|
|
3
|
-
#
|
|
4
|
-
# Location of the SDK. This is only used by Gradle.
|
|
5
|
-
# For customization when using a Version Control System, please read the
|
|
6
|
-
# header note.
|
|
7
|
-
#Thu Jul 11 15:09:32 IST 2024
|
|
8
|
-
sdk.dir=/Users/amit/Library/Android/sdk
|
|
File without changes
|