react-native-gemius-plugin 1.7.3 → 2.0.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 +20 -0
- package/LRTGemiusPlugin.podspec +21 -0
- package/README.md +23 -30
- package/android/build.gradle +74 -69
- package/android/src/main/AndroidManifest.xml +1 -3
- package/android/src/main/java/com/gemiusplugin/LRTGemiusPluginModule.kt +161 -0
- package/android/src/main/java/com/gemiusplugin/LRTGemiusPluginPackage.kt +31 -0
- package/ios/Frameworks/GemiusSDK.xcframework/Info.plist +9 -5
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/GemiusSDK +0 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/Config.h +21 -2
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Info.plist +0 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Modules/module.modulemap +1 -1
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/PrivacyInfo.xcprivacy +48 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/GemiusSDK +0 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/Config.h +21 -2
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Info.plist +0 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Modules/module.modulemap +1 -1
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/PrivacyInfo.xcprivacy +48 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/_CodeSignature/CodeResources +14 -87
- package/ios/LRTGemiusPlugin.h +5 -0
- package/ios/LRTGemiusPlugin.mm +179 -0
- package/lib/module/NativeLRTGemiusPlugin.js +5 -0
- package/lib/module/NativeLRTGemiusPlugin.js.map +1 -0
- package/{index.js → lib/module/index.js} +16 -29
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/NativeLRTGemiusPlugin.d.ts +22 -0
- package/lib/typescript/src/NativeLRTGemiusPlugin.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +22 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +156 -17
- package/src/NativeLRTGemiusPlugin.ts +48 -0
- package/src/index.tsx +105 -0
- package/.gitattributes +0 -1
- package/android/.classpath +0 -6
- package/android/.gradle/9.0.0/checksums/checksums.lock +0 -0
- package/android/.gradle/9.0.0/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/9.0.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/9.0.0/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/9.0.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/9.0.0/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/9.0.0/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/config.properties +0 -2
- package/android/.gradle/file-system.probe +0 -0
- package/android/.gradle/gradle.properties +0 -43
- package/android/.gradle/noVersion/buildLogic.lock +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/AndroidProjectSystem.xml +0 -6
- package/android/.idea/caches/deviceStreaming.xml +0 -1414
- package/android/.idea/compiler.xml +0 -19
- package/android/.idea/copilot.data.migration.agent.xml +0 -6
- package/android/.idea/gradle.xml +0 -18
- package/android/.idea/jarRepositories.xml +0 -55
- package/android/.idea/kotlinc.xml +0 -6
- package/android/.idea/migrations.xml +0 -10
- package/android/.idea/misc.xml +0 -10
- package/android/.idea/modules/android.androidTest.iml +0 -15
- package/android/.idea/modules/android.iml +0 -21
- package/android/.idea/modules/android.main.iml +0 -15
- package/android/.idea/modules/android.unitTest.iml +0 -15
- package/android/.idea/modules.xml +0 -11
- package/android/.idea/runConfigurations.xml +0 -17
- package/android/.idea/vcs.xml +0 -6
- package/android/.project +0 -34
- package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
- package/android/README.md +0 -14
- package/android/build/reports/problems/problems-report.html +0 -663
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/android/gradle.properties +0 -39
- package/android/gradlew +0 -251
- package/android/gradlew.bat +0 -99
- package/android/local.properties +0 -8
- package/android/src/main/java/com/reactlibrary/GemiusPluginModule.java +0 -170
- package/android/src/main/java/com/reactlibrary/GemiusPluginPackage.java +0 -20
- package/index.d.ts +0 -27
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/GemiusPlugin.h +0 -5
- package/ios/GemiusPlugin.m +0 -163
- package/ios/GemiusPlugin.xcodeproj/project.pbxproj +0 -313
- package/ios/GemiusPlugin.xcodeproj/xcshareddata/xcschemes/GemiusPlugin.xcscheme +0 -67
- package/ios/GemiusPlugin.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/GemiusPlugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/GemiusPlugin.xcworkspace/xcuserdata/kestasvenslauskas.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/react-native-gemius-plugin.podspec +0 -30
|
@@ -0,0 +1,48 @@
|
|
|
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>NSPrivacyTracking</key>
|
|
6
|
+
<false/>
|
|
7
|
+
<key>NSPrivacyTrackingDomains</key>
|
|
8
|
+
<array/>
|
|
9
|
+
<key>NSPrivacyCollectedDataTypes</key>
|
|
10
|
+
<array>
|
|
11
|
+
<dict>
|
|
12
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
13
|
+
<string>NSPrivacyCollectedDataTypeDeviceID</string>
|
|
14
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
15
|
+
<false/>
|
|
16
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
17
|
+
<false/>
|
|
18
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
19
|
+
<array>
|
|
20
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
21
|
+
</array>
|
|
22
|
+
</dict>
|
|
23
|
+
<dict>
|
|
24
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
25
|
+
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
|
|
26
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
27
|
+
<false/>
|
|
28
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
29
|
+
<false/>
|
|
30
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
31
|
+
<array>
|
|
32
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
33
|
+
</array>
|
|
34
|
+
</dict>
|
|
35
|
+
</array>
|
|
36
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
37
|
+
<array>
|
|
38
|
+
<dict>
|
|
39
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
40
|
+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
|
41
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
42
|
+
<array>
|
|
43
|
+
<string>CA92.1</string>
|
|
44
|
+
</array>
|
|
45
|
+
</dict>
|
|
46
|
+
</array>
|
|
47
|
+
</dict>
|
|
48
|
+
</plist>
|
|
Binary file
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</data>
|
|
35
35
|
<key>Headers/Config.h</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
KLqtSWtfUZ8UjQHQRu1wwrKrWys=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Headers/ContentData.h</key>
|
|
40
40
|
<data>
|
|
@@ -86,21 +86,21 @@
|
|
|
86
86
|
</data>
|
|
87
87
|
<key>Info.plist</key>
|
|
88
88
|
<data>
|
|
89
|
-
|
|
89
|
+
34ybEAi3gqx+ZPXUZaqRQ9CXAuA=
|
|
90
90
|
</data>
|
|
91
91
|
<key>Modules/module.modulemap</key>
|
|
92
92
|
<data>
|
|
93
|
-
|
|
93
|
+
RGcjaDkhHa3/xycp0mH+V18tygE=
|
|
94
|
+
</data>
|
|
95
|
+
<key>PrivacyInfo.xcprivacy</key>
|
|
96
|
+
<data>
|
|
97
|
+
nOhY2TABBsjCwzVCqFHSjm3lAD4=
|
|
94
98
|
</data>
|
|
95
99
|
</dict>
|
|
96
100
|
<key>files2</key>
|
|
97
101
|
<dict>
|
|
98
102
|
<key>Headers/AdData.h</key>
|
|
99
103
|
<dict>
|
|
100
|
-
<key>hash</key>
|
|
101
|
-
<data>
|
|
102
|
-
HCav3DGl3Ww0tTKwqWg4Sx2tN18=
|
|
103
|
-
</data>
|
|
104
104
|
<key>hash2</key>
|
|
105
105
|
<data>
|
|
106
106
|
o9m/mi1yeWdGod/FZ9dYnsbwtoZ+YDZwhoEjdKxm7WQ=
|
|
@@ -108,10 +108,6 @@
|
|
|
108
108
|
</dict>
|
|
109
109
|
<key>Headers/AdDefine.h</key>
|
|
110
110
|
<dict>
|
|
111
|
-
<key>hash</key>
|
|
112
|
-
<data>
|
|
113
|
-
P5Qs7kXpyj6Iw9ODw3CnmPXfzAE=
|
|
114
|
-
</data>
|
|
115
111
|
<key>hash2</key>
|
|
116
112
|
<data>
|
|
117
113
|
6jPrQM1oTkQFszvy+kF/1fstXgiFlodeaDbeZHsOFSA=
|
|
@@ -119,10 +115,6 @@
|
|
|
119
115
|
</dict>
|
|
120
116
|
<key>Headers/AdOceanConfig.h</key>
|
|
121
117
|
<dict>
|
|
122
|
-
<key>hash</key>
|
|
123
|
-
<data>
|
|
124
|
-
v5rDR2pnQJpL0zC5q3x3X3daY0s=
|
|
125
|
-
</data>
|
|
126
118
|
<key>hash2</key>
|
|
127
119
|
<data>
|
|
128
120
|
XMWunZ1v1TOi+hF+X/tDuPvHqrDIUkHTkmrt/2LNeAU=
|
|
@@ -130,10 +122,6 @@
|
|
|
130
122
|
</dict>
|
|
131
123
|
<key>Headers/AudienceConfig.h</key>
|
|
132
124
|
<dict>
|
|
133
|
-
<key>hash</key>
|
|
134
|
-
<data>
|
|
135
|
-
YPXTJqIedfdGi1wxYWxsCjYOxn0=
|
|
136
|
-
</data>
|
|
137
125
|
<key>hash2</key>
|
|
138
126
|
<data>
|
|
139
127
|
eJgg9eM1g/XN4ETFg7xRSyr5Trbqrd9xU0km/5rIQTg=
|
|
@@ -141,10 +129,6 @@
|
|
|
141
129
|
</dict>
|
|
142
130
|
<key>Headers/AudienceEvent.h</key>
|
|
143
131
|
<dict>
|
|
144
|
-
<key>hash</key>
|
|
145
|
-
<data>
|
|
146
|
-
FhPZWLpD5LmspmO+4kvf7iMC+vg=
|
|
147
|
-
</data>
|
|
148
132
|
<key>hash2</key>
|
|
149
133
|
<data>
|
|
150
134
|
OaQxsgAgNbBkh++HWBsyDdDeZYxsupHlvZTkET30vuQ=
|
|
@@ -152,10 +136,6 @@
|
|
|
152
136
|
</dict>
|
|
153
137
|
<key>Headers/BaseConfig.h</key>
|
|
154
138
|
<dict>
|
|
155
|
-
<key>hash</key>
|
|
156
|
-
<data>
|
|
157
|
-
a9hwWjaZ5KZ+jS8wXyr5Zu3jK+g=
|
|
158
|
-
</data>
|
|
159
139
|
<key>hash2</key>
|
|
160
140
|
<data>
|
|
161
141
|
pUwb5yoNvqeiPgMDWsRYylxbYostjLab408mfw+EI04=
|
|
@@ -163,10 +143,6 @@
|
|
|
163
143
|
</dict>
|
|
164
144
|
<key>Headers/BaseEvent.h</key>
|
|
165
145
|
<dict>
|
|
166
|
-
<key>hash</key>
|
|
167
|
-
<data>
|
|
168
|
-
BASTXTMlrxFRxsj+5UzARFwwDjc=
|
|
169
|
-
</data>
|
|
170
146
|
<key>hash2</key>
|
|
171
147
|
<data>
|
|
172
148
|
MYy25atk1Pd20PKKSBIS7VwdvapxAPCD24oxCcSgFpg=
|
|
@@ -174,21 +150,13 @@
|
|
|
174
150
|
</dict>
|
|
175
151
|
<key>Headers/Config.h</key>
|
|
176
152
|
<dict>
|
|
177
|
-
<key>hash</key>
|
|
178
|
-
<data>
|
|
179
|
-
w6T3s1SQgJTr3HFZFU1+mJwpDSw=
|
|
180
|
-
</data>
|
|
181
153
|
<key>hash2</key>
|
|
182
154
|
<data>
|
|
183
|
-
|
|
155
|
+
pXUMAGwI8rzkhwfRj6yeYjhmKRSJesBBm0fq+r7Agiw=
|
|
184
156
|
</data>
|
|
185
157
|
</dict>
|
|
186
158
|
<key>Headers/ContentData.h</key>
|
|
187
159
|
<dict>
|
|
188
|
-
<key>hash</key>
|
|
189
|
-
<data>
|
|
190
|
-
n740Y6LrozVGSsi6sYIOKtaydJc=
|
|
191
|
-
</data>
|
|
192
160
|
<key>hash2</key>
|
|
193
161
|
<data>
|
|
194
162
|
OCC8D+WUE2XPgUQF95yzJHvyZ//3RqlabXD5ITAb4hE=
|
|
@@ -196,10 +164,6 @@
|
|
|
196
164
|
</dict>
|
|
197
165
|
<key>Headers/EventAdData.h</key>
|
|
198
166
|
<dict>
|
|
199
|
-
<key>hash</key>
|
|
200
|
-
<data>
|
|
201
|
-
9IK2OyvcDACRKEE32elIIw4vhIY=
|
|
202
|
-
</data>
|
|
203
167
|
<key>hash2</key>
|
|
204
168
|
<data>
|
|
205
169
|
/C1O0Iaatygka18HyrSRWmoKfuX8AiFBXccf1YukJp8=
|
|
@@ -207,10 +171,6 @@
|
|
|
207
171
|
</dict>
|
|
208
172
|
<key>Headers/EventData.h</key>
|
|
209
173
|
<dict>
|
|
210
|
-
<key>hash</key>
|
|
211
|
-
<data>
|
|
212
|
-
WTdh10n0EBD1ur/pjnCFMmDakPE=
|
|
213
|
-
</data>
|
|
214
174
|
<key>hash2</key>
|
|
215
175
|
<data>
|
|
216
176
|
ydmBjwlDzq3KFQ45rp5lsjgF4zHIw1FORtXXcZU25VY=
|
|
@@ -218,10 +178,6 @@
|
|
|
218
178
|
</dict>
|
|
219
179
|
<key>Headers/EventProgramData.h</key>
|
|
220
180
|
<dict>
|
|
221
|
-
<key>hash</key>
|
|
222
|
-
<data>
|
|
223
|
-
c6JqoRY+iWp6f9L27JQGT8I9VMs=
|
|
224
|
-
</data>
|
|
225
181
|
<key>hash2</key>
|
|
226
182
|
<data>
|
|
227
183
|
d0Nwx5F1xL0x8r74WjXm8sr3vzG5OBFtgLXorQuf4eU=
|
|
@@ -229,10 +185,6 @@
|
|
|
229
185
|
</dict>
|
|
230
186
|
<key>Headers/GEMBillboardAd.h</key>
|
|
231
187
|
<dict>
|
|
232
|
-
<key>hash</key>
|
|
233
|
-
<data>
|
|
234
|
-
YrcXLtfKg26L5C+YRt1c0mVabTk=
|
|
235
|
-
</data>
|
|
236
188
|
<key>hash2</key>
|
|
237
189
|
<data>
|
|
238
190
|
+w2jZmEYHQGjLS6AJZBNWW/mHlqqR0XmBNQtK/IwMYU=
|
|
@@ -240,10 +192,6 @@
|
|
|
240
192
|
</dict>
|
|
241
193
|
<key>Headers/GEMFullScreenAd.h</key>
|
|
242
194
|
<dict>
|
|
243
|
-
<key>hash</key>
|
|
244
|
-
<data>
|
|
245
|
-
xn66f/IbXCc5Fi00XFUZ2238vAM=
|
|
246
|
-
</data>
|
|
247
195
|
<key>hash2</key>
|
|
248
196
|
<data>
|
|
249
197
|
yn+vHimqNncrptwErk/nhtpfKS3mEVSjjTbVI5RqdVU=
|
|
@@ -251,10 +199,6 @@
|
|
|
251
199
|
</dict>
|
|
252
200
|
<key>Headers/GemiusSDK.h</key>
|
|
253
201
|
<dict>
|
|
254
|
-
<key>hash</key>
|
|
255
|
-
<data>
|
|
256
|
-
l1h1CHHxPsCvHlXS/KwjJ3XxjZI=
|
|
257
|
-
</data>
|
|
258
202
|
<key>hash2</key>
|
|
259
203
|
<data>
|
|
260
204
|
o3yQgGllSBmT+Sj8f5y1bsolxtkNvutxURhQZvg6CEM=
|
|
@@ -262,10 +206,6 @@
|
|
|
262
206
|
</dict>
|
|
263
207
|
<key>Headers/NetpanelConfig.h</key>
|
|
264
208
|
<dict>
|
|
265
|
-
<key>hash</key>
|
|
266
|
-
<data>
|
|
267
|
-
lRMq2e7mtQKFb0dWvQMcQo6HdtA=
|
|
268
|
-
</data>
|
|
269
209
|
<key>hash2</key>
|
|
270
210
|
<data>
|
|
271
211
|
fmqQ1J7KvZ2cfmp8ILO2PeyCqbS01Jp2HNu9eT9q9yI=
|
|
@@ -273,10 +213,6 @@
|
|
|
273
213
|
</dict>
|
|
274
214
|
<key>Headers/NetpanelEvent.h</key>
|
|
275
215
|
<dict>
|
|
276
|
-
<key>hash</key>
|
|
277
|
-
<data>
|
|
278
|
-
dCaT64cqi8ymtdA0AEVLYJQYkLc=
|
|
279
|
-
</data>
|
|
280
216
|
<key>hash2</key>
|
|
281
217
|
<data>
|
|
282
218
|
zMNjrWezwo9saHovQ+BiKZQDgzY5fCWVmKhkd9w4le8=
|
|
@@ -284,10 +220,6 @@
|
|
|
284
220
|
</dict>
|
|
285
221
|
<key>Headers/Player.h</key>
|
|
286
222
|
<dict>
|
|
287
|
-
<key>hash</key>
|
|
288
|
-
<data>
|
|
289
|
-
PKrWEZ+owAh1m6GnndVy50KwWp0=
|
|
290
|
-
</data>
|
|
291
223
|
<key>hash2</key>
|
|
292
224
|
<data>
|
|
293
225
|
6pp5C3qHZ89ozvJGV3ZMdartUhsvPjkq10YlnBSOLJY=
|
|
@@ -295,10 +227,6 @@
|
|
|
295
227
|
</dict>
|
|
296
228
|
<key>Headers/PlayerData.h</key>
|
|
297
229
|
<dict>
|
|
298
|
-
<key>hash</key>
|
|
299
|
-
<data>
|
|
300
|
-
5p1yCOGgKtgEyD9BNpVCTRK4qkg=
|
|
301
|
-
</data>
|
|
302
230
|
<key>hash2</key>
|
|
303
231
|
<data>
|
|
304
232
|
+fYdi6hn9vb0F6EuXpMOgyEaHS87/kiSKrVcuIj2jC4=
|
|
@@ -306,10 +234,6 @@
|
|
|
306
234
|
</dict>
|
|
307
235
|
<key>Headers/ProgramData.h</key>
|
|
308
236
|
<dict>
|
|
309
|
-
<key>hash</key>
|
|
310
|
-
<data>
|
|
311
|
-
SWGYzq6g0sB7mLXjqHQznZz0wqE=
|
|
312
|
-
</data>
|
|
313
237
|
<key>hash2</key>
|
|
314
238
|
<data>
|
|
315
239
|
g+vul+665CnIOPyObkXNeTcL6XcUGwYfma8nW5XrPt0=
|
|
@@ -317,13 +241,16 @@
|
|
|
317
241
|
</dict>
|
|
318
242
|
<key>Modules/module.modulemap</key>
|
|
319
243
|
<dict>
|
|
320
|
-
<key>
|
|
244
|
+
<key>hash2</key>
|
|
321
245
|
<data>
|
|
322
|
-
|
|
246
|
+
EgEN/gVaSkV2JHPkbAv2q4daje8pW+EThc3bl58l+1I=
|
|
323
247
|
</data>
|
|
248
|
+
</dict>
|
|
249
|
+
<key>PrivacyInfo.xcprivacy</key>
|
|
250
|
+
<dict>
|
|
324
251
|
<key>hash2</key>
|
|
325
252
|
<data>
|
|
326
|
-
|
|
253
|
+
KMg4KXwEao862boxK5X+excseTyUa/TkIWIBRS0oDlo=
|
|
327
254
|
</data>
|
|
328
255
|
</dict>
|
|
329
256
|
</dict>
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
#import "LRTGemiusPlugin.h"
|
|
2
|
+
#import <GemiusSDK/GemiusSDK.h>
|
|
3
|
+
|
|
4
|
+
@implementation LRTGemiusPlugin {
|
|
5
|
+
GSMPlayer *player;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
- (dispatch_queue_t)methodQueue
|
|
9
|
+
{
|
|
10
|
+
return dispatch_get_main_queue();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
+ (NSString *)moduleName
|
|
14
|
+
{
|
|
15
|
+
return @"LRTGemiusPlugin";
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
- (void)setAppInfo:(NSString *)app version:(NSString *)version gemiusHitCollectorHost:(NSString *)gemiusHitCollectorHost gemiusPrismIdentifier:(NSString *)gemiusPrismIdentifier
|
|
19
|
+
{
|
|
20
|
+
[[GEMAudienceConfig sharedInstance] setHitcollectorHost:gemiusHitCollectorHost];
|
|
21
|
+
[[GEMAudienceConfig sharedInstance] setScriptIdentifier:gemiusPrismIdentifier];
|
|
22
|
+
[[GEMConfig sharedInstance] setLoggingEnabled:YES];
|
|
23
|
+
[[GEMConfig sharedInstance] setAppInfo:app version:version];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
- (void)sendPageViewedEvent:(NSString *)gemiusPrismIdentifier extraParameters:(NSDictionary * _Nullable)extraParameters
|
|
27
|
+
{
|
|
28
|
+
GEMAudienceEvent *event = [GEMAudienceEvent new];
|
|
29
|
+
[event setEventType:GEM_EVENT_FULL_PAGEVIEW];
|
|
30
|
+
[event setScriptIdentifier:gemiusPrismIdentifier];
|
|
31
|
+
|
|
32
|
+
if (extraParameters != nil) {
|
|
33
|
+
for (NSString *key in extraParameters) {
|
|
34
|
+
id value = extraParameters[key];
|
|
35
|
+
NSString *stringValue = [value isKindOfClass:[NSString class]] ? value : [NSString stringWithFormat:@"%@", value];
|
|
36
|
+
[event addExtraParameter:key value:stringValue];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
[event sendEvent];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
- (void)sendPartialPageViewedEvent:(NSString *)gemiusPrismIdentifier extraParameters:(NSDictionary * _Nullable)extraParameters
|
|
43
|
+
{
|
|
44
|
+
GEMAudienceEvent *event = [GEMAudienceEvent new];
|
|
45
|
+
[event setEventType:GEM_EVENT_PARTIAL_PAGEVIEW];
|
|
46
|
+
[event setScriptIdentifier:gemiusPrismIdentifier];
|
|
47
|
+
|
|
48
|
+
if (extraParameters != nil) {
|
|
49
|
+
for (NSString *key in extraParameters) {
|
|
50
|
+
id value = extraParameters[key];
|
|
51
|
+
NSString *stringValue = [value isKindOfClass:[NSString class]] ? value : [NSString stringWithFormat:@"%@", value];
|
|
52
|
+
[event addExtraParameter:key value:stringValue];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
[event sendEvent];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
- (void)sendActionEvent:(NSString *)gemiusPrismIdentifier extraParameters:(NSDictionary * _Nullable)extraParameters
|
|
59
|
+
{
|
|
60
|
+
GEMAudienceEvent *event = [GEMAudienceEvent new];
|
|
61
|
+
[event setEventType:GEM_EVENT_ACTION];
|
|
62
|
+
[event setScriptIdentifier:gemiusPrismIdentifier];
|
|
63
|
+
|
|
64
|
+
if (extraParameters != nil) {
|
|
65
|
+
for (NSString *key in extraParameters) {
|
|
66
|
+
id value = extraParameters[key];
|
|
67
|
+
NSString *stringValue = [value isKindOfClass:[NSString class]] ? value : [NSString stringWithFormat:@"%@", value];
|
|
68
|
+
[event addExtraParameter:key value:stringValue];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
[event sendEvent];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
- (void)setPlayerInfo:(NSString *)playerId serverHost:(NSString *)serverHost accountId:(NSString *)accountId
|
|
75
|
+
{
|
|
76
|
+
NSLog(@"Initializing player...");
|
|
77
|
+
if (player == nil) {
|
|
78
|
+
player = [[GSMPlayer alloc] initWithID:playerId withHost:serverHost withGemiusID:accountId withData:nil];
|
|
79
|
+
} else {
|
|
80
|
+
NSLog(@"Player already initialized!");
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
- (void)setProgramData:(NSString *)clipId name:(NSString *)name duration:(double)duration type:(NSString *)type
|
|
85
|
+
{
|
|
86
|
+
NSNumber *durationNumber = [NSNumber numberWithDouble:duration];
|
|
87
|
+
NSLog(@"Setting new program data for %@ with duration %@", name, durationNumber);
|
|
88
|
+
|
|
89
|
+
GSMProgramData *pdata = [[GSMProgramData alloc] init];
|
|
90
|
+
pdata.duration = durationNumber;
|
|
91
|
+
pdata.name = name;
|
|
92
|
+
if ([type isEqualToString:@"audio"]) {
|
|
93
|
+
pdata.programType = GSM_AUDIO;
|
|
94
|
+
} else {
|
|
95
|
+
pdata.programType = GSM_VIDEO;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[player newProgram:clipId withData:pdata];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
- (void)sendPlay:(NSString *)clipId offset:(double)offset
|
|
102
|
+
{
|
|
103
|
+
NSNumber *offsetNumber = [NSNumber numberWithDouble:offset];
|
|
104
|
+
NSLog(@"Player PLAY event for '%@' offset: %@", clipId, offsetNumber);
|
|
105
|
+
|
|
106
|
+
if (player) {
|
|
107
|
+
GSMEventProgramData *data = [[GSMEventProgramData alloc] init];
|
|
108
|
+
data.autoPlay = [NSNumber numberWithBool:YES];
|
|
109
|
+
[player programEvent:GSM_PLAY forProgram:clipId atOffset:offsetNumber withData:data];
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
- (void)sendPause:(NSString *)clipId offset:(double)offset
|
|
114
|
+
{
|
|
115
|
+
NSNumber *offsetNumber = [NSNumber numberWithDouble:offset];
|
|
116
|
+
NSLog(@"Player PAUSE event for '%@' offset: %@", clipId, offsetNumber);
|
|
117
|
+
|
|
118
|
+
if (player) {
|
|
119
|
+
[player programEvent:GSM_PAUSE forProgram:clipId atOffset:offsetNumber withData:nil];
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
- (void)sendStop:(NSString *)clipId offset:(double)offset
|
|
124
|
+
{
|
|
125
|
+
NSNumber *offsetNumber = [NSNumber numberWithDouble:offset];
|
|
126
|
+
NSLog(@"Player STOP event for '%@' offset: %@", clipId, offsetNumber);
|
|
127
|
+
|
|
128
|
+
if (player) {
|
|
129
|
+
[player programEvent:GSM_STOP forProgram:clipId atOffset:offsetNumber withData:nil];
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
- (void)sendBuffer:(NSString *)clipId offset:(double)offset
|
|
134
|
+
{
|
|
135
|
+
NSNumber *offsetNumber = [NSNumber numberWithDouble:offset];
|
|
136
|
+
NSLog(@"Player BUFFER event for '%@' offset: %@", clipId, offsetNumber);
|
|
137
|
+
|
|
138
|
+
if (player) {
|
|
139
|
+
[player programEvent:GSM_BUFFER forProgram:clipId atOffset:offsetNumber withData:nil];
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
- (void)sendClose:(NSString *)clipId offset:(double)offset
|
|
144
|
+
{
|
|
145
|
+
NSNumber *offsetNumber = [NSNumber numberWithDouble:offset];
|
|
146
|
+
NSLog(@"Player CLOSE event for '%@' offset: %@", clipId, offsetNumber);
|
|
147
|
+
|
|
148
|
+
if (player) {
|
|
149
|
+
[player programEvent:GSM_CLOSE forProgram:clipId atOffset:offsetNumber withData:nil];
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
- (void)sendSeek:(NSString *)clipId offset:(double)offset
|
|
154
|
+
{
|
|
155
|
+
NSNumber *offsetNumber = [NSNumber numberWithDouble:offset];
|
|
156
|
+
NSLog(@"Player SEEK event for '%@' offset: %@", clipId, offsetNumber);
|
|
157
|
+
|
|
158
|
+
if (player) {
|
|
159
|
+
[player programEvent:GSM_SEEK forProgram:clipId atOffset:offsetNumber withData:nil];
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
- (void)sendComplete:(NSString *)clipId offset:(double)offset
|
|
164
|
+
{
|
|
165
|
+
NSNumber *offsetNumber = [NSNumber numberWithDouble:offset];
|
|
166
|
+
NSLog(@"Player COMPLETE event for '%@' offset: %@", clipId, offsetNumber);
|
|
167
|
+
|
|
168
|
+
if (player) {
|
|
169
|
+
[player programEvent:GSM_COMPLETE forProgram:clipId atOffset:offsetNumber withData:nil];
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
|
|
174
|
+
(const facebook::react::ObjCTurboModule::InitParams &)params
|
|
175
|
+
{
|
|
176
|
+
return std::make_shared<facebook::react::NativeLRTGemiusPluginSpecJSI>(params);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeLRTGemiusPlugin.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;AA+CpE,eAAeA,mBAAmB,CAACC,YAAY,CAAO,iBAAiB,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const {GemiusPlugin} = NativeModules;
|
|
1
|
+
"use strict";
|
|
4
2
|
|
|
3
|
+
import NativeLRTGemiusPlugin from "./NativeLRTGemiusPlugin.js";
|
|
5
4
|
const PROGRAM_TYPE_VIDEO = 'video';
|
|
6
5
|
const PROGRAM_TYPE_AUDIO = 'audio';
|
|
7
6
|
|
|
@@ -9,58 +8,46 @@ const PROGRAM_TYPE_AUDIO = 'audio';
|
|
|
9
8
|
* Duration used for live streams
|
|
10
9
|
*/
|
|
11
10
|
export const DURATION_LIVE_STREAM = -1;
|
|
12
|
-
|
|
13
11
|
export default class Gemius {
|
|
14
12
|
static setAppInfo(app, version, gemiusHitCollectorHost, gemiusPrismIdentifier) {
|
|
15
|
-
|
|
13
|
+
NativeLRTGemiusPlugin.setAppInfo(app, version, gemiusHitCollectorHost, gemiusPrismIdentifier);
|
|
16
14
|
}
|
|
17
|
-
|
|
18
15
|
static setPlayerInfo(playerId, serverHost, accountId) {
|
|
19
|
-
|
|
16
|
+
NativeLRTGemiusPlugin.setPlayerInfo(playerId, serverHost, accountId);
|
|
20
17
|
}
|
|
21
|
-
|
|
22
18
|
static setProgramData(clipId, name, duration, isVideo) {
|
|
23
19
|
const type = isVideo === true ? PROGRAM_TYPE_VIDEO : PROGRAM_TYPE_AUDIO;
|
|
24
|
-
|
|
20
|
+
NativeLRTGemiusPlugin.setProgramData(clipId, name, duration, type);
|
|
25
21
|
}
|
|
26
|
-
|
|
27
22
|
static sendPlay(clipId, offset) {
|
|
28
|
-
|
|
23
|
+
NativeLRTGemiusPlugin.sendPlay(clipId, offset);
|
|
29
24
|
}
|
|
30
|
-
|
|
31
25
|
static sendPause(clipId, offset) {
|
|
32
|
-
|
|
26
|
+
NativeLRTGemiusPlugin.sendPause(clipId, offset);
|
|
33
27
|
}
|
|
34
|
-
|
|
35
28
|
static sendBuffer(clipId, offset) {
|
|
36
|
-
|
|
29
|
+
NativeLRTGemiusPlugin.sendBuffer(clipId, offset);
|
|
37
30
|
}
|
|
38
|
-
|
|
39
31
|
static sendStop(clipId, offset) {
|
|
40
|
-
|
|
32
|
+
NativeLRTGemiusPlugin.sendStop(clipId, offset);
|
|
41
33
|
}
|
|
42
|
-
|
|
43
34
|
static sendComplete(clipId, offset) {
|
|
44
|
-
|
|
35
|
+
NativeLRTGemiusPlugin.sendComplete(clipId, offset);
|
|
45
36
|
}
|
|
46
|
-
|
|
47
37
|
static sendClose(clipId, offset) {
|
|
48
|
-
|
|
38
|
+
NativeLRTGemiusPlugin.sendClose(clipId, offset);
|
|
49
39
|
}
|
|
50
|
-
|
|
51
40
|
static sendSeek(clipId, offset) {
|
|
52
|
-
|
|
41
|
+
NativeLRTGemiusPlugin.sendSeek(clipId, offset);
|
|
53
42
|
}
|
|
54
|
-
|
|
55
43
|
static sendPartialPageViewedEvent(gemiusPrismIdentifier, extraParameters = null) {
|
|
56
|
-
|
|
44
|
+
NativeLRTGemiusPlugin.sendPartialPageViewedEvent(gemiusPrismIdentifier, extraParameters);
|
|
57
45
|
}
|
|
58
|
-
|
|
59
46
|
static sendPageViewedEvent(gemiusPrismIdentifier, extraParameters = null) {
|
|
60
|
-
|
|
47
|
+
NativeLRTGemiusPlugin.sendPageViewedEvent(gemiusPrismIdentifier, extraParameters);
|
|
61
48
|
}
|
|
62
|
-
|
|
63
49
|
static sendActionEvent(gemiusPrismIdentifier, extraParameters = null) {
|
|
64
|
-
|
|
50
|
+
NativeLRTGemiusPlugin.sendActionEvent(gemiusPrismIdentifier, extraParameters);
|
|
65
51
|
}
|
|
66
52
|
}
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NativeLRTGemiusPlugin","PROGRAM_TYPE_VIDEO","PROGRAM_TYPE_AUDIO","DURATION_LIVE_STREAM","Gemius","setAppInfo","app","version","gemiusHitCollectorHost","gemiusPrismIdentifier","setPlayerInfo","playerId","serverHost","accountId","setProgramData","clipId","name","duration","isVideo","type","sendPlay","offset","sendPause","sendBuffer","sendStop","sendComplete","sendClose","sendSeek","sendPartialPageViewedEvent","extraParameters","sendPageViewedEvent","sendActionEvent"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,qBAAqB,MAErB,4BAAyB;AAEhC,MAAMC,kBAAkB,GAAG,OAAO;AAClC,MAAMC,kBAAkB,GAAG,OAAO;;AAElC;AACA;AACA;AACA,OAAO,MAAMC,oBAAoB,GAAG,CAAC,CAAC;AAItC,eAAe,MAAMC,MAAM,CAAC;EAC1B,OAAOC,UAAUA,CACfC,GAAW,EACXC,OAAe,EACfC,sBAA8B,EAC9BC,qBAA6B,EACvB;IACNT,qBAAqB,CAACK,UAAU,CAC9BC,GAAG,EACHC,OAAO,EACPC,sBAAsB,EACtBC,qBACF,CAAC;EACH;EAEA,OAAOC,aAAaA,CAClBC,QAAgB,EAChBC,UAAkB,EAClBC,SAAiB,EACX;IACNb,qBAAqB,CAACU,aAAa,CAACC,QAAQ,EAAEC,UAAU,EAAEC,SAAS,CAAC;EACtE;EAEA,OAAOC,cAAcA,CACnBC,MAAc,EACdC,IAAY,EACZC,QAAgB,EAChBC,OAAgB,EACV;IACN,MAAMC,IAAI,GAAGD,OAAO,KAAK,IAAI,GAAGjB,kBAAkB,GAAGC,kBAAkB;IACvEF,qBAAqB,CAACc,cAAc,CAACC,MAAM,EAAEC,IAAI,EAAEC,QAAQ,EAAEE,IAAI,CAAC;EACpE;EAEA,OAAOC,QAAQA,CAACL,MAAc,EAAEM,MAAc,EAAQ;IACpDrB,qBAAqB,CAACoB,QAAQ,CAACL,MAAM,EAAEM,MAAM,CAAC;EAChD;EAEA,OAAOC,SAASA,CAACP,MAAc,EAAEM,MAAc,EAAQ;IACrDrB,qBAAqB,CAACsB,SAAS,CAACP,MAAM,EAAEM,MAAM,CAAC;EACjD;EAEA,OAAOE,UAAUA,CAACR,MAAc,EAAEM,MAAc,EAAQ;IACtDrB,qBAAqB,CAACuB,UAAU,CAACR,MAAM,EAAEM,MAAM,CAAC;EAClD;EAEA,OAAOG,QAAQA,CAACT,MAAc,EAAEM,MAAc,EAAQ;IACpDrB,qBAAqB,CAACwB,QAAQ,CAACT,MAAM,EAAEM,MAAM,CAAC;EAChD;EAEA,OAAOI,YAAYA,CAACV,MAAc,EAAEM,MAAc,EAAQ;IACxDrB,qBAAqB,CAACyB,YAAY,CAACV,MAAM,EAAEM,MAAM,CAAC;EACpD;EAEA,OAAOK,SAASA,CAACX,MAAc,EAAEM,MAAc,EAAQ;IACrDrB,qBAAqB,CAAC0B,SAAS,CAACX,MAAM,EAAEM,MAAM,CAAC;EACjD;EAEA,OAAOM,QAAQA,CAACZ,MAAc,EAAEM,MAAc,EAAQ;IACpDrB,qBAAqB,CAAC2B,QAAQ,CAACZ,MAAM,EAAEM,MAAM,CAAC;EAChD;EAEA,OAAOO,0BAA0BA,CAC/BnB,qBAA6B,EAC7BoB,eAAoC,GAAG,IAAI,EACrC;IACN7B,qBAAqB,CAAC4B,0BAA0B,CAC9CnB,qBAAqB,EACrBoB,eACF,CAAC;EACH;EAEA,OAAOC,mBAAmBA,CACxBrB,qBAA6B,EAC7BoB,eAAoC,GAAG,IAAI,EACrC;IACN7B,qBAAqB,CAAC8B,mBAAmB,CACvCrB,qBAAqB,EACrBoB,eACF,CAAC;EACH;EAEA,OAAOE,eAAeA,CACpBtB,qBAA6B,EAC7BoB,eAAoC,GAAG,IAAI,EACrC;IACN7B,qBAAqB,CAAC+B,eAAe,CACnCtB,qBAAqB,EACrBoB,eACF,CAAC;EACH;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type TurboModule } from 'react-native';
|
|
2
|
+
export type GemiusParams = {
|
|
3
|
+
[key: string]: string | number | boolean | undefined | null;
|
|
4
|
+
};
|
|
5
|
+
export interface Spec extends TurboModule {
|
|
6
|
+
setAppInfo(app: string, version: string, gemiusHitCollectorHost: string, gemiusPrismIdentifier: string): void;
|
|
7
|
+
setPlayerInfo(playerId: string, serverHost: string, accountId: string): void;
|
|
8
|
+
setProgramData(clipId: string, name: string, duration: number, type: string): void;
|
|
9
|
+
sendPlay(clipId: string, offset: number): void;
|
|
10
|
+
sendPause(clipId: string, offset: number): void;
|
|
11
|
+
sendBuffer(clipId: string, offset: number): void;
|
|
12
|
+
sendStop(clipId: string, offset: number): void;
|
|
13
|
+
sendComplete(clipId: string, offset: number): void;
|
|
14
|
+
sendClose(clipId: string, offset: number): void;
|
|
15
|
+
sendSeek(clipId: string, offset: number): void;
|
|
16
|
+
sendPartialPageViewedEvent(gemiusPrismIdentifier: string, extraParameters: Object | null): void;
|
|
17
|
+
sendPageViewedEvent(gemiusPrismIdentifier: string, extraParameters: Object | null): void;
|
|
18
|
+
sendActionEvent(gemiusPrismIdentifier: string, extraParameters: Object | null): void;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: any;
|
|
21
|
+
export default _default;
|
|
22
|
+
//# sourceMappingURL=NativeLRTGemiusPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeLRTGemiusPlugin.d.ts","sourceRoot":"","sources":["../../../src/NativeLRTGemiusPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAErE,MAAM,MAAM,YAAY,GAAG;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC;CAC7D,CAAC;AAEF,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,UAAU,CACR,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,sBAAsB,EAAE,MAAM,EAC9B,qBAAqB,EAAE,MAAM,GAC5B,IAAI,CAAC;IAER,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7E,cAAc,CACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GACX,IAAI,CAAC;IAER,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/C,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAChD,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACjD,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/C,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACnD,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAChD,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/C,0BAA0B,CACxB,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,MAAM,GAAG,IAAI,GAC7B,IAAI,CAAC;IAER,mBAAmB,CACjB,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,MAAM,GAAG,IAAI,GAC7B,IAAI,CAAC;IAER,eAAe,CACb,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,MAAM,GAAG,IAAI,GAC7B,IAAI,CAAC;CACT;;AAED,wBAAyE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type GemiusParams } from './NativeLRTGemiusPlugin';
|
|
2
|
+
/**
|
|
3
|
+
* Duration used for live streams
|
|
4
|
+
*/
|
|
5
|
+
export declare const DURATION_LIVE_STREAM = -1;
|
|
6
|
+
export { type GemiusParams };
|
|
7
|
+
export default class Gemius {
|
|
8
|
+
static setAppInfo(app: string, version: string, gemiusHitCollectorHost: string, gemiusPrismIdentifier: string): void;
|
|
9
|
+
static setPlayerInfo(playerId: string, serverHost: string, accountId: string): void;
|
|
10
|
+
static setProgramData(clipId: string, name: string, duration: number, isVideo: boolean): void;
|
|
11
|
+
static sendPlay(clipId: string, offset: number): void;
|
|
12
|
+
static sendPause(clipId: string, offset: number): void;
|
|
13
|
+
static sendBuffer(clipId: string, offset: number): void;
|
|
14
|
+
static sendStop(clipId: string, offset: number): void;
|
|
15
|
+
static sendComplete(clipId: string, offset: number): void;
|
|
16
|
+
static sendClose(clipId: string, offset: number): void;
|
|
17
|
+
static sendSeek(clipId: string, offset: number): void;
|
|
18
|
+
static sendPartialPageViewedEvent(gemiusPrismIdentifier: string, extraParameters?: GemiusParams | null): void;
|
|
19
|
+
static sendPageViewedEvent(gemiusPrismIdentifier: string, extraParameters?: GemiusParams | null): void;
|
|
20
|
+
static sendActionEvent(gemiusPrismIdentifier: string, extraParameters?: GemiusParams | null): void;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAA8B,EAC5B,KAAK,YAAY,EAClB,MAAM,yBAAyB,CAAC;AAKjC;;GAEG;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,OAAO,EAAE,KAAK,YAAY,EAAE,CAAC;AAE7B,MAAM,CAAC,OAAO,OAAO,MAAM;IACzB,MAAM,CAAC,UAAU,CACf,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,sBAAsB,EAAE,MAAM,EAC9B,qBAAqB,EAAE,MAAM,GAC5B,IAAI;IASP,MAAM,CAAC,aAAa,CAClB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,GAChB,IAAI;IAIP,MAAM,CAAC,cAAc,CACnB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,OAAO,GACf,IAAI;IAKP,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAIrD,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAItD,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAIvD,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAIrD,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAIzD,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAItD,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAIrD,MAAM,CAAC,0BAA0B,CAC/B,qBAAqB,EAAE,MAAM,EAC7B,eAAe,GAAE,YAAY,GAAG,IAAW,GAC1C,IAAI;IAOP,MAAM,CAAC,mBAAmB,CACxB,qBAAqB,EAAE,MAAM,EAC7B,eAAe,GAAE,YAAY,GAAG,IAAW,GAC1C,IAAI;IAOP,MAAM,CAAC,eAAe,CACpB,qBAAqB,EAAE,MAAM,EAC7B,eAAe,GAAE,YAAY,GAAG,IAAW,GAC1C,IAAI;CAMR"}
|