Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/rn-app/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ buildscript {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
classpath("com.callstack:ottrelite-plugin:0.1.0")
}
}

Expand Down
23 changes: 0 additions & 23 deletions examples/rn-app/android/buildSrc/build.gradle.kts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ object OttreliteAndroid {
OttreliteBridge.nativeBeginAsyncEvent(eventName, emptyMap())
}

@JvmStatic
fun beginAsyncEvent(eventName: String, argsMap: Map<String, Any>) {
OttreliteBridge.nativeBeginAsyncEvent(eventName, argsMap)
}

@JvmStatic
fun endAsyncEvent(eventName: String, cookie: Int) {
OttreliteBridge.nativeEndAsyncEvent(eventName, cookie.toDouble(), emptyMap())
Expand All @@ -30,13 +35,23 @@ object OttreliteAndroid {
OttreliteBridge.nativeBeginEvent(sectionName, argsMap)
}

@JvmStatic
fun beginEvent(sectionName: String, argsMap: Map<String, Any>) {
OttreliteBridge.nativeBeginEvent(sectionName, argsMap)
}

@JvmStatic
fun endEvent() {
OttreliteBridge.nativeEndEvent(emptyMap())
}

@JvmStatic
fun traceCounter(counterName: String, counterValue: Int) {
fun counterEvent(counterName: String, counterValue: Int) {
OttreliteBridge.nativeCounterEvent(counterName, counterValue.toDouble())
}

@JvmStatic
fun counterEvent(counterName: String, counterValue: Double) {
OttreliteBridge.nativeCounterEvent(counterName, counterValue)
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
validateDistributionUrl=false
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
248 changes: 248 additions & 0 deletions plugin/ottrelite-gradle-plugin/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading