@grouplinknetwork/rn-grouplink-sdk 2.3.4 → 2.3.7

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.
Files changed (49) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +10 -7
  3. package/android/build.gradle +140 -140
  4. package/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  5. package/android/gradle.properties +5 -5
  6. package/android/gradlew +234 -234
  7. package/android/src/main/AndroidManifest.xml +24 -24
  8. package/android/src/main/java/com/grouplinksdk/GrouplinkSdkModule.java +133 -133
  9. package/android/src/main/java/com/grouplinksdk/GrouplinkSdkPackage.java +28 -28
  10. package/grouplink-sdk.podspec +36 -36
  11. package/ios/GrouplinkSdk-Bridging-Header.h +1 -1
  12. package/ios/GrouplinkSdk.m +18 -17
  13. package/ios/GrouplinkSdk.swift +39 -34
  14. package/ios/GrouplinkSdk.xcodeproj/project.pbxproj +283 -283
  15. package/ios/GrouplinkSdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  16. package/ios/GrouplinkSdk.xcodeproj/project.xcworkspace/xcuserdata/alessandrodearaujo.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  17. package/ios/GrouplinkSdk.xcodeproj/xcuserdata/alessandrodearaujo.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
  18. package/lib/commonjs/index.js +13 -6
  19. package/lib/commonjs/index.js.map +1 -1
  20. package/lib/module/index.js +12 -5
  21. package/lib/module/index.js.map +1 -1
  22. package/lib/typescript/index.d.ts +1 -1
  23. package/lib/typescript/index.d.ts.map +1 -1
  24. package/package.json +131 -131
  25. package/src/index.tsx +99 -92
  26. package/android/.gradle/7.4/checksums/checksums.lock +0 -0
  27. package/android/.gradle/7.4/checksums/md5-checksums.bin +0 -0
  28. package/android/.gradle/7.4/checksums/sha1-checksums.bin +0 -0
  29. package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  30. package/android/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  31. package/android/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
  32. package/android/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  33. package/android/.gradle/7.4/fileChanges/last-build.bin +0 -0
  34. package/android/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
  35. package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  36. package/android/.gradle/7.4/fileHashes/resourceHashesCache.bin +0 -0
  37. package/android/.gradle/7.4/gc.properties +0 -0
  38. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  39. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  40. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  41. package/android/.gradle/config.properties +0 -2
  42. package/android/.gradle/file-system.probe +0 -0
  43. package/android/.gradle/vcs-1/gc.properties +0 -0
  44. package/android/.idea/compiler.xml +0 -6
  45. package/android/.idea/gradle.xml +0 -19
  46. package/android/.idea/jarRepositories.xml +0 -30
  47. package/android/.idea/misc.xml +0 -9
  48. package/android/.idea/vcs.xml +0 -6
  49. package/android/local.properties +0 -8
package/LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 Vitor Hugo
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Vitor Hugo
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md CHANGED
@@ -1,7 +1,10 @@
1
- # grouplink-sdk
2
- Group Link SDK for Android and iOS Devices
3
- ## Installation
4
-
5
- ```sh
6
- npm install @grouplinknetwork/rn-grouplink-sdk
7
- ```
1
+ # grouplink-sdk
2
+ Group Link SDK for Android and iOS Devices
3
+
4
+ ```sh
5
+ npm install @grouplinknetwork/rn-grouplink-sdk
6
+ ```
7
+
8
+ ```sh
9
+ yarn add @grouplinknetwork/rn-grouplink-sdk
10
+ ```
@@ -1,140 +1,140 @@
1
- buildscript {
2
- repositories {
3
- google()
4
- mavenCentral()
5
- mavenLocal()
6
- maven { url 'https://jitpack.io' }
7
- }
8
-
9
- dependencies {
10
- classpath 'com.android.tools.build:gradle:3.5.3'
11
- }
12
- }
13
-
14
- def isNewArchitectureEnabled() {
15
- return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
16
- }
17
-
18
- apply plugin: 'com.android.library'
19
-
20
- if (isNewArchitectureEnabled()) {
21
- apply plugin: 'com.facebook.react'
22
- }
23
-
24
- def getExtOrDefault(name) {
25
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['GrouplinkSdk_' + name]
26
- }
27
-
28
- def getExtOrIntegerDefault(name) {
29
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties['GrouplinkSdk_' + name]).toInteger()
30
- }
31
-
32
- android {
33
- compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
34
-
35
- defaultConfig {
36
- minSdkVersion getExtOrIntegerDefault('minSdkVersion')
37
- targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
38
- buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
39
- }
40
- buildTypes {
41
- release {
42
- minifyEnabled false
43
- }
44
- }
45
-
46
- lintOptions {
47
- disable 'GradleCompatible'
48
- }
49
-
50
- compileOptions {
51
- sourceCompatibility JavaVersion.VERSION_1_8
52
- targetCompatibility JavaVersion.VERSION_1_8
53
- }
54
- }
55
-
56
- repositories {
57
- mavenCentral()
58
- google()
59
-
60
- def found = false
61
- def defaultDir = null
62
- def androidSourcesName = 'React Native sources'
63
-
64
- if (rootProject.ext.has('reactNativeAndroidRoot')) {
65
- defaultDir = rootProject.ext.get('reactNativeAndroidRoot')
66
- } else {
67
- defaultDir = new File(
68
- projectDir,
69
- '/../../../node_modules/react-native/android'
70
- )
71
- }
72
-
73
- if (defaultDir.exists()) {
74
- maven {
75
- url defaultDir.toString()
76
- name androidSourcesName
77
- }
78
-
79
- logger.info(":${project.name}:reactNativeAndroidRoot ${defaultDir.canonicalPath}")
80
- found = true
81
- } else {
82
- def parentDir = rootProject.projectDir
83
-
84
- 1.upto(5, {
85
- if (found) return true
86
- parentDir = parentDir.parentFile
87
-
88
- def androidSourcesDir = new File(
89
- parentDir,
90
- 'node_modules/react-native'
91
- )
92
-
93
- def androidPrebuiltBinaryDir = new File(
94
- parentDir,
95
- 'node_modules/react-native/android'
96
- )
97
-
98
- if (androidPrebuiltBinaryDir.exists()) {
99
- maven {
100
- url androidPrebuiltBinaryDir.toString()
101
- name androidSourcesName
102
- }
103
-
104
- logger.info(":${project.name}:reactNativeAndroidRoot ${androidPrebuiltBinaryDir.canonicalPath}")
105
- found = true
106
- } else if (androidSourcesDir.exists()) {
107
- maven {
108
- url androidSourcesDir.toString()
109
- name androidSourcesName
110
- }
111
-
112
- logger.info(":${project.name}:reactNativeAndroidRoot ${androidSourcesDir.canonicalPath}")
113
- found = true
114
- }
115
- })
116
- }
117
-
118
- if (!found) {npm
119
- throw new GradleException(
120
- "${project.name}: unable to locate React Native android sources. " +
121
- "Ensure you have you installed React Native as a dependency in your project and try again."
122
- )
123
- }
124
- }
125
-
126
-
127
- dependencies {
128
- //noinspection GradleDynamicVersion
129
- implementation "com.facebook.react:react-native:+"
130
- implementation "com.grouplinknetwork:lib-grouplinknetwork:4.+"
131
- }
132
-
133
- if (isNewArchitectureEnabled()) {
134
- react {
135
- jsRootDir = file("../src/")
136
- libraryName = "GrouplinkSdk"
137
- codegenJavaPackageName = "com.grouplinksdk"
138
- }
139
- }
140
-
1
+ buildscript {
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ mavenLocal()
6
+ maven { url 'https://jitpack.io' }
7
+ }
8
+
9
+ dependencies {
10
+ classpath 'com.android.tools.build:gradle:3.5.3'
11
+ }
12
+ }
13
+
14
+ def isNewArchitectureEnabled() {
15
+ return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
16
+ }
17
+
18
+ apply plugin: 'com.android.library'
19
+
20
+ if (isNewArchitectureEnabled()) {
21
+ apply plugin: 'com.facebook.react'
22
+ }
23
+
24
+ def getExtOrDefault(name) {
25
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['GrouplinkSdk_' + name]
26
+ }
27
+
28
+ def getExtOrIntegerDefault(name) {
29
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties['GrouplinkSdk_' + name]).toInteger()
30
+ }
31
+
32
+ android {
33
+ compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
34
+
35
+ defaultConfig {
36
+ minSdkVersion getExtOrIntegerDefault('minSdkVersion')
37
+ targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
38
+ buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
39
+ }
40
+ buildTypes {
41
+ release {
42
+ minifyEnabled false
43
+ }
44
+ }
45
+
46
+ lintOptions {
47
+ disable 'GradleCompatible'
48
+ }
49
+
50
+ compileOptions {
51
+ sourceCompatibility JavaVersion.VERSION_1_8
52
+ targetCompatibility JavaVersion.VERSION_1_8
53
+ }
54
+ }
55
+
56
+ repositories {
57
+ mavenCentral()
58
+ google()
59
+
60
+ def found = false
61
+ def defaultDir = null
62
+ def androidSourcesName = 'React Native sources'
63
+
64
+ if (rootProject.ext.has('reactNativeAndroidRoot')) {
65
+ defaultDir = rootProject.ext.get('reactNativeAndroidRoot')
66
+ } else {
67
+ defaultDir = new File(
68
+ projectDir,
69
+ '/../../../node_modules/react-native/android'
70
+ )
71
+ }
72
+
73
+ if (defaultDir.exists()) {
74
+ maven {
75
+ url defaultDir.toString()
76
+ name androidSourcesName
77
+ }
78
+
79
+ logger.info(":${project.name}:reactNativeAndroidRoot ${defaultDir.canonicalPath}")
80
+ found = true
81
+ } else {
82
+ def parentDir = rootProject.projectDir
83
+
84
+ 1.upto(5, {
85
+ if (found) return true
86
+ parentDir = parentDir.parentFile
87
+
88
+ def androidSourcesDir = new File(
89
+ parentDir,
90
+ 'node_modules/react-native'
91
+ )
92
+
93
+ def androidPrebuiltBinaryDir = new File(
94
+ parentDir,
95
+ 'node_modules/react-native/android'
96
+ )
97
+
98
+ if (androidPrebuiltBinaryDir.exists()) {
99
+ maven {
100
+ url androidPrebuiltBinaryDir.toString()
101
+ name androidSourcesName
102
+ }
103
+
104
+ logger.info(":${project.name}:reactNativeAndroidRoot ${androidPrebuiltBinaryDir.canonicalPath}")
105
+ found = true
106
+ } else if (androidSourcesDir.exists()) {
107
+ maven {
108
+ url androidSourcesDir.toString()
109
+ name androidSourcesName
110
+ }
111
+
112
+ logger.info(":${project.name}:reactNativeAndroidRoot ${androidSourcesDir.canonicalPath}")
113
+ found = true
114
+ }
115
+ })
116
+ }
117
+
118
+ if (!found) {npm
119
+ throw new GradleException(
120
+ "${project.name}: unable to locate React Native android sources. " +
121
+ "Ensure you have you installed React Native as a dependency in your project and try again."
122
+ )
123
+ }
124
+ }
125
+
126
+
127
+ dependencies {
128
+ //noinspection GradleDynamicVersion
129
+ implementation "com.facebook.react:react-native:+"
130
+ implementation "com.grouplinknetwork:lib-grouplinknetwork:4.+"
131
+ }
132
+
133
+ if (isNewArchitectureEnabled()) {
134
+ react {
135
+ jsRootDir = file("../src/")
136
+ libraryName = "GrouplinkSdk"
137
+ codegenJavaPackageName = "com.grouplinksdk"
138
+ }
139
+ }
140
+
@@ -1,5 +1,5 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
4
- zipStoreBase=GRADLE_USER_HOME
5
- zipStorePath=wrapper/dists
1
+ distributionBase=GRADLE_USER_HOME
2
+ distributionPath=wrapper/dists
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
4
+ zipStoreBase=GRADLE_USER_HOME
5
+ zipStorePath=wrapper/dists
@@ -1,5 +1,5 @@
1
- GrouplinkSdk_kotlinVersion=1.7.0
2
- GrouplinkSdk_minSdkVersion=21
3
- GrouplinkSdk_targetSdkVersion=31
4
- GrouplinkSdk_compileSdkVersion=31
5
- GrouplinkSdk_ndkversion=21.4.7075529
1
+ GrouplinkSdk_kotlinVersion=1.7.0
2
+ GrouplinkSdk_minSdkVersion=21
3
+ GrouplinkSdk_targetSdkVersion=31
4
+ GrouplinkSdk_compileSdkVersion=31
5
+ GrouplinkSdk_ndkversion=21.4.7075529