From 297f63390697a8053bb2c136fd30590f102fd5c4 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Fri, 27 Dec 2024 14:48:27 +0100 Subject: [PATCH] fix(tracker): data type --- tracker/tracker-reactnative/android/build.gradle | 12 +----------- .../com/openreplay/reactnative/ReactNativeModule.kt | 13 +++++++++++-- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/tracker/tracker-reactnative/android/build.gradle b/tracker/tracker-reactnative/android/build.gradle index b188ae009..37b362021 100644 --- a/tracker/tracker-reactnative/android/build.gradle +++ b/tracker/tracker-reactnative/android/build.gradle @@ -58,7 +58,6 @@ android { defaultConfig { minSdkVersion getExtOrIntegerDefault("minSdkVersion") targetSdkVersion getExtOrIntegerDefault("targetSdkVersion") - } buildTypes { @@ -91,16 +90,7 @@ dependencies { //noinspection GradleDynamicVersion implementation("com.facebook.react:react-native:0.20.1") implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version") - implementation("com.github.openreplay:android-tracker:v1.1.4") + implementation("com.github.openreplay:android-tracker:v1.1.5") } -//allprojects { -// repositories { -// maven { url = uri("https://jitpack.io") } -// google() -// mavenCentral() -// } -//} - - diff --git a/tracker/tracker-reactnative/android/src/main/java/com/openreplay/reactnative/ReactNativeModule.kt b/tracker/tracker-reactnative/android/src/main/java/com/openreplay/reactnative/ReactNativeModule.kt index 10037a91f..8919b93a0 100644 --- a/tracker/tracker-reactnative/android/src/main/java/com/openreplay/reactnative/ReactNativeModule.kt +++ b/tracker/tracker-reactnative/android/src/main/java/com/openreplay/reactnative/ReactNativeModule.kt @@ -104,7 +104,16 @@ class ReactNativeModule(reactContext: ReactApplicationContext) : status: Int, duration: Double ) { - val durationULong = duration.toLong().toULong() - OpenReplay.networkRequest(url, method, requestJSON, responseJSON, status, durationULong) + // val durationLong: Long = duration.toLong() + val durationULong: ULong = duration.toLong().toULong() + + OpenReplay.networkRequest( + url = url, + method = method, + requestJSON = requestJSON, + responseJSON = responseJSON, + status = status, + duration = durationULong + ) } }