Open Kolyall opened 4 years ago
for example:
findViewById(R.id.button).setOnClickListener(new View.OnClickListener() {
@TrackEvent("button_click")
@FixedAttribute(key = "button_name", value = "Login")
@Override public void onClick(View v) {
new KotlinObject().track();
new JavaObject().track();
}
});
class KotlinObject {
@TrackEvent("event_kotlin_object")
fun track() {
}
}
Log: no any event
but java class works:
class JavaObject {
@TrackEvent("event_java_object")
void track() {
}
}
Log:
2020-06-05 17:10:21.868 12772-12772/com.orhanobut.sample D/Tracker: event_java_object-> {}, super attrs: {}, filters: []
The plugin doent work with kotlin files