@appboxo/react-native-sdk 1.1.1 → 1.2.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/android/.gradle/8.7/checksums/checksums.lock +0 -0
- package/android/.gradle/8.7/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.7/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.7/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.7/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.7/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.7/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.7/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/8.7/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/config.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +18 -0
- package/android/.idea/jarRepositories.xml +40 -0
- package/android/.idea/kotlinc.xml +6 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/other.xml +318 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/build.gradle +1 -1
- package/android/local.properties +8 -0
- package/android/src/main/java/com/appboxo/react/RnappboxosdkModule.kt +40 -34
- package/index.d.ts +4 -2
- package/ios/Rnappboxosdk.m +8 -2
- package/js/mOpenMiniapp.js +2 -1
- package/js/mSetConfig.js +2 -1
- package/package.json +1 -1
- package/react-native-appboxosdk.podspec +1 -1
- package/CHANGELOG.md +0 -15
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="GradleMigrationSettings" migrationVersion="1" />
|
|
4
|
+
<component name="GradleSettings">
|
|
5
|
+
<option name="linkedExternalProjectsSettings">
|
|
6
|
+
<GradleProjectSettings>
|
|
7
|
+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
8
|
+
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
|
9
|
+
<option name="modules">
|
|
10
|
+
<set>
|
|
11
|
+
<option value="$PROJECT_DIR$" />
|
|
12
|
+
</set>
|
|
13
|
+
</option>
|
|
14
|
+
<option name="resolveExternalAnnotations" value="false" />
|
|
15
|
+
</GradleProjectSettings>
|
|
16
|
+
</option>
|
|
17
|
+
</component>
|
|
18
|
+
</project>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="RemoteRepositoriesConfiguration">
|
|
4
|
+
<remote-repository>
|
|
5
|
+
<option name="id" value="central" />
|
|
6
|
+
<option name="name" value="Maven Central repository" />
|
|
7
|
+
<option name="url" value="https://repo1.maven.org/maven2" />
|
|
8
|
+
</remote-repository>
|
|
9
|
+
<remote-repository>
|
|
10
|
+
<option name="id" value="jboss.community" />
|
|
11
|
+
<option name="name" value="JBoss Community repository" />
|
|
12
|
+
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
|
13
|
+
</remote-repository>
|
|
14
|
+
<remote-repository>
|
|
15
|
+
<option name="id" value="MavenRepo" />
|
|
16
|
+
<option name="name" value="MavenRepo" />
|
|
17
|
+
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
|
18
|
+
</remote-repository>
|
|
19
|
+
<remote-repository>
|
|
20
|
+
<option name="id" value="maven2" />
|
|
21
|
+
<option name="name" value="maven2" />
|
|
22
|
+
<option name="url" value="https://maven.pkg.github.com/Appboxo/android-sdk-packages" />
|
|
23
|
+
</remote-repository>
|
|
24
|
+
<remote-repository>
|
|
25
|
+
<option name="id" value="BintrayJCenter" />
|
|
26
|
+
<option name="name" value="BintrayJCenter" />
|
|
27
|
+
<option name="url" value="https://jcenter.bintray.com/" />
|
|
28
|
+
</remote-repository>
|
|
29
|
+
<remote-repository>
|
|
30
|
+
<option name="id" value="maven" />
|
|
31
|
+
<option name="name" value="maven" />
|
|
32
|
+
<option name="url" value="https://jitpack.io" />
|
|
33
|
+
</remote-repository>
|
|
34
|
+
<remote-repository>
|
|
35
|
+
<option name="id" value="Google" />
|
|
36
|
+
<option name="name" value="Google" />
|
|
37
|
+
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
|
|
38
|
+
</remote-repository>
|
|
39
|
+
</component>
|
|
40
|
+
</project>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<project version="4">
|
|
2
|
+
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
3
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
|
|
4
|
+
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ProjectType">
|
|
7
|
+
<option name="id" value="Android" />
|
|
8
|
+
</component>
|
|
9
|
+
</project>
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="direct_access_persist.xml">
|
|
4
|
+
<option name="deviceSelectionList">
|
|
5
|
+
<list>
|
|
6
|
+
<PersistentDeviceSelectionData>
|
|
7
|
+
<option name="api" value="27" />
|
|
8
|
+
<option name="brand" value="DOCOMO" />
|
|
9
|
+
<option name="codename" value="F01L" />
|
|
10
|
+
<option name="id" value="F01L" />
|
|
11
|
+
<option name="manufacturer" value="FUJITSU" />
|
|
12
|
+
<option name="name" value="F-01L" />
|
|
13
|
+
<option name="screenDensity" value="360" />
|
|
14
|
+
<option name="screenX" value="720" />
|
|
15
|
+
<option name="screenY" value="1280" />
|
|
16
|
+
</PersistentDeviceSelectionData>
|
|
17
|
+
<PersistentDeviceSelectionData>
|
|
18
|
+
<option name="api" value="28" />
|
|
19
|
+
<option name="brand" value="DOCOMO" />
|
|
20
|
+
<option name="codename" value="SH-01L" />
|
|
21
|
+
<option name="id" value="SH-01L" />
|
|
22
|
+
<option name="manufacturer" value="SHARP" />
|
|
23
|
+
<option name="name" value="AQUOS sense2 SH-01L" />
|
|
24
|
+
<option name="screenDensity" value="480" />
|
|
25
|
+
<option name="screenX" value="1080" />
|
|
26
|
+
<option name="screenY" value="2160" />
|
|
27
|
+
</PersistentDeviceSelectionData>
|
|
28
|
+
<PersistentDeviceSelectionData>
|
|
29
|
+
<option name="api" value="31" />
|
|
30
|
+
<option name="brand" value="samsung" />
|
|
31
|
+
<option name="codename" value="a51" />
|
|
32
|
+
<option name="id" value="a51" />
|
|
33
|
+
<option name="manufacturer" value="Samsung" />
|
|
34
|
+
<option name="name" value="Galaxy A51" />
|
|
35
|
+
<option name="screenDensity" value="420" />
|
|
36
|
+
<option name="screenX" value="1080" />
|
|
37
|
+
<option name="screenY" value="2400" />
|
|
38
|
+
</PersistentDeviceSelectionData>
|
|
39
|
+
<PersistentDeviceSelectionData>
|
|
40
|
+
<option name="api" value="34" />
|
|
41
|
+
<option name="brand" value="google" />
|
|
42
|
+
<option name="codename" value="akita" />
|
|
43
|
+
<option name="id" value="akita" />
|
|
44
|
+
<option name="manufacturer" value="Google" />
|
|
45
|
+
<option name="name" value="Pixel 8a" />
|
|
46
|
+
<option name="screenDensity" value="420" />
|
|
47
|
+
<option name="screenX" value="1080" />
|
|
48
|
+
<option name="screenY" value="2400" />
|
|
49
|
+
</PersistentDeviceSelectionData>
|
|
50
|
+
<PersistentDeviceSelectionData>
|
|
51
|
+
<option name="api" value="33" />
|
|
52
|
+
<option name="brand" value="samsung" />
|
|
53
|
+
<option name="codename" value="b0q" />
|
|
54
|
+
<option name="id" value="b0q" />
|
|
55
|
+
<option name="manufacturer" value="Samsung" />
|
|
56
|
+
<option name="name" value="Galaxy S22 Ultra" />
|
|
57
|
+
<option name="screenDensity" value="600" />
|
|
58
|
+
<option name="screenX" value="1440" />
|
|
59
|
+
<option name="screenY" value="3088" />
|
|
60
|
+
</PersistentDeviceSelectionData>
|
|
61
|
+
<PersistentDeviceSelectionData>
|
|
62
|
+
<option name="api" value="32" />
|
|
63
|
+
<option name="brand" value="google" />
|
|
64
|
+
<option name="codename" value="bluejay" />
|
|
65
|
+
<option name="id" value="bluejay" />
|
|
66
|
+
<option name="manufacturer" value="Google" />
|
|
67
|
+
<option name="name" value="Pixel 6a" />
|
|
68
|
+
<option name="screenDensity" value="420" />
|
|
69
|
+
<option name="screenX" value="1080" />
|
|
70
|
+
<option name="screenY" value="2400" />
|
|
71
|
+
</PersistentDeviceSelectionData>
|
|
72
|
+
<PersistentDeviceSelectionData>
|
|
73
|
+
<option name="api" value="34" />
|
|
74
|
+
<option name="brand" value="google" />
|
|
75
|
+
<option name="codename" value="caiman" />
|
|
76
|
+
<option name="id" value="caiman" />
|
|
77
|
+
<option name="manufacturer" value="Google" />
|
|
78
|
+
<option name="name" value="Pixel 9 Pro" />
|
|
79
|
+
<option name="screenDensity" value="360" />
|
|
80
|
+
<option name="screenX" value="960" />
|
|
81
|
+
<option name="screenY" value="2142" />
|
|
82
|
+
</PersistentDeviceSelectionData>
|
|
83
|
+
<PersistentDeviceSelectionData>
|
|
84
|
+
<option name="api" value="34" />
|
|
85
|
+
<option name="brand" value="google" />
|
|
86
|
+
<option name="codename" value="comet" />
|
|
87
|
+
<option name="id" value="comet" />
|
|
88
|
+
<option name="manufacturer" value="Google" />
|
|
89
|
+
<option name="name" value="Pixel 9 Pro Fold" />
|
|
90
|
+
<option name="screenDensity" value="390" />
|
|
91
|
+
<option name="screenX" value="2076" />
|
|
92
|
+
<option name="screenY" value="2152" />
|
|
93
|
+
</PersistentDeviceSelectionData>
|
|
94
|
+
<PersistentDeviceSelectionData>
|
|
95
|
+
<option name="api" value="29" />
|
|
96
|
+
<option name="brand" value="samsung" />
|
|
97
|
+
<option name="codename" value="crownqlteue" />
|
|
98
|
+
<option name="id" value="crownqlteue" />
|
|
99
|
+
<option name="manufacturer" value="Samsung" />
|
|
100
|
+
<option name="name" value="Galaxy Note9" />
|
|
101
|
+
<option name="screenDensity" value="420" />
|
|
102
|
+
<option name="screenX" value="2220" />
|
|
103
|
+
<option name="screenY" value="1080" />
|
|
104
|
+
</PersistentDeviceSelectionData>
|
|
105
|
+
<PersistentDeviceSelectionData>
|
|
106
|
+
<option name="api" value="34" />
|
|
107
|
+
<option name="brand" value="samsung" />
|
|
108
|
+
<option name="codename" value="dm3q" />
|
|
109
|
+
<option name="id" value="dm3q" />
|
|
110
|
+
<option name="manufacturer" value="Samsung" />
|
|
111
|
+
<option name="name" value="Galaxy S23 Ultra" />
|
|
112
|
+
<option name="screenDensity" value="600" />
|
|
113
|
+
<option name="screenX" value="1440" />
|
|
114
|
+
<option name="screenY" value="3088" />
|
|
115
|
+
</PersistentDeviceSelectionData>
|
|
116
|
+
<PersistentDeviceSelectionData>
|
|
117
|
+
<option name="api" value="34" />
|
|
118
|
+
<option name="brand" value="samsung" />
|
|
119
|
+
<option name="codename" value="e1q" />
|
|
120
|
+
<option name="id" value="e1q" />
|
|
121
|
+
<option name="manufacturer" value="Samsung" />
|
|
122
|
+
<option name="name" value="Galaxy S24" />
|
|
123
|
+
<option name="screenDensity" value="480" />
|
|
124
|
+
<option name="screenX" value="1080" />
|
|
125
|
+
<option name="screenY" value="2340" />
|
|
126
|
+
</PersistentDeviceSelectionData>
|
|
127
|
+
<PersistentDeviceSelectionData>
|
|
128
|
+
<option name="api" value="33" />
|
|
129
|
+
<option name="brand" value="google" />
|
|
130
|
+
<option name="codename" value="felix" />
|
|
131
|
+
<option name="id" value="felix" />
|
|
132
|
+
<option name="manufacturer" value="Google" />
|
|
133
|
+
<option name="name" value="Pixel Fold" />
|
|
134
|
+
<option name="screenDensity" value="420" />
|
|
135
|
+
<option name="screenX" value="2208" />
|
|
136
|
+
<option name="screenY" value="1840" />
|
|
137
|
+
</PersistentDeviceSelectionData>
|
|
138
|
+
<PersistentDeviceSelectionData>
|
|
139
|
+
<option name="api" value="34" />
|
|
140
|
+
<option name="brand" value="google" />
|
|
141
|
+
<option name="codename" value="felix" />
|
|
142
|
+
<option name="id" value="felix" />
|
|
143
|
+
<option name="manufacturer" value="Google" />
|
|
144
|
+
<option name="name" value="Pixel Fold" />
|
|
145
|
+
<option name="screenDensity" value="420" />
|
|
146
|
+
<option name="screenX" value="2208" />
|
|
147
|
+
<option name="screenY" value="1840" />
|
|
148
|
+
</PersistentDeviceSelectionData>
|
|
149
|
+
<PersistentDeviceSelectionData>
|
|
150
|
+
<option name="api" value="33" />
|
|
151
|
+
<option name="brand" value="google" />
|
|
152
|
+
<option name="codename" value="felix_camera" />
|
|
153
|
+
<option name="id" value="felix_camera" />
|
|
154
|
+
<option name="manufacturer" value="Google" />
|
|
155
|
+
<option name="name" value="Pixel Fold (Camera-enabled)" />
|
|
156
|
+
<option name="screenDensity" value="420" />
|
|
157
|
+
<option name="screenX" value="2208" />
|
|
158
|
+
<option name="screenY" value="1840" />
|
|
159
|
+
</PersistentDeviceSelectionData>
|
|
160
|
+
<PersistentDeviceSelectionData>
|
|
161
|
+
<option name="api" value="33" />
|
|
162
|
+
<option name="brand" value="samsung" />
|
|
163
|
+
<option name="codename" value="gts8uwifi" />
|
|
164
|
+
<option name="id" value="gts8uwifi" />
|
|
165
|
+
<option name="manufacturer" value="Samsung" />
|
|
166
|
+
<option name="name" value="Galaxy Tab S8 Ultra" />
|
|
167
|
+
<option name="screenDensity" value="320" />
|
|
168
|
+
<option name="screenX" value="1848" />
|
|
169
|
+
<option name="screenY" value="2960" />
|
|
170
|
+
</PersistentDeviceSelectionData>
|
|
171
|
+
<PersistentDeviceSelectionData>
|
|
172
|
+
<option name="api" value="34" />
|
|
173
|
+
<option name="brand" value="google" />
|
|
174
|
+
<option name="codename" value="husky" />
|
|
175
|
+
<option name="id" value="husky" />
|
|
176
|
+
<option name="manufacturer" value="Google" />
|
|
177
|
+
<option name="name" value="Pixel 8 Pro" />
|
|
178
|
+
<option name="screenDensity" value="390" />
|
|
179
|
+
<option name="screenX" value="1008" />
|
|
180
|
+
<option name="screenY" value="2244" />
|
|
181
|
+
</PersistentDeviceSelectionData>
|
|
182
|
+
<PersistentDeviceSelectionData>
|
|
183
|
+
<option name="api" value="30" />
|
|
184
|
+
<option name="brand" value="motorola" />
|
|
185
|
+
<option name="codename" value="java" />
|
|
186
|
+
<option name="id" value="java" />
|
|
187
|
+
<option name="manufacturer" value="Motorola" />
|
|
188
|
+
<option name="name" value="G20" />
|
|
189
|
+
<option name="screenDensity" value="280" />
|
|
190
|
+
<option name="screenX" value="720" />
|
|
191
|
+
<option name="screenY" value="1600" />
|
|
192
|
+
</PersistentDeviceSelectionData>
|
|
193
|
+
<PersistentDeviceSelectionData>
|
|
194
|
+
<option name="api" value="34" />
|
|
195
|
+
<option name="brand" value="google" />
|
|
196
|
+
<option name="codename" value="komodo" />
|
|
197
|
+
<option name="id" value="komodo" />
|
|
198
|
+
<option name="manufacturer" value="Google" />
|
|
199
|
+
<option name="name" value="Pixel 9 Pro XL" />
|
|
200
|
+
<option name="screenDensity" value="360" />
|
|
201
|
+
<option name="screenX" value="1008" />
|
|
202
|
+
<option name="screenY" value="2244" />
|
|
203
|
+
</PersistentDeviceSelectionData>
|
|
204
|
+
<PersistentDeviceSelectionData>
|
|
205
|
+
<option name="api" value="33" />
|
|
206
|
+
<option name="brand" value="google" />
|
|
207
|
+
<option name="codename" value="lynx" />
|
|
208
|
+
<option name="id" value="lynx" />
|
|
209
|
+
<option name="manufacturer" value="Google" />
|
|
210
|
+
<option name="name" value="Pixel 7a" />
|
|
211
|
+
<option name="screenDensity" value="420" />
|
|
212
|
+
<option name="screenX" value="1080" />
|
|
213
|
+
<option name="screenY" value="2400" />
|
|
214
|
+
</PersistentDeviceSelectionData>
|
|
215
|
+
<PersistentDeviceSelectionData>
|
|
216
|
+
<option name="api" value="31" />
|
|
217
|
+
<option name="brand" value="google" />
|
|
218
|
+
<option name="codename" value="oriole" />
|
|
219
|
+
<option name="id" value="oriole" />
|
|
220
|
+
<option name="manufacturer" value="Google" />
|
|
221
|
+
<option name="name" value="Pixel 6" />
|
|
222
|
+
<option name="screenDensity" value="420" />
|
|
223
|
+
<option name="screenX" value="1080" />
|
|
224
|
+
<option name="screenY" value="2400" />
|
|
225
|
+
</PersistentDeviceSelectionData>
|
|
226
|
+
<PersistentDeviceSelectionData>
|
|
227
|
+
<option name="api" value="33" />
|
|
228
|
+
<option name="brand" value="google" />
|
|
229
|
+
<option name="codename" value="panther" />
|
|
230
|
+
<option name="id" value="panther" />
|
|
231
|
+
<option name="manufacturer" value="Google" />
|
|
232
|
+
<option name="name" value="Pixel 7" />
|
|
233
|
+
<option name="screenDensity" value="420" />
|
|
234
|
+
<option name="screenX" value="1080" />
|
|
235
|
+
<option name="screenY" value="2400" />
|
|
236
|
+
</PersistentDeviceSelectionData>
|
|
237
|
+
<PersistentDeviceSelectionData>
|
|
238
|
+
<option name="api" value="34" />
|
|
239
|
+
<option name="brand" value="samsung" />
|
|
240
|
+
<option name="codename" value="q5q" />
|
|
241
|
+
<option name="id" value="q5q" />
|
|
242
|
+
<option name="manufacturer" value="Samsung" />
|
|
243
|
+
<option name="name" value="Galaxy Z Fold5" />
|
|
244
|
+
<option name="screenDensity" value="420" />
|
|
245
|
+
<option name="screenX" value="1812" />
|
|
246
|
+
<option name="screenY" value="2176" />
|
|
247
|
+
</PersistentDeviceSelectionData>
|
|
248
|
+
<PersistentDeviceSelectionData>
|
|
249
|
+
<option name="api" value="30" />
|
|
250
|
+
<option name="brand" value="google" />
|
|
251
|
+
<option name="codename" value="r11" />
|
|
252
|
+
<option name="id" value="r11" />
|
|
253
|
+
<option name="manufacturer" value="Google" />
|
|
254
|
+
<option name="name" value="Pixel Watch" />
|
|
255
|
+
<option name="screenDensity" value="320" />
|
|
256
|
+
<option name="screenX" value="384" />
|
|
257
|
+
<option name="screenY" value="384" />
|
|
258
|
+
<option name="type" value="WEAR_OS" />
|
|
259
|
+
</PersistentDeviceSelectionData>
|
|
260
|
+
<PersistentDeviceSelectionData>
|
|
261
|
+
<option name="api" value="30" />
|
|
262
|
+
<option name="brand" value="google" />
|
|
263
|
+
<option name="codename" value="redfin" />
|
|
264
|
+
<option name="id" value="redfin" />
|
|
265
|
+
<option name="manufacturer" value="Google" />
|
|
266
|
+
<option name="name" value="Pixel 5" />
|
|
267
|
+
<option name="screenDensity" value="440" />
|
|
268
|
+
<option name="screenX" value="1080" />
|
|
269
|
+
<option name="screenY" value="2340" />
|
|
270
|
+
</PersistentDeviceSelectionData>
|
|
271
|
+
<PersistentDeviceSelectionData>
|
|
272
|
+
<option name="api" value="34" />
|
|
273
|
+
<option name="brand" value="google" />
|
|
274
|
+
<option name="codename" value="shiba" />
|
|
275
|
+
<option name="id" value="shiba" />
|
|
276
|
+
<option name="manufacturer" value="Google" />
|
|
277
|
+
<option name="name" value="Pixel 8" />
|
|
278
|
+
<option name="screenDensity" value="420" />
|
|
279
|
+
<option name="screenX" value="1080" />
|
|
280
|
+
<option name="screenY" value="2400" />
|
|
281
|
+
</PersistentDeviceSelectionData>
|
|
282
|
+
<PersistentDeviceSelectionData>
|
|
283
|
+
<option name="api" value="33" />
|
|
284
|
+
<option name="brand" value="google" />
|
|
285
|
+
<option name="codename" value="tangorpro" />
|
|
286
|
+
<option name="id" value="tangorpro" />
|
|
287
|
+
<option name="manufacturer" value="Google" />
|
|
288
|
+
<option name="name" value="Pixel Tablet" />
|
|
289
|
+
<option name="screenDensity" value="320" />
|
|
290
|
+
<option name="screenX" value="1600" />
|
|
291
|
+
<option name="screenY" value="2560" />
|
|
292
|
+
</PersistentDeviceSelectionData>
|
|
293
|
+
<PersistentDeviceSelectionData>
|
|
294
|
+
<option name="api" value="34" />
|
|
295
|
+
<option name="brand" value="google" />
|
|
296
|
+
<option name="codename" value="tokay" />
|
|
297
|
+
<option name="id" value="tokay" />
|
|
298
|
+
<option name="manufacturer" value="Google" />
|
|
299
|
+
<option name="name" value="Pixel 9" />
|
|
300
|
+
<option name="screenDensity" value="420" />
|
|
301
|
+
<option name="screenX" value="1080" />
|
|
302
|
+
<option name="screenY" value="2424" />
|
|
303
|
+
</PersistentDeviceSelectionData>
|
|
304
|
+
<PersistentDeviceSelectionData>
|
|
305
|
+
<option name="api" value="29" />
|
|
306
|
+
<option name="brand" value="samsung" />
|
|
307
|
+
<option name="codename" value="x1q" />
|
|
308
|
+
<option name="id" value="x1q" />
|
|
309
|
+
<option name="manufacturer" value="Samsung" />
|
|
310
|
+
<option name="name" value="Galaxy S20" />
|
|
311
|
+
<option name="screenDensity" value="480" />
|
|
312
|
+
<option name="screenX" value="1440" />
|
|
313
|
+
<option name="screenY" value="3200" />
|
|
314
|
+
</PersistentDeviceSelectionData>
|
|
315
|
+
</list>
|
|
316
|
+
</option>
|
|
317
|
+
</component>
|
|
318
|
+
</project>
|
package/android/build.gradle
CHANGED
|
@@ -137,7 +137,7 @@ dependencies {
|
|
|
137
137
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
138
138
|
//noinspection GradleDynamicVersion
|
|
139
139
|
implementation 'com.facebook.react:react-native:+' // From node_modules
|
|
140
|
-
implementation('com.appboxo:sdk:1.
|
|
140
|
+
implementation('com.appboxo:sdk:1.6.0') {
|
|
141
141
|
exclude group: 'com.google.android.gms', module: 'play-services-location'
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
#Fri Oct 13 10:51:45 KGT 2023
|
|
8
|
+
sdk.dir=/Users/birbit/Library/Android/sdk
|
|
@@ -61,7 +61,8 @@ class RnappboxosdkModule(reactContext: ReactApplicationContext) :
|
|
|
61
61
|
theme: String?,
|
|
62
62
|
isDebug: Boolean,
|
|
63
63
|
showPermissionsPage: Boolean,
|
|
64
|
-
showClearCache: Boolean
|
|
64
|
+
showClearCache: Boolean,
|
|
65
|
+
showAboutPage: Boolean
|
|
65
66
|
) {
|
|
66
67
|
val globalTheme: Config.Theme = when (theme) {
|
|
67
68
|
"light" -> Config.Theme.LIGHT
|
|
@@ -79,6 +80,7 @@ class RnappboxosdkModule(reactContext: ReactApplicationContext) :
|
|
|
79
80
|
.setLanguage(language)
|
|
80
81
|
.permissionsPage(showPermissionsPage)
|
|
81
82
|
.showClearCache(showClearCache)
|
|
83
|
+
.showAboutPage(showAboutPage)
|
|
82
84
|
.debug(isDebug)
|
|
83
85
|
.build()
|
|
84
86
|
)
|
|
@@ -92,43 +94,47 @@ class RnappboxosdkModule(reactContext: ReactApplicationContext) :
|
|
|
92
94
|
extraUrlParams: ReadableMap?,
|
|
93
95
|
urlSuffix: String?,
|
|
94
96
|
colors: ReadableMap?,
|
|
95
|
-
enableSplash: Boolean
|
|
97
|
+
enableSplash: Boolean,
|
|
98
|
+
saveState:Boolean
|
|
96
99
|
) {
|
|
97
|
-
|
|
98
|
-
.
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
100
|
+
handler.post {
|
|
101
|
+
val miniapp: Miniapp = Appboxo.getMiniapp(appId)
|
|
102
|
+
.setCustomEventListener(this)
|
|
103
|
+
.setPaymentEventListener(this)
|
|
104
|
+
.setAuthListener(this)
|
|
105
|
+
.setLifecycleListener(this)
|
|
106
|
+
if (data != null) miniapp.setData(MapUtil.toMap(data))
|
|
107
|
+
val configBuilder = MiniappConfig.Builder()
|
|
108
|
+
if (theme != null) {
|
|
109
|
+
val miniappTheme: Config.Theme? = when (theme) {
|
|
110
|
+
"light" -> Config.Theme.LIGHT
|
|
111
|
+
"dark" -> Config.Theme.DARK
|
|
112
|
+
"system" -> Config.Theme.SYSTEM
|
|
113
|
+
else -> null
|
|
114
|
+
}
|
|
115
|
+
if (miniappTheme != null) {
|
|
116
|
+
configBuilder.setTheme(miniappTheme)
|
|
117
|
+
}
|
|
110
118
|
}
|
|
111
|
-
if (
|
|
112
|
-
|
|
119
|
+
if (extraUrlParams != null) {
|
|
120
|
+
val map: Map<String, Any> = MapUtil.toMap(extraUrlParams)
|
|
121
|
+
val stringMap: MutableMap<String, String> = HashMap()
|
|
122
|
+
for ((key, value) in map) stringMap[key] = value.toString()
|
|
123
|
+
configBuilder.setExtraUrlParams(stringMap)
|
|
113
124
|
}
|
|
125
|
+
urlSuffix?.also { suffix -> configBuilder.setUrlSuffix(suffix) }
|
|
126
|
+
if (colors != null) {
|
|
127
|
+
configBuilder.setColors(
|
|
128
|
+
colors.getString("primaryColor") ?: "",
|
|
129
|
+
colors.getString("secondaryColor") ?: "",
|
|
130
|
+
colors.getString("tertiaryColor") ?: "",
|
|
131
|
+
)
|
|
132
|
+
}
|
|
133
|
+
configBuilder.enableSplash(enableSplash)
|
|
134
|
+
configBuilder.saveState(saveState)
|
|
135
|
+
miniapp.setConfig(configBuilder.build())
|
|
136
|
+
miniapp.open(reactContext)
|
|
114
137
|
}
|
|
115
|
-
if (extraUrlParams != null) {
|
|
116
|
-
val map: Map<String, Any> = MapUtil.toMap(extraUrlParams)
|
|
117
|
-
val stringMap: MutableMap<String, String> = HashMap()
|
|
118
|
-
for ((key, value) in map) stringMap[key] = value.toString()
|
|
119
|
-
configBuilder.setExtraUrlParams(stringMap)
|
|
120
|
-
}
|
|
121
|
-
urlSuffix?.also { suffix -> configBuilder.setUrlSuffix(suffix) }
|
|
122
|
-
if (colors != null) {
|
|
123
|
-
configBuilder.setColors(
|
|
124
|
-
colors.getString("primaryColor") ?: "",
|
|
125
|
-
colors.getString("secondaryColor") ?: "",
|
|
126
|
-
colors.getString("tertiaryColor") ?: "",
|
|
127
|
-
)
|
|
128
|
-
}
|
|
129
|
-
configBuilder.enableSplash(enableSplash)
|
|
130
|
-
miniapp.setConfig(configBuilder.build())
|
|
131
|
-
miniapp.open(reactContext)
|
|
132
138
|
}
|
|
133
139
|
|
|
134
140
|
@ReactMethod
|
package/index.d.ts
CHANGED
|
@@ -37,7 +37,8 @@ declare module '@appboxo/react-native-sdk' {
|
|
|
37
37
|
theme?: 'dark' | 'light',
|
|
38
38
|
isDebug?: boolean,
|
|
39
39
|
showPermissionsPage? : boolean,
|
|
40
|
-
showClearCache?: boolean
|
|
40
|
+
showClearCache?: boolean,
|
|
41
|
+
showAboutPage?: boolean
|
|
41
42
|
}
|
|
42
43
|
): void
|
|
43
44
|
|
|
@@ -56,7 +57,8 @@ declare module '@appboxo/react-native-sdk' {
|
|
|
56
57
|
extraUrlParams?: { [key: string]: string },
|
|
57
58
|
urlSuffix?: string,
|
|
58
59
|
colors?: { primaryColor: string, secondaryColor: string, tertiaryColor: string },
|
|
59
|
-
enableSplash?: boolean
|
|
60
|
+
enableSplash?: boolean,
|
|
61
|
+
saveState?: boolean
|
|
60
62
|
},
|
|
61
63
|
): void
|
|
62
64
|
|
package/ios/Rnappboxosdk.m
CHANGED
|
@@ -32,7 +32,7 @@ limitations under the License.
|
|
|
32
32
|
RCT_EXPORT_MODULE()
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
RCT_EXPORT_METHOD(setConfig:(NSString *)clientId userId:(NSString *)userId language:(NSString *)language sandboxMode:(BOOL)sandboxMode enableMultitaskMode:(BOOL)enableMultitaskMode theme:(NSString *)theme isDebug:(BOOL)isDebug showPermissionsPage:(BOOL)showPermissionsPage showClearCache:(BOOL)showClearCache)
|
|
35
|
+
RCT_EXPORT_METHOD(setConfig:(NSString *)clientId userId:(NSString *)userId language:(NSString *)language sandboxMode:(BOOL)sandboxMode enableMultitaskMode:(BOOL)enableMultitaskMode theme:(NSString *)theme isDebug:(BOOL)isDebug showPermissionsPage:(BOOL)showPermissionsPage showClearCache:(BOOL)showClearCache showAboutPage:(BOOL)showAboutPage)
|
|
36
36
|
{
|
|
37
37
|
NSArray *themes = @[@"dark", @"light", @"system"];
|
|
38
38
|
|
|
@@ -48,11 +48,12 @@ RCT_EXPORT_METHOD(setConfig:(NSString *)clientId userId:(NSString *)userId langu
|
|
|
48
48
|
config.sandboxMode = sandboxMode;
|
|
49
49
|
config.permissionsPage = showPermissionsPage;
|
|
50
50
|
config.showClearCache = showClearCache;
|
|
51
|
+
config.showAboutPage = showAboutPage;
|
|
51
52
|
|
|
52
53
|
[[Appboxo shared] setConfig: config];
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
RCT_EXPORT_METHOD(openMiniapp:(NSString *)appId data:(nullable NSDictionary<NSString *,id> *)data theme:(nullable NSString *)theme extraUrlParams:(nullable NSDictionary<NSString *,id> *)extraUrlParams urlSuffix:(nullable NSString *)urlSuffix colors:(nullable NSDictionary<NSString *,id> *)colors enableSplash:(BOOL)enableSplash)
|
|
56
|
+
RCT_EXPORT_METHOD(openMiniapp:(NSString *)appId data:(nullable NSDictionary<NSString *,id> *)data theme:(nullable NSString *)theme extraUrlParams:(nullable NSDictionary<NSString *,id> *)extraUrlParams urlSuffix:(nullable NSString *)urlSuffix colors:(nullable NSDictionary<NSString *,id> *)colors enableSplash:(BOOL)enableSplash saveState:(BOOL)saveState)
|
|
56
57
|
{
|
|
57
58
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
58
59
|
Miniapp *miniapp = [[Appboxo shared] getMiniappWithAppId: appId];
|
|
@@ -62,6 +63,11 @@ RCT_EXPORT_METHOD(openMiniapp:(NSString *)appId data:(nullable NSDictionary<NSSt
|
|
|
62
63
|
MiniappConfig *miniappConfig = [[MiniappConfig alloc] init];
|
|
63
64
|
[miniappConfig enableSplash: enableSplash];
|
|
64
65
|
[miniappConfig setExtraParams:extraUrlParams];
|
|
66
|
+
miniappConfig.saveState = saveState;
|
|
67
|
+
|
|
68
|
+
if (urlSuffix != NULL) {
|
|
69
|
+
miniappConfig.urlSuffix = urlSuffix;
|
|
70
|
+
}
|
|
65
71
|
|
|
66
72
|
if (theme != NULL) {
|
|
67
73
|
NSArray *themes = @[@"dark", @"light", @"system"];
|
package/js/mOpenMiniapp.js
CHANGED
package/js/mSetConfig.js
CHANGED
|
@@ -13,7 +13,8 @@ const mSetConfig = (clientId, options) => {
|
|
|
13
13
|
options?.theme === 'dark' || options?.theme === 'light' ? options?.theme : 'system',
|
|
14
14
|
options?.isDebug ?? false,
|
|
15
15
|
options?.showPermissionsPage ?? true,
|
|
16
|
-
options?.showClearCache ?? true
|
|
16
|
+
options?.showClearCache ?? true,
|
|
17
|
+
options?.showAboutPage ?? true
|
|
17
18
|
)
|
|
18
19
|
}
|
|
19
20
|
|
package/package.json
CHANGED
package/CHANGELOG.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
## [1.1.1]
|
|
3
|
-
- add enableSplash param to openMiniapp
|
|
4
|
-
|
|
5
|
-
## [1.1.0]
|
|
6
|
-
- native android sdk ver. 1.5.16
|
|
7
|
-
- native ios sdk ver. 1.5.11
|
|
8
|
-
- add Consent Management
|
|
9
|
-
- add language support
|
|
10
|
-
- add sandbox mode
|
|
11
|
-
- save state when user close the miniapp
|
|
12
|
-
|
|
13
|
-
## [1.0.40] - 2023-11-24
|
|
14
|
-
- native ios sdk ver. 1.4.13
|
|
15
|
-
- native android sdk ver. 1.4.21
|