dzmpr/trckr
dzmpr/trckr has 49 GitHub stars and 1 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-24 08:34 UTC. Last push 2026-04-26.
What you can do
- Adapters skipping
- Parameter converters support
- Multimodule project support
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Kotlin Symbol Processor to simplify analytics tracking.
데이터README.md
Originaltrckr
Trckr is Kotlin Symbol Processor to help you send analytics to multiple destinations (called adapters).
Why trckr?
In a large project you can have multiple analytics targets that should receive events from your app. That creates a lot of boilerplate code to implement tracker that uses all analytics targets.
Trckr created to eliminate this problem. You need to create target adapters just once, and trckr generate events from interface methods for you.
To declare tracker you define interface, annotated with @Tracker annotation and event methods with @Event annotation:
@Tracker
interface ExampleTracker {
@Event(name = "Event name")
fun event(
@Param(name = "Parameter name") data: Int,
)
}
And create instance of tracker using generated method:
val tracker = createExampleTracker {
addAdapter(FirebaseAdapter())
addAdapter(AmplitudeAdapter())
addAdapter(AdjustAdapter())
}
tracker.event(data = 42)
After calling event method trckr sends it to all registered adapters.
flowchart TD;
E[ExampleTracker] --event--> A;
A[Trckr] --event--> B[Firebase] & C[Amplitude] & D[Adjust];
Key features
- Adapters skipping
- Parameter converters support
- Multimodule project support
More you can find at advanced features page.
Gradle setup
- Add KSP plugin to your module's
build.gradle.kts:
plugins {
id("com.google.devtools.ksp") version "2.3.7"
}
- Add
Maven Centralto the repositories blocks in your project'sbuild.gradle.kts:
repositories {
mavenCentral()
}
- Add
trckrdependencies:
dependencies {
implementation("ru.cookedapp.trckr:trckr-core:${latestVersion}")
ksp("ru.cookedapp.trckr:trckr-processor:${latestVersion}")
}
- Add KSP source path:
To access generated code from KSP, you need to set up the source path into your module's build.gradle.kts file:
kotlin {
// ...
sourceSets.configureEach {
kotlin.srcDir(layout.buildDirectory.dir("/generated/ksp/$name/kotlin/"))
}
}
License
Copyright 2022 Dzmitry Pryskoka
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
관련 프로젝트 살펴보기
불러오는 중…