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 {
|
defaultConfig {
|
||||||
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
||||||
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|
@ -91,16 +90,7 @@ dependencies {
|
||||||
//noinspection GradleDynamicVersion
|
//noinspection GradleDynamicVersion
|
||||||
implementation("com.facebook.react:react-native:0.20.1")
|
implementation("com.facebook.react:react-native:0.20.1")
|
||||||
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
|
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,
|
status: Int,
|
||||||
duration: Double
|
duration: Double
|
||||||
) {
|
) {
|
||||||
val durationULong = duration.toLong().toULong()
|
// val durationLong: Long = duration.toLong()
|
||||||
OpenReplay.networkRequest(url, method, requestJSON, responseJSON, status, durationULong)
|
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