fix(tracker): data type
This commit is contained in:
parent
70bae502d3
commit
297f633906
2 changed files with 12 additions and 13 deletions
|
|
@ -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()
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue