react-native-gemius-plugin 1.7.1 → 1.7.3
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/9.0.0/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/9.0.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/config.properties +1 -1
- package/android/.gradle/file-system.probe +0 -0
- package/android/.gradle/gradle.properties +43 -0
- package/android/.idea/compiler.xml +1 -1
- package/android/.idea/misc.xml +1 -1
- package/android/build.gradle +10 -6
- package/android/libs/mobile-sdk-2.3.0.aar +0 -0
- package/android/src/main/java/com/reactlibrary/GemiusPluginModule.java +23 -15
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#Thu Feb 19 12:01:17 EET 2026
|
|
2
|
-
java.home=/
|
|
2
|
+
java.home=/Library/Java/JavaVirtualMachines/jdk-19.jdk/Contents/Home
|
|
Binary file
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
## For more details on how to configure your build environment visit
|
|
2
|
+
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
3
|
+
#
|
|
4
|
+
# Specifies the JVM arguments used for the daemon process.
|
|
5
|
+
# The setting is particularly useful for tweaking memory settings.
|
|
6
|
+
# Default value: -Xmx1024m -XX:MaxPermSize=256m
|
|
7
|
+
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
|
8
|
+
#
|
|
9
|
+
# When configured, Gradle will run in incubating parallel mode.
|
|
10
|
+
# This option should only be used with decoupled projects. More details, visit
|
|
11
|
+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
12
|
+
# org.gradle.parallel=true
|
|
13
|
+
#Fri May 20 16:15:07 EEST 2022
|
|
14
|
+
android.useAndroidX=true
|
|
15
|
+
android.enableJetifier=true
|
|
16
|
+
|
|
17
|
+
mavenGemiusUser=lrt.lt
|
|
18
|
+
mavenGemiusPassword=iZx3rVJVOEvlQKTanIsNlxQV57wa1VTv56hcDRMQbS7HD11Xc33hkrBrhI2TAmTg
|
|
19
|
+
|
|
20
|
+
# Use this property to specify which architecture you want to build.
|
|
21
|
+
# You can also override it from the CLI using
|
|
22
|
+
# ./gradlew <task> -PreactNativeArchitectures=x86_64
|
|
23
|
+
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
|
|
24
|
+
|
|
25
|
+
# Use this property to enable support to the new architecture.
|
|
26
|
+
# This will allow you to use TurboModules and the Fabric render in
|
|
27
|
+
# your application. You should enable this flag either if you want
|
|
28
|
+
# to write custom TurboModules/Fabric components OR use libraries that
|
|
29
|
+
# are providing them.
|
|
30
|
+
newArchEnabled=true
|
|
31
|
+
|
|
32
|
+
# Use this property to enable or disable the Hermes JS engine.
|
|
33
|
+
# If set to false, you will be using JSC instead.
|
|
34
|
+
hermesEnabled=true
|
|
35
|
+
|
|
36
|
+
# Use this property to enable edge-to-edge display support.
|
|
37
|
+
# This allows your app to draw behind system bars for an immersive UI.
|
|
38
|
+
# Note: Only works with ReactActivity and should not be used with custom Activity.
|
|
39
|
+
edgeToEdgeEnabled=false
|
|
40
|
+
|
|
41
|
+
systemProp.javax.net.ssl.trustStore=/dev/null
|
|
42
|
+
systemProp.javax.net.ssl.trustStoreType=KeychainStore
|
|
43
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="CompilerConfiguration">
|
|
4
|
-
<bytecodeTargetLevel target="
|
|
4
|
+
<bytecodeTargetLevel target="19">
|
|
5
5
|
<module name="gradle-plugin-root.react-native-gradle-plugin" target="11" />
|
|
6
6
|
<module name="gradle-plugin-root.react-native-gradle-plugin.main" target="11" />
|
|
7
7
|
<module name="gradle-plugin-root.react-native-gradle-plugin.test" target="11" />
|
package/android/.idea/misc.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
4
|
-
<component name="ProjectRootManager" version="2" languageLevel="
|
|
4
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_19" default="true" project-jdk-name="19" project-jdk-type="JavaSDK">
|
|
5
5
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
6
6
|
</component>
|
|
7
7
|
<component name="ProjectType">
|
package/android/build.gradle
CHANGED
|
@@ -45,6 +45,9 @@ android {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
repositories {
|
|
48
|
+
flatDir {
|
|
49
|
+
dirs 'libs'
|
|
50
|
+
}
|
|
48
51
|
maven {
|
|
49
52
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
50
53
|
url "$rootDir/../node_modules/react-native/android"
|
|
@@ -69,11 +72,12 @@ dependencies {
|
|
|
69
72
|
//noinspection GradleDynamicVersion
|
|
70
73
|
implementation 'com.facebook.react:react-native:+'
|
|
71
74
|
|
|
72
|
-
implementation
|
|
75
|
+
implementation(name: 'mobile-sdk-2.3.0', ext: 'aar')
|
|
73
76
|
implementation "com.huawei.hms:ads-identifier:3.4.58.301"
|
|
74
|
-
implementation "com.google.code.gson:gson:2.
|
|
75
|
-
implementation "com.google.android.gms:play-services-base:18.2
|
|
76
|
-
implementation "com.google.android.gms:play-services-ads:
|
|
77
|
-
implementation "com.google.android.gms:play-services-appset:16.0
|
|
77
|
+
implementation "com.google.code.gson:gson:2.11.0"
|
|
78
|
+
implementation "com.google.android.gms:play-services-base:18.7.2"
|
|
79
|
+
implementation "com.google.android.gms:play-services-ads:24.5.0"
|
|
80
|
+
implementation "com.google.android.gms:play-services-appset:16.1.0"
|
|
81
|
+
implementation 'com.squareup.retrofit2:converter-scalars:2.11.0'
|
|
78
82
|
implementation "ch.acra:acra-http:5.7.0"
|
|
79
|
-
}
|
|
83
|
+
}
|
|
Binary file
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
package com.reactlibrary;
|
|
2
2
|
|
|
3
|
+
import android.os.Handler;
|
|
4
|
+
import android.os.Looper;
|
|
3
5
|
import android.util.Log;
|
|
4
6
|
|
|
5
7
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
@@ -120,31 +122,37 @@ public class GemiusPluginModule extends ReactContextBaseJavaModule {
|
|
|
120
122
|
@ReactMethod
|
|
121
123
|
public void sendPageViewedEvent(String gemiusPrismIdentifier, ReadableMap paramsMap) {
|
|
122
124
|
Log.d(TAG, "sendPageViewedEvent() called.");
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
new Handler(Looper.getMainLooper()).post(() -> {
|
|
126
|
+
AudienceEvent event = new AudienceEvent(this.reactContext);
|
|
127
|
+
event.setScriptIdentifier(gemiusPrismIdentifier);
|
|
128
|
+
event.setEventType(AudienceEvent.EventType.FULL_PAGEVIEW);
|
|
129
|
+
addParamsToEvent(event, paramsMap);
|
|
130
|
+
event.sendEvent();
|
|
131
|
+
});
|
|
128
132
|
}
|
|
129
133
|
|
|
130
134
|
@ReactMethod
|
|
131
135
|
public void sendPartialPageViewedEvent(String gemiusPrismIdentifier, ReadableMap paramsMap) {
|
|
132
136
|
Log.d(TAG, "sendPartialPageViewedEvent() called.");
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
new Handler(Looper.getMainLooper()).post(() -> {
|
|
138
|
+
AudienceEvent event = new AudienceEvent(this.reactContext);
|
|
139
|
+
event.setScriptIdentifier(gemiusPrismIdentifier);
|
|
140
|
+
event.setEventType(AudienceEvent.EventType.PARTIAL_PAGEVIEW);
|
|
141
|
+
addParamsToEvent(event, paramsMap);
|
|
142
|
+
event.sendEvent();
|
|
143
|
+
});
|
|
138
144
|
}
|
|
139
145
|
|
|
140
146
|
@ReactMethod
|
|
141
147
|
public void sendActionEvent(String gemiusPrismIdentifier, ReadableMap paramsMap) {
|
|
142
148
|
Log.d(TAG, "sendActionEvent() called.");
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
149
|
+
new Handler(Looper.getMainLooper()).post(() -> {
|
|
150
|
+
AudienceEvent event = new AudienceEvent(this.reactContext);
|
|
151
|
+
event.setScriptIdentifier(gemiusPrismIdentifier);
|
|
152
|
+
event.setEventType(EventType.ACTION);
|
|
153
|
+
addParamsToEvent(event, paramsMap);
|
|
154
|
+
event.sendEvent();
|
|
155
|
+
});
|
|
148
156
|
}
|
|
149
157
|
|
|
150
158
|
private void addParamsToEvent(BaseEvent event, ReadableMap paramsMap) {
|