Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin doent work with kotlin files #50

Open
Kolyall opened this issue Jun 5, 2020 · 3 comments
Open

The plugin doent work with kotlin files #50

Kolyall opened this issue Jun 5, 2020 · 3 comments

Comments

@Kolyall
Copy link
Contributor

Kolyall commented Jun 5, 2020

The plugin doent work with kotlin files

@Kolyall
Copy link
Contributor Author

Kolyall commented Jun 5, 2020

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

@Kolyall
Copy link
Contributor Author

Kolyall commented Jun 5, 2020

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: []

@Kolyall
Copy link
Contributor Author

Kolyall commented Jun 5, 2020

fixed in #49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant