@grouplinknetwork/rn-grouplink-sdk 2.4.0 → 2.5.1
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/android/build.gradle +8 -115
- package/android/src/main/AndroidManifest.xml +2 -3
- package/android/src/main/java/com/grouplinksdk/GrouplinkSdkModule.java +111 -91
- package/android/src/main/java/com/grouplinksdk/GrouplinkSdkPackage.java +30 -14
- package/grouplink-sdk.podspec +6 -4
- package/ios/GrouplinkSdk-Bridging-Header.h +2 -2
- package/ios/GrouplinkSdk.mm +180 -0
- package/ios/GrouplinkSdk.swift +17 -30
- package/ios/GrouplinkSdk.xcodeproj/project.xcworkspace/xcuserdata/gabrieltorelo.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/lib/commonjs/NativeGrouplinkSdk.js +9 -0
- package/lib/commonjs/NativeGrouplinkSdk.js.map +1 -0
- package/lib/commonjs/index.js +118 -91
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/NativeGrouplinkSdk.js +3 -0
- package/lib/module/NativeGrouplinkSdk.js.map +1 -0
- package/lib/module/index.js +118 -94
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/NativeGrouplinkSdk.d.ts +21 -0
- package/lib/typescript/NativeGrouplinkSdk.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +15 -13
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +10 -2
- package/src/NativeGrouplinkSdk.ts +25 -0
- package/src/index.tsx +185 -107
- package/ios/Frameworks/GroupLink-original.xcframework/Info.plist +0 -59
- package/ios/Frameworks/GroupLink-original.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/_CodeSignature/CodeRequirements +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/_CodeSignature/CodeResources +0 -607
- package/ios/Frameworks/GroupLink-original.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/GroupLink +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/Headers/GroupLink-Swift.h +0 -388
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/Headers/GroupLink.h +0 -18
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/Info.plist +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.abi.json +0 -9288
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -202
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.swiftinterface +0 -202
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/Modules/module.modulemap +0 -11
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/PrivacyInfo.xcprivacy +0 -74
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/_CodeSignature/CodeResources +0 -212
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/critical.aiff +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/GroupLink +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Headers/GroupLink-Swift.h +0 -772
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Headers/GroupLink.h +0 -18
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Info.plist +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -9288
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -202
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -202
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -9288
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -202
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -202
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/module.modulemap +0 -11
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/PrivacyInfo.xcprivacy +0 -74
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/_CodeSignature/CodeResources +0 -267
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/critical.aiff +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/GroupLink +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Headers/GroupLink-Swift.h +0 -744
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Headers/GroupLink.h +0 -18
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/GroupLink.swiftmodule/arm64-apple-macos.abi.json +0 -8376
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/GroupLink.swiftmodule/arm64-apple-macos.private.swiftinterface +0 -175
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/GroupLink.swiftmodule/arm64-apple-macos.swiftdoc +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/GroupLink.swiftmodule/arm64-apple-macos.swiftinterface +0 -175
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/GroupLink.swiftmodule/x86_64-apple-macos.abi.json +0 -8376
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/GroupLink.swiftmodule/x86_64-apple-macos.private.swiftinterface +0 -175
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/GroupLink.swiftmodule/x86_64-apple-macos.swiftdoc +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/GroupLink.swiftmodule/x86_64-apple-macos.swiftinterface +0 -175
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/module.modulemap +0 -11
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Resources/Info.plist +0 -46
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Resources/PrivacyInfo.xcprivacy +0 -74
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Resources/critical.aiff +0 -0
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/_CodeSignature/CodeResources +0 -241
- package/ios/Frameworks/GroupLink.xcframework/Info.plist +0 -44
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/GroupLink +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Headers/GroupLink-Swift.h +0 -388
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Headers/GroupLink.h +0 -18
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Info.plist +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.abi.json +0 -9288
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -202
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.swiftinterface +0 -202
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/module.modulemap +0 -11
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/PrivacyInfo.xcprivacy +0 -74
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/_CodeSignature/CodeResources +0 -212
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/critical.aiff +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/GroupLink +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Headers/GroupLink-Swift.h +0 -772
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Headers/GroupLink.h +0 -18
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Info.plist +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -9288
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -202
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -202
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -9288
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -202
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -202
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/module.modulemap +0 -11
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/PrivacyInfo.xcprivacy +0 -74
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/_CodeSignature/CodeResources +0 -267
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/critical.aiff +0 -0
- package/ios/GrouplinkSdk.m +0 -19
- package/ios/GrouplinkSdk.xcodeproj/project.xcworkspace/xcuserdata/alessandrodearaujo.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- /package/ios/GrouplinkSdk.xcodeproj/xcuserdata/{alessandrodearaujo.xcuserdatad → gabrieltorelo.xcuserdatad}/xcschemes/xcschememanagement.plist +0 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GrouplinkSdk.mm
|
|
3
|
+
*
|
|
4
|
+
* Implements the RNGroupLinkSDK TurboModule for both Old and New Architecture.
|
|
5
|
+
*
|
|
6
|
+
* Old Architecture: uses RCT_EXPORT_MODULE() + RCT_EXPORT_METHOD() macros.
|
|
7
|
+
* New Architecture: conforms to NativeGrouplinkSdkSpec (generated by Codegen
|
|
8
|
+
* from src/NativeGroupLinkSDK.ts) and exposes getTurboModule:.
|
|
9
|
+
*
|
|
10
|
+
* GroupLink SDK calls are routed through GrouplinkBridge (GrouplinkSdk.swift)
|
|
11
|
+
* because GroupLink.xcframework only exports Swift ABI symbols — direct ObjC++
|
|
12
|
+
*
|
|
13
|
+
* NOTE: Delete ios/GrouplinkSdk.m after adding this file — both cannot coexist.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
#import <React/RCTBridgeModule.h>
|
|
17
|
+
#import "grouplink_sdk-Swift.h"
|
|
18
|
+
|
|
19
|
+
#ifdef RCT_NEW_ARCH_ENABLED
|
|
20
|
+
// #import "GrouplinkSdkSpec/GrouplinkSdkSpec.h"
|
|
21
|
+
#import "GrouplinkSdkSpec.h"
|
|
22
|
+
#endif
|
|
23
|
+
|
|
24
|
+
// In-memory store for the iOS notification name.
|
|
25
|
+
// GroupLinkSDK only exposes a setter, not a getter, so we cache it locally.
|
|
26
|
+
static NSString *_iosNotificationName = @"";
|
|
27
|
+
|
|
28
|
+
#ifdef RCT_NEW_ARCH_ENABLED
|
|
29
|
+
|
|
30
|
+
@interface RNGroupLinkSDK : NSObject <NativeGrouplinkSdkSpec>
|
|
31
|
+
@end
|
|
32
|
+
|
|
33
|
+
@implementation RNGroupLinkSDK
|
|
34
|
+
|
|
35
|
+
RCT_EXPORT_MODULE(RNGroupLinkSDK)
|
|
36
|
+
|
|
37
|
+
// ---------------------------------------------------------------------------
|
|
38
|
+
// iOS-only methods
|
|
39
|
+
// ---------------------------------------------------------------------------
|
|
40
|
+
|
|
41
|
+
- (void)startIOS:(NSString *)withToken {
|
|
42
|
+
[GrouplinkBridge startWithToken:withToken];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
- (void)setDevicePushToken:(NSString *)withPushToken {
|
|
46
|
+
[GrouplinkBridge setRemoteNotificationToken:withPushToken];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
- (void)startBluetoothIOS {
|
|
50
|
+
[GrouplinkBridge startBluetooth];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
- (void)checkBluetoothIOS {
|
|
54
|
+
[GrouplinkBridge checkBluetooth];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
- (void)startLocationIOS {
|
|
58
|
+
[GrouplinkBridge startLocation];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
- (void)setNotificationNameIOS:(NSString *)withNotificationName {
|
|
62
|
+
_iosNotificationName = withNotificationName;
|
|
63
|
+
[GrouplinkBridge setNotificationName:withNotificationName];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
- (void)getUserID:(RCTPromiseResolveBlock)resolve
|
|
67
|
+
reject:(RCTPromiseRejectBlock)reject {
|
|
68
|
+
NSString *userId = [GrouplinkBridge getUserID];
|
|
69
|
+
if (userId != nil) {
|
|
70
|
+
resolve(userId);
|
|
71
|
+
} else {
|
|
72
|
+
reject(@"NO_USER_ID", @"Could not get userID at this moment", nil);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
- (void)getNotificationNameIOS:(RCTPromiseResolveBlock)resolve
|
|
77
|
+
reject:(RCTPromiseRejectBlock)reject {
|
|
78
|
+
resolve(_iosNotificationName);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ---------------------------------------------------------------------------
|
|
82
|
+
// Android-only methods — no-ops on iOS
|
|
83
|
+
// ---------------------------------------------------------------------------
|
|
84
|
+
|
|
85
|
+
- (void)getUserIdAndroid:(RCTPromiseResolveBlock)resolve
|
|
86
|
+
reject:(RCTPromiseRejectBlock)reject {
|
|
87
|
+
reject(@"unsupported", @"getUserIdAndroid is Android only", nil);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
- (void)startAndroid:(NSString *)token debbugable:(BOOL)debbugable {}
|
|
91
|
+
|
|
92
|
+
- (void)setFirebaseToken:(NSString *)token {}
|
|
93
|
+
|
|
94
|
+
- (void)requestFullIntentPermissionAndroid {}
|
|
95
|
+
|
|
96
|
+
- (void)setNotificationNameAndroid:(NSString *)notificationName {}
|
|
97
|
+
|
|
98
|
+
- (void)getNotificationNameAndroid:(RCTPromiseResolveBlock)resolve
|
|
99
|
+
reject:(RCTPromiseRejectBlock)reject {
|
|
100
|
+
reject(@"unsupported", @"getNotificationNameAndroid is Android only", nil);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
- (void)requestScheduleExactAlarm {}
|
|
104
|
+
|
|
105
|
+
// ---------------------------------------------------------------------------
|
|
106
|
+
// TurboModule bridge
|
|
107
|
+
// ---------------------------------------------------------------------------
|
|
108
|
+
|
|
109
|
+
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
|
|
110
|
+
(const facebook::react::ObjCTurboModule::InitParams &)params {
|
|
111
|
+
return std::make_shared<facebook::react::NativeGrouplinkSdkSpecJSI>(params);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@end
|
|
115
|
+
|
|
116
|
+
#else // Old Architecture -------------------------------------------------------
|
|
117
|
+
|
|
118
|
+
@interface RNGroupLinkSDK : NSObject <RCTBridgeModule>
|
|
119
|
+
@end
|
|
120
|
+
|
|
121
|
+
@implementation RNGroupLinkSDK
|
|
122
|
+
|
|
123
|
+
RCT_EXPORT_MODULE(RNGroupLinkSDK)
|
|
124
|
+
|
|
125
|
+
+ (BOOL)requiresMainQueueSetup {
|
|
126
|
+
return YES;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// ---------------------------------------------------------------------------
|
|
130
|
+
// iOS-only methods
|
|
131
|
+
// ---------------------------------------------------------------------------
|
|
132
|
+
|
|
133
|
+
RCT_EXPORT_METHOD(startIOS:(NSString *)withToken) {
|
|
134
|
+
[GrouplinkBridge startWithToken:withToken];
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
RCT_EXPORT_METHOD(setDevicePushToken:(NSString *)withPushToken) {
|
|
138
|
+
[GrouplinkBridge setRemoteNotificationToken:withPushToken];
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
RCT_EXPORT_METHOD(startBluetoothIOS) {
|
|
142
|
+
[GrouplinkBridge startBluetooth];
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
RCT_EXPORT_METHOD(checkBluetoothIOS) {
|
|
146
|
+
[GrouplinkBridge checkBluetooth];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
RCT_EXPORT_METHOD(startLocationIOS) {
|
|
150
|
+
[GrouplinkBridge startLocation];
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
RCT_EXPORT_METHOD(setNotificationNameIOS:(NSString *)withNotificationName) {
|
|
154
|
+
_iosNotificationName = withNotificationName;
|
|
155
|
+
[GrouplinkBridge setNotificationName:withNotificationName];
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
RCT_EXPORT_METHOD(getUserID:(RCTPromiseResolveBlock)resolve
|
|
159
|
+
rejecter:(RCTPromiseRejectBlock)reject) {
|
|
160
|
+
NSString *userId = [GrouplinkBridge getUserID];
|
|
161
|
+
if (userId != nil) {
|
|
162
|
+
resolve(userId);
|
|
163
|
+
} else {
|
|
164
|
+
reject(@"NO_USER_ID", @"Could not get userID at this moment", nil);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
RCT_EXPORT_METHOD(getNotificationNameIOS:(RCTPromiseResolveBlock)resolve
|
|
169
|
+
rejecter:(RCTPromiseRejectBlock)reject) {
|
|
170
|
+
resolve(_iosNotificationName);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// ---------------------------------------------------------------------------
|
|
174
|
+
// Android-only methods — not registered on iOS in Old Architecture
|
|
175
|
+
// (JS guards with Platform.OS checks; not needed here)
|
|
176
|
+
// ---------------------------------------------------------------------------
|
|
177
|
+
|
|
178
|
+
@end
|
|
179
|
+
|
|
180
|
+
#endif // RCT_NEW_ARCH_ENABLED
|
package/ios/GrouplinkSdk.swift
CHANGED
|
@@ -1,48 +1,35 @@
|
|
|
1
1
|
import Foundation
|
|
2
2
|
import GroupLink
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
func
|
|
9
|
-
GroupLinkSDK.
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@objc(startIOS:)
|
|
13
|
-
func startIOS(withToken: String) -> Void {
|
|
14
|
-
GroupLinkSDK.start(withToken:withToken)
|
|
4
|
+
/// Bridges GroupLink SDK calls from Obj-C++ (GrouplinkSdk.mm) to Swift.
|
|
5
|
+
/// Necessary because GroupLink.xcframework only exports Swift ABI symbols,
|
|
6
|
+
/// not ObjC class symbols, so direct ObjC++ calls would fail at link time.
|
|
7
|
+
@objc public class GrouplinkBridge: NSObject {
|
|
8
|
+
@objc public static func start(token: String) {
|
|
9
|
+
GroupLinkSDK.start(withToken: token)
|
|
15
10
|
}
|
|
16
11
|
|
|
17
|
-
@objc(
|
|
18
|
-
func startBluetoothIOS() -> Void {
|
|
12
|
+
@objc public static func startBluetooth() {
|
|
19
13
|
GroupLinkSDK.startBluetooth()
|
|
20
14
|
}
|
|
21
15
|
|
|
22
|
-
@objc(
|
|
23
|
-
func checkBluetoothIOS() -> Void {
|
|
16
|
+
@objc public static func checkBluetooth() {
|
|
24
17
|
GroupLinkSDK.checkBluetooth()
|
|
25
18
|
}
|
|
26
19
|
|
|
27
|
-
@objc(
|
|
28
|
-
func startLocationIOS() -> Void {
|
|
20
|
+
@objc public static func startLocation() {
|
|
29
21
|
GroupLinkSDK.startLocation()
|
|
30
22
|
}
|
|
31
23
|
|
|
32
|
-
@objc(
|
|
33
|
-
|
|
34
|
-
if GroupLinkSDK.getUserID() != nil {
|
|
35
|
-
reject("NO_USER_ID", "Could not get userID at this moment", SDK_ERROR.NO_USER_ID)
|
|
36
|
-
} else {
|
|
37
|
-
resolve(GroupLinkSDK.getUserID())
|
|
38
|
-
}
|
|
24
|
+
@objc public static func setNotificationName(_ name: String) {
|
|
25
|
+
GroupLinkSDK.setNotificationName(name)
|
|
39
26
|
}
|
|
40
|
-
|
|
41
|
-
func
|
|
42
|
-
GroupLinkSDK.
|
|
27
|
+
|
|
28
|
+
@objc public static func getUserID() -> String? {
|
|
29
|
+
return GroupLinkSDK.getUserID()
|
|
43
30
|
}
|
|
44
|
-
}
|
|
45
31
|
|
|
46
|
-
|
|
47
|
-
|
|
32
|
+
@objc public static func setRemoteNotificationToken(_ token: String) {
|
|
33
|
+
GroupLinkNotifications.setRemoteNotificationToken(token)
|
|
34
|
+
}
|
|
48
35
|
}
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('RNGroupLinkSDK');
|
|
9
|
+
//# sourceMappingURL=NativeGrouplinkSdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeGrouplinkSdk.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAAmD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAuBpCC,gCAAmB,CAACC,YAAY,CAAO,gBAAgB,CAAC","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -14,159 +14,186 @@ exports.setFirebaseToken = setFirebaseToken;
|
|
|
14
14
|
exports.setNotificationName = setNotificationName;
|
|
15
15
|
exports.setNotificationNameAndroid = setNotificationNameAndroid;
|
|
16
16
|
exports.setNotificationNameIOS = setNotificationNameIOS;
|
|
17
|
+
exports.startBluetooth = startBluetooth;
|
|
17
18
|
exports.startBluetoothAndroid = startBluetoothAndroid;
|
|
18
19
|
exports.startBluetoothIOS = startBluetoothIOS;
|
|
19
20
|
exports.startGrouplink = startGrouplink;
|
|
20
21
|
exports.startGrouplinkAndroid = startGrouplinkAndroid;
|
|
21
22
|
exports.startGrouplinkIOS = startGrouplinkIOS;
|
|
23
|
+
exports.startLocation = startLocation;
|
|
22
24
|
exports.startLocationAndroid = startLocationAndroid;
|
|
23
25
|
exports.startLocationIOS = startLocationIOS;
|
|
24
26
|
var _reactNative = require("react-native");
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
default: ''
|
|
28
|
-
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo managed workflow\n';
|
|
29
|
-
const RNGroupLinkSDK = _reactNative.NativeModules.RNGroupLinkSDK ? _reactNative.NativeModules.RNGroupLinkSDK : new Proxy({}, {
|
|
30
|
-
get() {
|
|
31
|
-
throw new Error(LINKING_ERROR);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
27
|
+
var _NativeGrouplinkSdk = _interopRequireDefault(require("./NativeGrouplinkSdk"));
|
|
28
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
34
29
|
async function getUserId() {
|
|
35
|
-
if (
|
|
36
|
-
const userID = await
|
|
37
|
-
if (userID
|
|
38
|
-
return Promise.resolve(userID);
|
|
39
|
-
} else {
|
|
40
|
-
return Promise.reject("UserID not registered yet");
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
if (isiOS()) {
|
|
44
|
-
const userID = await RNGroupLinkSDK.getUserID();
|
|
45
|
-
if (userID != null) {
|
|
30
|
+
if (_isAndroid()) {
|
|
31
|
+
const userID = await _NativeGrouplinkSdk.default.getUserIdAndroid();
|
|
32
|
+
if (userID !== 'User not registered yet.') {
|
|
46
33
|
return Promise.resolve(userID);
|
|
47
34
|
} else {
|
|
48
|
-
return Promise.reject(
|
|
35
|
+
return Promise.reject('UserID not registered yet');
|
|
49
36
|
}
|
|
37
|
+
} else if (_isiOS()) {
|
|
38
|
+
return _NativeGrouplinkSdk.default.getUserID();
|
|
50
39
|
}
|
|
51
|
-
return Promise.reject(
|
|
40
|
+
return Promise.reject('Internal Error');
|
|
52
41
|
}
|
|
53
42
|
function setFirebaseToken(token) {
|
|
54
|
-
if (
|
|
55
|
-
|
|
56
|
-
|
|
43
|
+
if (token == null || token === '') {
|
|
44
|
+
_reportError('setFirebaseToken(token: string)', 'Requires a valid Firebase (FCM) token string.');
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (_isAndroid()) {
|
|
48
|
+
_NativeGrouplinkSdk.default.setFirebaseToken(token);
|
|
57
49
|
}
|
|
58
50
|
}
|
|
59
51
|
function startBluetoothIOS() {
|
|
60
|
-
if (
|
|
61
|
-
|
|
62
|
-
return RNGroupLinkSDK.startBluetoothIOS();
|
|
52
|
+
if (_isiOS()) {
|
|
53
|
+
_NativeGrouplinkSdk.default.startBluetoothIOS();
|
|
63
54
|
}
|
|
64
|
-
return;
|
|
65
55
|
}
|
|
66
56
|
function setDevicePushTokenIOS(token) {
|
|
67
|
-
|
|
57
|
+
if (token == null || token === '') {
|
|
58
|
+
_reportError('setDevicePushTokenIOS(token: string)', 'Requires a valid device push token string.');
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (_isiOS()) {
|
|
62
|
+
_NativeGrouplinkSdk.default.setDevicePushToken(token);
|
|
63
|
+
}
|
|
68
64
|
}
|
|
69
65
|
function startLocationIOS() {
|
|
70
|
-
if (
|
|
71
|
-
|
|
72
|
-
return RNGroupLinkSDK.startLocationIOS();
|
|
66
|
+
if (_isiOS()) {
|
|
67
|
+
_NativeGrouplinkSdk.default.startLocationIOS();
|
|
73
68
|
}
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
function isAndroid() {
|
|
77
|
-
return _reactNative.Platform.OS == 'android';
|
|
78
|
-
}
|
|
79
|
-
function isiOS() {
|
|
80
|
-
return _reactNative.Platform.OS == 'ios';
|
|
81
|
-
}
|
|
82
|
-
function startAndroid(withToken, debbugable) {
|
|
83
|
-
console.log('Group Link SDK (Android) - Start with token: ', withToken);
|
|
84
|
-
return RNGroupLinkSDK.startAndroid(withToken, debbugable);
|
|
85
|
-
}
|
|
86
|
-
function startIOS(withToken) {
|
|
87
|
-
console.log('Group Link SDK (IOS) - Start with token: ', withToken);
|
|
88
|
-
return RNGroupLinkSDK.startIOS(withToken);
|
|
89
69
|
}
|
|
90
70
|
function startGrouplink(withToken, debbugable) {
|
|
91
|
-
if (
|
|
92
|
-
|
|
71
|
+
if (withToken == null || withToken === '') {
|
|
72
|
+
_reportError('startGrouplink(withToken: string, debbugable?: boolean | null)', 'Requires a valid GroupLink token string.');
|
|
73
|
+
return;
|
|
93
74
|
}
|
|
94
|
-
|
|
95
|
-
|
|
75
|
+
const debug = debbugable ?? false;
|
|
76
|
+
if (_isiOS()) {
|
|
77
|
+
_NativeGrouplinkSdk.default.startIOS(withToken);
|
|
78
|
+
} else if (_isAndroid()) {
|
|
79
|
+
_NativeGrouplinkSdk.default.startAndroid(withToken, debug);
|
|
96
80
|
}
|
|
97
81
|
}
|
|
98
82
|
function startGrouplinkAndroid(withToken, debbugable) {
|
|
99
|
-
if (
|
|
100
|
-
|
|
83
|
+
if (withToken == null || withToken === '') {
|
|
84
|
+
_reportError('startGrouplinkAndroid(withToken: string, debbugable?: boolean | null)', 'Requires a valid GroupLink token string.');
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const debug = debbugable ?? false;
|
|
88
|
+
if (_isAndroid()) {
|
|
89
|
+
_NativeGrouplinkSdk.default.startAndroid(withToken, debug);
|
|
101
90
|
}
|
|
102
91
|
}
|
|
103
92
|
function startGrouplinkIOS(withToken) {
|
|
104
|
-
if (
|
|
105
|
-
|
|
93
|
+
if (withToken == null || withToken === '') {
|
|
94
|
+
_reportError('startGrouplinkIOS(withToken: string)', 'Requires a valid GroupLink token string.');
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (_isiOS()) {
|
|
98
|
+
_NativeGrouplinkSdk.default.startIOS(withToken);
|
|
106
99
|
}
|
|
107
100
|
}
|
|
108
101
|
function checkBluetoothIOS() {
|
|
109
|
-
if (
|
|
102
|
+
if (_isiOS()) {
|
|
103
|
+
_NativeGrouplinkSdk.default.checkBluetoothIOS();
|
|
104
|
+
}
|
|
110
105
|
}
|
|
111
106
|
async function startBluetoothAndroid() {
|
|
112
|
-
if (!(_reactNative.Platform.OS ===
|
|
107
|
+
if (!(_reactNative.Platform.OS === 'android' && _reactNative.Platform.Version >= 31)) return;
|
|
113
108
|
const bluetoothPermission = await _reactNative.PermissionsAndroid.requestMultiple([_reactNative.PermissionsAndroid.PERMISSIONS.BLUETOOTH_SCAN, _reactNative.PermissionsAndroid.PERMISSIONS.BLUETOOTH_ADVERTISE, _reactNative.PermissionsAndroid.PERMISSIONS.BLUETOOTH_CONNECT]);
|
|
114
|
-
if (bluetoothPermission[
|
|
109
|
+
if (bluetoothPermission['android.permission.BLUETOOTH_SCAN'] === _reactNative.PermissionsAndroid.RESULTS.GRANTED && bluetoothPermission['android.permission.BLUETOOTH_ADVERTISE'] === _reactNative.PermissionsAndroid.RESULTS.GRANTED && bluetoothPermission['android.permission.BLUETOOTH_CONNECT'] === _reactNative.PermissionsAndroid.RESULTS.GRANTED) {
|
|
110
|
+
_NativeGrouplinkSdk.default.startAndroid('', false);
|
|
111
|
+
}
|
|
115
112
|
}
|
|
116
|
-
;
|
|
117
113
|
async function startLocationAndroid() {
|
|
118
|
-
if (!(_reactNative.Platform.OS
|
|
114
|
+
if (!(_reactNative.Platform.OS === 'android' && _reactNative.Platform.Version >= 23)) return;
|
|
119
115
|
const locationPermission = await _reactNative.PermissionsAndroid.requestMultiple([_reactNative.PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION, _reactNative.PermissionsAndroid.PERMISSIONS.ACCESS_COARSE_LOCATION]);
|
|
120
|
-
if (locationPermission[
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
|
|
116
|
+
if (locationPermission['android.permission.ACCESS_COARSE_LOCATION'] === _reactNative.PermissionsAndroid.RESULTS.GRANTED && locationPermission['android.permission.ACCESS_FINE_LOCATION'] === _reactNative.PermissionsAndroid.RESULTS.GRANTED) {
|
|
117
|
+
// Permissions granted
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
async function startLocation() {
|
|
121
|
+
if (_isiOS()) {
|
|
122
|
+
_NativeGrouplinkSdk.default.startLocationIOS();
|
|
123
|
+
} else if (_isAndroid()) {
|
|
124
|
+
await startLocationAndroid();
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
async function startBluetooth() {
|
|
128
|
+
if (_isiOS()) {
|
|
129
|
+
_NativeGrouplinkSdk.default.startBluetoothIOS();
|
|
130
|
+
} else if (_isAndroid()) {
|
|
131
|
+
await startBluetoothAndroid();
|
|
124
132
|
}
|
|
125
133
|
}
|
|
126
134
|
function requestFullIntentPermissionAndroid() {
|
|
127
|
-
if (
|
|
128
|
-
|
|
135
|
+
if (_isAndroid()) {
|
|
136
|
+
_NativeGrouplinkSdk.default.requestFullIntentPermissionAndroid();
|
|
129
137
|
}
|
|
130
138
|
}
|
|
131
139
|
function setNotificationNameAndroid(name) {
|
|
132
|
-
if (
|
|
133
|
-
|
|
140
|
+
if (name == null || name === '') {
|
|
141
|
+
_reportError('setNotificationNameAndroid(name: string)', 'Requires a valid notification name string.');
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
if (_isAndroid()) {
|
|
145
|
+
_NativeGrouplinkSdk.default.setNotificationNameAndroid(name);
|
|
134
146
|
}
|
|
135
147
|
}
|
|
136
|
-
function getNotificationNameAndroid() {
|
|
137
|
-
if (
|
|
138
|
-
return
|
|
148
|
+
async function getNotificationNameAndroid() {
|
|
149
|
+
if (_isAndroid()) {
|
|
150
|
+
return _NativeGrouplinkSdk.default.getNotificationNameAndroid();
|
|
139
151
|
}
|
|
152
|
+
return null;
|
|
140
153
|
}
|
|
141
154
|
function setNotificationNameIOS(name) {
|
|
142
|
-
if (
|
|
143
|
-
|
|
155
|
+
if (name == null || name === '') {
|
|
156
|
+
_reportError('setNotificationNameIOS(name: string)', 'Requires a valid notification name string.');
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
if (_isiOS()) {
|
|
160
|
+
_NativeGrouplinkSdk.default.setNotificationNameIOS(name);
|
|
144
161
|
}
|
|
145
162
|
}
|
|
146
|
-
function getNotificationNameIOS() {
|
|
147
|
-
if (
|
|
148
|
-
return
|
|
163
|
+
async function getNotificationNameIOS() {
|
|
164
|
+
if (_isiOS()) {
|
|
165
|
+
return _NativeGrouplinkSdk.default.getNotificationNameIOS();
|
|
149
166
|
}
|
|
167
|
+
return null;
|
|
150
168
|
}
|
|
151
169
|
function setNotificationName(name) {
|
|
152
|
-
if (
|
|
153
|
-
|
|
170
|
+
if (name == null || name === '') {
|
|
171
|
+
_reportError('setNotificationName(name: string)', 'Requires a valid notification name string.');
|
|
172
|
+
return;
|
|
154
173
|
}
|
|
155
|
-
if (
|
|
156
|
-
|
|
174
|
+
if (_isAndroid()) {
|
|
175
|
+
_NativeGrouplinkSdk.default.setNotificationNameAndroid(name);
|
|
176
|
+
} else if (_isiOS()) {
|
|
177
|
+
_NativeGrouplinkSdk.default.setNotificationNameIOS(name);
|
|
157
178
|
}
|
|
158
179
|
}
|
|
159
180
|
function requestScheduleExactAlarmPermissionAndroid() {
|
|
160
|
-
if (
|
|
161
|
-
|
|
181
|
+
if (_isAndroid()) {
|
|
182
|
+
_NativeGrouplinkSdk.default.requestScheduleExactAlarm();
|
|
162
183
|
}
|
|
163
184
|
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
185
|
+
function _reportError(signature, message) {
|
|
186
|
+
const err = new Error(`[GroupLinkSDK] ${signature} → ${message}`);
|
|
187
|
+
if (err.stack) {
|
|
188
|
+
const lines = err.stack.split('\n');
|
|
189
|
+
err.stack = [lines[0], ...lines.slice(3)].join('\n');
|
|
190
|
+
}
|
|
191
|
+
console.error(err);
|
|
192
|
+
}
|
|
193
|
+
function _isAndroid() {
|
|
194
|
+
return _reactNative.Platform.OS === 'android';
|
|
195
|
+
}
|
|
196
|
+
function _isiOS() {
|
|
197
|
+
return _reactNative.Platform.OS === 'ios';
|
|
198
|
+
}
|
|
172
199
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_NativeGrouplinkSdk","_interopRequireDefault","e","__esModule","default","getUserId","_isAndroid","userID","NativeGroupLinkSDK","getUserIdAndroid","Promise","resolve","reject","_isiOS","getUserID","setFirebaseToken","token","_reportError","startBluetoothIOS","setDevicePushTokenIOS","setDevicePushToken","startLocationIOS","startGrouplink","withToken","debbugable","debug","startIOS","startAndroid","startGrouplinkAndroid","startGrouplinkIOS","checkBluetoothIOS","startBluetoothAndroid","Platform","OS","Version","bluetoothPermission","PermissionsAndroid","requestMultiple","PERMISSIONS","BLUETOOTH_SCAN","BLUETOOTH_ADVERTISE","BLUETOOTH_CONNECT","RESULTS","GRANTED","startLocationAndroid","locationPermission","ACCESS_FINE_LOCATION","ACCESS_COARSE_LOCATION","startLocation","startBluetooth","requestFullIntentPermissionAndroid","setNotificationNameAndroid","name","getNotificationNameAndroid","setNotificationNameIOS","getNotificationNameIOS","setNotificationName","requestScheduleExactAlarmPermissionAndroid","requestScheduleExactAlarm","signature","message","err","Error","stack","lines","split","slice","join","console","error"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAsD,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE/C,eAAeG,SAASA,CAAA,EAA2B;EACxD,IAAIC,UAAU,CAAC,CAAC,EAAE;IAChB,MAAMC,MAAc,GAAG,MAAMC,2BAAkB,CAACC,gBAAgB,CAAC,CAAC;IAClE,IAAIF,MAAM,KAAK,0BAA0B,EAAE;MACzC,OAAOG,OAAO,CAACC,OAAO,CAACJ,MAAM,CAAC;IAChC,CAAC,MAAM;MACL,OAAOG,OAAO,CAACE,MAAM,CAAC,2BAA2B,CAAC;IACpD;EACF,CAAC,MAAM,IAAIC,MAAM,CAAC,CAAC,EAAE;IACnB,OAAOL,2BAAkB,CAACM,SAAS,CAAC,CAAC;EACvC;EAEA,OAAOJ,OAAO,CAACE,MAAM,CAAC,gBAAgB,CAAC;AACzC;AAEO,SAASG,gBAAgBA,CAACC,KAAa,EAAE;EAC9C,IAAIA,K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S,MAAMC,OAAO,EAAE,CAAC;EAEjE,IAAIC,GAAG,CAACE,KAAK,EAAE;IACb,MAAMC,KAAK,GAAGH,GAAG,CAACE,KAAK,CAACE,KAAK,CAAC,IAAI,CAAC;IACnCJ,GAAG,CAACE,KAAK,GAAG,CAACC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAGA,KAAK,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC;EACtD;EAEAC,OAAO,CAACC,KAAK,CAACR,GAAG,CAAC;AACpB;AAEA,SAASvD,UAAUA,CAAA,EAAG;EACpB,OAAO0B,qBAAQ,CAACC,EAAE,KAAK,SAAS;AAClC;AAEA,SAASpB,MAAMA,CAAA,EAAG;EAChB,OAAOmB,qBAAQ,CAACC,EAAE,KAAK,KAAK;AAC9B","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeGrouplinkSdk.ts"],"mappings":"AACA,SAASA,mBAAmB,QAAQ,cAAc;AAuBlD,eAAeA,mBAAmB,CAACC,YAAY,CAAO,gBAAgB,CAAC","ignoreList":[]}
|