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

Kotlin primitive is generated as private #53

Open
Grohden opened this issue Sep 21, 2018 · 4 comments
Open

Kotlin primitive is generated as private #53

Grohden opened this issue Sep 21, 2018 · 4 comments

Comments

@Grohden
Copy link

Grohden commented Sep 21, 2018

i'm doing this:

class MainActivity : BaseActivity() {
    @Extra
    lateinit var userModel: LoginModel

    @Extra
    var cameFromLogin: Boolean = false
}

and i get the error:

error: Field annotated with @Extra cannot be private, protected nor final private boolean cameFromLogin;

i could try to resolve, but i have no idea where the code is generated/parsed

@Grohden
Copy link
Author

Grohden commented Sep 21, 2018

Oh well, i didn't find anything on the wiki, but here it is : #36 (comment)
It seems that the @JvmField annotation is needed for that kind of thing... weird throught :/

@FrantisekGazo
Copy link
Owner

this library was not created with Kotlin in mind, so I'll have to do some testing.

@FrantisekGazo
Copy link
Owner

@Grohden which Blade modules to you use?

@Grohden
Copy link
Author

Grohden commented Oct 28, 2018

I'm using only the args and extras modules

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

2 participants