@grouplinknetwork/rn-grouplink-sdk 2.3.11 → 2.4.0
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/LICENSE +59 -20
- package/README.md +85 -3
- package/android/src/main/java/com/grouplinksdk/GrouplinkSdkModule.java +73 -0
- package/grouplink-sdk.podspec +2 -2
- package/ios/Frameworks/GroupLink-original.xcframework/Info.plist +59 -0
- 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 +607 -0
- 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 +388 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/Headers/GroupLink.h +18 -0
- 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 +9288 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.private.swiftinterface +202 -0
- 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 +202 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/PrivacyInfo.xcprivacy +74 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64/GroupLink.framework/_CodeSignature/CodeResources +212 -0
- 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 +772 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Headers/GroupLink.h +18 -0
- 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 +9288 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +202 -0
- 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 +202 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.abi.json +9288 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +202 -0
- 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 +202 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/PrivacyInfo.xcprivacy +74 -0
- package/ios/Frameworks/GroupLink-original.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/_CodeSignature/CodeResources +267 -0
- 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 +744 -0
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Headers/GroupLink.h +18 -0
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/GroupLink.swiftmodule/arm64-apple-macos.abi.json +8376 -0
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/GroupLink.swiftmodule/arm64-apple-macos.private.swiftinterface +175 -0
- 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 +175 -0
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/GroupLink.swiftmodule/x86_64-apple-macos.abi.json +8376 -0
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/GroupLink.swiftmodule/x86_64-apple-macos.private.swiftinterface +175 -0
- 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 +175 -0
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Modules/module.modulemap +11 -0
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Resources/Info.plist +46 -0
- package/ios/Frameworks/GroupLink-original.xcframework/macos-arm64_x86_64/GroupLink.framework/Versions/A/Resources/PrivacyInfo.xcprivacy +74 -0
- 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 +241 -0
- package/ios/Frameworks/GroupLink.xcframework/Info.plist +44 -0
- 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 +388 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Headers/GroupLink.h +18 -0
- 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 +9288 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.private.swiftinterface +202 -0
- 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 +202 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/PrivacyInfo.xcprivacy +74 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/_CodeSignature/CodeResources +212 -0
- 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 +772 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Headers/GroupLink.h +18 -0
- 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 +9288 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +202 -0
- 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 +202 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.abi.json +9288 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +202 -0
- 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 +202 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/PrivacyInfo.xcprivacy +74 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/_CodeSignature/CodeResources +267 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/critical.aiff +0 -0
- package/ios/GrouplinkSdk.m +1 -1
- package/ios/GrouplinkSdk.swift +4 -0
- package/ios/GrouplinkSdk.xcodeproj/project.pbxproj +27 -4
- package/ios/GrouplinkSdk.xcodeproj/project.xcworkspace/xcuserdata/alessandrodearaujo.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/lib/commonjs/index.js +64 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +55 -2
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/index.d.ts +10 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.tsx +70 -2
package/LICENSE
CHANGED
|
@@ -1,20 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
copies of the Software
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
SOFTWARE LICENSE AGREEMENT
|
|
2
|
+
IMPORTANT - READ CAREFULLY BEFORE USING THIS SOFTWARE
|
|
3
|
+
This Software License Agreement (the "Agreement") is a legal agreement between you (either an individual or a single entity, “) and Group Link Operations S.A. ("Licensor") for the software product identified above, which includes computer software and may include associated media, printed materials, and "online" or electronic documentation ("Software").
|
|
4
|
+
By installing, copying, or otherwise using the software, you agree to be bound by the terms of this agreement. If you do not agree to the terms of this agreement, do not install or use the software.
|
|
5
|
+
1. GRANT OF LICENSE
|
|
6
|
+
Subject to the terms and conditions of this Agreement, Licensor hereby grants you a limited, non-exclusive, non-transferable license to:
|
|
7
|
+
a) Install and use the Software on devices owned, leased, or controlled by you;
|
|
8
|
+
b) Make copies of the Software solely for backup or archival purposes;
|
|
9
|
+
c) Use the Software for the purpose of integrating with your applications as described in the accompanying documentation.
|
|
10
|
+
2. RESTRICTIONS
|
|
11
|
+
You may NOT:
|
|
12
|
+
a) Modify, adapt, alter, translate, or create derivative works of the Software;
|
|
13
|
+
b) Reverse engineer, decompile, disassemble, or otherwise attempt to derive the source code of the Software, except to the extent that such activity is expressly permitted by applicable law;
|
|
14
|
+
c) Remove, alter, or obscure any proprietary notices on the Software;
|
|
15
|
+
d) Use the Software for any illegal purpose;
|
|
16
|
+
e) Sublicense, rent, lease, loan, or transfer the Software or any rights granted under this Agreement without the prior written consent of Licensor;
|
|
17
|
+
f) Use the Software in any manner that could damage, disable, overburden, or impair the functioning of the Software or interfere with any other party's use and enjoyment of the Software.
|
|
18
|
+
3. OWNERSHIPThe Software is licensed, not sold. Licensor retains all right, title, and interest in and to the Software and all intellectual property rights therein, including without limitation all patent, copyright, trademark, and trade secret rights. This Agreement does not grant you any rights to trademarks or service marks of Licensor.
|
|
19
|
+
4. DATA COLLECTION AND PRIVACY
|
|
20
|
+
The Group Link SDK, which enables the structuring of the Group Link Network, is incorporated in your application and it becomes available to its users.
|
|
21
|
+
The Software does not directly access personal data stored on the devices. Instead, it generates a unique identifier that can be easily reset by uninstalling the application. During operation, the Software may collect certain information, including device-specific details and usage data.
|
|
22
|
+
All data collection and processing of personal data that eventually occur will be conducted in accordance with applicable data protection laws, including but not limited to the Lei Geral de Proteção de Dados (LGPD) in Brazil and the General Data Protection Regulation (GDPR) in Europe, as applicable.
|
|
23
|
+
Group Link may share collected data with third parties solely for specific and limited purposes, ensuring that pseudonymization and anonymization techniques are employed whenever possible.
|
|
24
|
+
By using Group Links software, you must guarantee that will comply with all information security policies, rules and guidelines for the protection of personal data, including issues relating to storage, encryption and access controls, in order to protect them against loss, disclosure and unauthorized access, whether accidental or not, and must adopt measures to ensure adequate security against the risks posed by the nature of the data.
|
|
25
|
+
You are responsible for properly informing your end-users (the data subjects) about the data processing conducted by Group Link, as you have direct contact with these users.
|
|
26
|
+
End-users may exercise their data subject rights by contacting Group Link via email at dpo@grouplinkone.com. Additionally, data subjects have the right to object to processing based on legitimate grounds. If a data subject disagrees with Group Link's processing activities, they may opt-out through the following link: https://grouplinkone.com/forget-device.
|
|
27
|
+
You are obliged to comply with all applicable app store guidelines, including, but not limited to Apple App Store and Google Play Store guidelines.
|
|
28
|
+
5. UPDATES AND UPGRADES
|
|
29
|
+
Licensor may provide you with updates or upgrades to the Software. Any such updates or upgrades shall be governed by this Agreement unless other terms are provided with the updates or upgrades.
|
|
30
|
+
6. MAINTENANCE AND SUPPORT
|
|
31
|
+
Licensor may provide maintenance and support for the Software but is not obligated to do so unless a separate agreement for maintenance and support has been entered into between you and Licensor.
|
|
32
|
+
7. TERM AND TERMINATION
|
|
33
|
+
This Agreement is effective until terminated. You may terminate this Agreement at any time by ceasing all use of the Software and destroying all copies of the Software in your possession or control.
|
|
34
|
+
Licensor may terminate this Agreement immediately and without notice if you fail to comply with any term of this Agreement. Upon termination, you must cease all use of the Software and destroy all copies of the Software in your possession or control.
|
|
35
|
+
8. WARRANTY DISCLAIMER
|
|
36
|
+
The software is provided "as is" without warranty of any kind, either express or implied, including, but not limited to, the implied warranties of merchantability, fitness for a particular purpose, and noninfringement. Licensor does not warrant that the functions contained in the software will meet your requirements or that the operation of the software will be uninterrupted or error-free.
|
|
37
|
+
9. LIMITATION OF LIABILITY
|
|
38
|
+
In no event shall licensor be liable for any special, incidental, indirect, or consequential damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use of or inability to use the software, even if licensor has been advised of the possibility of such damages.
|
|
39
|
+
Licensor's entire liability under any provision of this agreement shall be limited to the amount actually paid by you for the software.
|
|
40
|
+
10. INDEMNIFICATION
|
|
41
|
+
You agree to indemnify, defend, and hold harmless Licensor, its officers, directors, employees, agents, and affiliates from and against any and all claims, damages, losses, liabilities, costs, and expenses (including reasonable attorneys' fees) arising from or relating to your use of the Software or your breach of this Agreement.
|
|
42
|
+
11. EXPORT CONTROLS
|
|
43
|
+
You agree to comply with all applicable international and national laws that apply to the Software, including the export regulations of your country of residence and the country from which you access the Software.
|
|
44
|
+
12. GOVERNING LAW AND JURISDICTION
|
|
45
|
+
This Agreement shall be governed by and construed in accordance with the laws of Brazil, without giving effect to any principles of conflicts of law. Any dispute arising out of or relating to this Agreement shall be subject to the exclusive jurisdiction of the courts of São Paulo, Brazil.
|
|
46
|
+
13. SEVERABILITY
|
|
47
|
+
If any provision of this Agreement is held to be unenforceable or invalid, such provision shall be changed and interpreted to accomplish the objectives of such provision to the greatest extent possible under applicable law, and the remaining provisions shall continue in full force and effect.
|
|
48
|
+
14. WAIVER
|
|
49
|
+
The failure of Licensor to enforce any right or provision of this Agreement will not be deemed a waiver of such right or provision.
|
|
50
|
+
15. ENTIRE AGREEMENT
|
|
51
|
+
This Agreement constitutes the entire agreement between you and Licensor regarding the Software and supersedes all prior and contemporaneous agreements, proposals, or representations, written or oral, concerning the Software.
|
|
52
|
+
16. AMENDMENTS
|
|
53
|
+
Licensor reserves the right to modify this Agreement at any time by posting the modified agreement on its website. Your continued use of the Software after any such changes constitutes your acceptance of the modified agreement.
|
|
54
|
+
17. CONTACT INFORMATIONIf you have any questions about this Agreement, please contact Licensor at:
|
|
55
|
+
Group Link Operations S.A.
|
|
56
|
+
R. Gomes de Carvalho, 1.510 - 12º andar Vila Olímpia - São Paulo - SP - Brasil
|
|
57
|
+
Email: legal@grouplinkone.com
|
|
58
|
+
Website: https://grouplinkone.com
|
|
59
|
+
Last updated: March 26, 2025
|
package/README.md
CHANGED
|
@@ -1,10 +1,92 @@
|
|
|
1
1
|
# grouplink-sdk
|
|
2
|
-
Group Link SDK for Android and iOS Devices
|
|
2
|
+
This is the Group Link SDK for React Native to use in Android and iOS Devices.
|
|
3
|
+
|
|
4
|
+
## Instalation
|
|
3
5
|
|
|
4
6
|
```sh
|
|
5
7
|
npm install @grouplinknetwork/rn-grouplink-sdk
|
|
8
|
+
|
|
9
|
+
yarn add @grouplinknetwork/rn-grouplink-sdk
|
|
6
10
|
```
|
|
7
11
|
|
|
12
|
+
## Usage
|
|
13
|
+
How to use the Group Link SDK for React Native.
|
|
14
|
+
|
|
15
|
+
### Import ```Group Link SDK```
|
|
8
16
|
```sh
|
|
9
|
-
|
|
10
|
-
```
|
|
17
|
+
import * as GroupLinkSDK from '@grouplinknetwork/rn-grouplink-sdk';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### startGrouplink
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
export default function App() {
|
|
24
|
+
useEffect(()=>{
|
|
25
|
+
GroupLinkSDK.startGrouplink("GROUP_LINK_TOKEN", isDebuggable);
|
|
26
|
+
},[])
|
|
27
|
+
return (
|
|
28
|
+
<View style={styles.container}>
|
|
29
|
+
<Text>Este é um aplicativo de teste</Text>
|
|
30
|
+
</View>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Supported methods
|
|
36
|
+
All the following methods are included in the Group Link SDK Plugin:
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### startGrouplink
|
|
40
|
+
Usage: Start the Group Link SDK.
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### startGrouplinkIOS
|
|
44
|
+
Usage: Start the Group Link SDK only in Android.
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### startSDKiOS
|
|
48
|
+
Usage: Start the Group Link SDK only in iOS.
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### startLocation
|
|
52
|
+
Usage: Start the location, and request it in app.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### startLocationIOS
|
|
56
|
+
Usage: Start the location in iOS, and request it in app.
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### startLocationAndroid
|
|
60
|
+
Usage: Start the location in android, and request it in app.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### startBluetooth
|
|
64
|
+
Usage: Start the bluetooth, and request it in app.
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### startBluetoothAndroid
|
|
68
|
+
Usage: Start the bluetooth in Android, and request it in app.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### startBluetoothIOS
|
|
72
|
+
Usage: Start the bluetooth in iOS, and request it in app.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### setNotificationToken
|
|
76
|
+
Usage: Set notification by a argument required token.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### requestFullIntentPermissionAndroid
|
|
80
|
+
Usage: Request the full intent permission in settings of android mobile phone.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
### requestScheduleExactAlarmPermissionAndroid
|
|
84
|
+
Usage: Request the schedule exact alarm permission.
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### setNotificationNameAndroid
|
|
88
|
+
Usage: Set a notification name by argument in android.
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### getNotificationNameAndroid
|
|
92
|
+
Usage: Get the notification name used by a android mobile phone.
|
|
@@ -5,6 +5,12 @@ import android.content.Context;
|
|
|
5
5
|
import android.content.pm.ApplicationInfo;
|
|
6
6
|
import android.os.Bundle;
|
|
7
7
|
import android.util.Log;
|
|
8
|
+
import android.net.Uri;
|
|
9
|
+
import android.app.NotificationManager;
|
|
10
|
+
import android.app.AlarmManager;
|
|
11
|
+
import android.content.Intent;
|
|
12
|
+
import android.provider.Settings;
|
|
13
|
+
import android.os.Build;
|
|
8
14
|
|
|
9
15
|
import com.facebook.react.bridge.Callback;
|
|
10
16
|
import com.facebook.react.bridge.LifecycleEventListener;
|
|
@@ -116,6 +122,73 @@ public class GrouplinkSdkModule extends ReactContextBaseJavaModule implements Li
|
|
|
116
122
|
registerAndroid(context, token, debbugable); //initGrouplink()
|
|
117
123
|
}
|
|
118
124
|
|
|
125
|
+
@ReactMethod
|
|
126
|
+
public void requestFullIntentPermissionAndroid() {
|
|
127
|
+
try {
|
|
128
|
+
Context context = mReactApplicationContext.getApplicationContext();
|
|
129
|
+
if (context == null) {
|
|
130
|
+
context = mReactApplicationContext.getApplicationContext();
|
|
131
|
+
}
|
|
132
|
+
NotificationManager notificationManager = (NotificationManager) context.getSystemService(ReactApplicationContext.NOTIFICATION_SERVICE);
|
|
133
|
+
if (Build.VERSION.SDK_INT >= 34) {
|
|
134
|
+
if (!notificationManager.canUseFullScreenIntent()) {
|
|
135
|
+
Intent intent = new Intent(Settings.ACTION_MANAGE_APP_USE_FULL_SCREEN_INTENT);
|
|
136
|
+
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
137
|
+
intent.setData(Uri.fromParts("package", context.getPackageName(), null));
|
|
138
|
+
context.startActivity(intent);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
} catch (Exception e) {
|
|
142
|
+
Log.e("FullIntent", "Failed to open settings: " + e.getMessage());
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
@ReactMethod
|
|
146
|
+
public void setNotificationNameAndroid(String notificationName) {
|
|
147
|
+
try{
|
|
148
|
+
Context context = mReactApplicationContext.getApplicationContext();
|
|
149
|
+
if (context == null) {
|
|
150
|
+
context = mReactApplicationContext.getApplicationContext();
|
|
151
|
+
}
|
|
152
|
+
GroupLink.setNotificationName(context, notificationName);
|
|
153
|
+
}catch (Exception e) {
|
|
154
|
+
Log.e("setNotificationName", "Failed to open settings: " + e.getMessage());
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@ReactMethod
|
|
160
|
+
public String getNotificationNameAndroid() {
|
|
161
|
+
try{
|
|
162
|
+
Context context = mReactApplicationContext.getApplicationContext();
|
|
163
|
+
if (context == null) {
|
|
164
|
+
context = mReactApplicationContext.getApplicationContext();
|
|
165
|
+
}
|
|
166
|
+
return GroupLink.getNotificationName(context);
|
|
167
|
+
}catch (Exception e) {
|
|
168
|
+
Log.e("getNotificationName", "Failed to open settings: " + e.getMessage());
|
|
169
|
+
}
|
|
170
|
+
return "Nothing";
|
|
171
|
+
}
|
|
172
|
+
@ReactMethod
|
|
173
|
+
public void requestScheduleExactAlarm(){
|
|
174
|
+
try {
|
|
175
|
+
Context context = mReactApplicationContext.getApplicationContext();
|
|
176
|
+
if (context == null) {
|
|
177
|
+
context = mReactApplicationContext.getApplicationContext();
|
|
178
|
+
}
|
|
179
|
+
AlarmManager alarmManager = (AlarmManager) context.getSystemService(ReactApplicationContext.ALARM_SERVICE);
|
|
180
|
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S && !alarmManager.canScheduleExactAlarms()) {
|
|
181
|
+
Intent intent = new Intent(Settings.ACTION_REQUEST_SCHEDULE_EXACT_ALARM);
|
|
182
|
+
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
183
|
+
intent.setData(Uri.fromParts("package", context.getPackageName(), null));
|
|
184
|
+
context.startActivity(intent);
|
|
185
|
+
}
|
|
186
|
+
} catch (Exception e) {
|
|
187
|
+
Log.e("requestScheduleExactAlarm", "Failed to open settings: " + e.getMessage());
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
|
|
119
192
|
@Override
|
|
120
193
|
public void onHostDestroy() {
|
|
121
194
|
|
package/grouplink-sdk.podspec
CHANGED
|
@@ -15,9 +15,9 @@ Pod::Spec.new do |s|
|
|
|
15
15
|
s.source = { :git => "https://github.com/amazingvitor/grouplink-sdk.git", :tag => "#{s.version}" }
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
|
-
|
|
18
|
+
s.vendored_frameworks = "ios/Frameworks/GroupLink.xcframework"
|
|
19
|
+
|
|
19
20
|
s.dependency "React-Core"
|
|
20
|
-
s.dependency "GroupLinkSDK"
|
|
21
21
|
|
|
22
22
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
23
23
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
@@ -0,0 +1,59 @@
|
|
|
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>AvailableLibraries</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>BinaryPath</key>
|
|
9
|
+
<string>GroupLink.framework/GroupLink</string>
|
|
10
|
+
<key>LibraryIdentifier</key>
|
|
11
|
+
<string>ios-arm64</string>
|
|
12
|
+
<key>LibraryPath</key>
|
|
13
|
+
<string>GroupLink.framework</string>
|
|
14
|
+
<key>SupportedArchitectures</key>
|
|
15
|
+
<array>
|
|
16
|
+
<string>arm64</string>
|
|
17
|
+
</array>
|
|
18
|
+
<key>SupportedPlatform</key>
|
|
19
|
+
<string>ios</string>
|
|
20
|
+
</dict>
|
|
21
|
+
<dict>
|
|
22
|
+
<key>BinaryPath</key>
|
|
23
|
+
<string>GroupLink.framework/GroupLink</string>
|
|
24
|
+
<key>LibraryIdentifier</key>
|
|
25
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
26
|
+
<key>LibraryPath</key>
|
|
27
|
+
<string>GroupLink.framework</string>
|
|
28
|
+
<key>SupportedArchitectures</key>
|
|
29
|
+
<array>
|
|
30
|
+
<string>arm64</string>
|
|
31
|
+
<string>x86_64</string>
|
|
32
|
+
</array>
|
|
33
|
+
<key>SupportedPlatform</key>
|
|
34
|
+
<string>ios</string>
|
|
35
|
+
<key>SupportedPlatformVariant</key>
|
|
36
|
+
<string>simulator</string>
|
|
37
|
+
</dict>
|
|
38
|
+
<dict>
|
|
39
|
+
<key>BinaryPath</key>
|
|
40
|
+
<string>GroupLink.framework/Versions/A/GroupLink</string>
|
|
41
|
+
<key>LibraryIdentifier</key>
|
|
42
|
+
<string>macos-arm64_x86_64</string>
|
|
43
|
+
<key>LibraryPath</key>
|
|
44
|
+
<string>GroupLink.framework</string>
|
|
45
|
+
<key>SupportedArchitectures</key>
|
|
46
|
+
<array>
|
|
47
|
+
<string>arm64</string>
|
|
48
|
+
<string>x86_64</string>
|
|
49
|
+
</array>
|
|
50
|
+
<key>SupportedPlatform</key>
|
|
51
|
+
<string>macos</string>
|
|
52
|
+
</dict>
|
|
53
|
+
</array>
|
|
54
|
+
<key>CFBundlePackageType</key>
|
|
55
|
+
<string>XFWK</string>
|
|
56
|
+
<key>XCFrameworkFormatVersion</key>
|
|
57
|
+
<string>1.0</string>
|
|
58
|
+
</dict>
|
|
59
|
+
</plist>
|
|
Binary file
|