FrantisekGazo / Blade

Android library for boilerplate destruction
Apache License 2.0
267 stars 22 forks source link

Kotlin primitive is generated as private #53

Open Grohden opened 6 years ago

Grohden commented 6 years ago

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 commented 6 years ago

Oh well, i didn't find anything on the wiki, but here it is : https://github.com/FrantisekGazo/Blade/issues/36#issuecomment-343567362 It seems that the @JvmField annotation is needed for that kind of thing... weird throught :/

FrantisekGazo commented 6 years ago

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

FrantisekGazo commented 6 years ago

@Grohden which Blade modules to you use?

Grohden commented 6 years ago

I'm using only the args and extras modules