-
Notifications
You must be signed in to change notification settings - Fork 45
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
Lifecycle annotations seem to have wrong annotation javaName #6
Comments
If this is possible under Xamarin rule (running java 8 underneath) we should simply switch from annotation processing based lifecycle to java8 variant that uses default method implementations. We need to move from |
Hey, I was able to use the annotations by simply adding a custom |
We need to update the types here: https://github.com/xamarin/AndroidX/blob/master/source/androidx.lifecycle/lifecycle-common/additions/Additions.cs |
Fixed. |
@daividssilverio |
Sure thing, I'll try it later today. |
@moljac I've updated our repo to target the I'm currently getting this error during build time:
The instructions don't make sense to me... why would I use Here's the test branch that produces that error: https://github.com/toggl/mobileapp/tree/doivid/test-updated-androidx-nuget-packages |
Spot on. Not sure why Checking sample. Thanks |
@daividssilverio
|
Glad you asked. We've followed the guide on https://devblogs.microsoft.com/xamarin/androidx-for-xamarin/ And, yes, I've tried removing the The In our |
That's the problem. We haven't published GPS-FB stuff that depend on AndroidX. Not even preview. OK. Alles klar (all clear). |
@daividssilverio Feedback would really be nice and appreciated. Thanks |
I believe this is fixed and released in preview. If you still have problems with this, please open a new issue. |
Hello there,
It seems that the
[Lifecycle.Event.OnStart]
,[Lifecycle.Event.OnStop]
and other from theAndroidX.Lifecycle
namespace have their java annotation counterparts set to the old libraries.Found this while testing the migration in the Toggl app, we are using the old
[Lifecycle.Event.OnStart]
,[Lifecycle.Event.OnStop]
here:https://github.com/toggl/mobileapp/blob/d79af0ab5522a325046baf19b4616cb086b1bc71/Toggl.Droid/Startup/TogglApplication.cs#L83-L99
Test branch: https://github.com/toggl/mobileapp/tree/doivid/androidx-migration-test
After migrating, we get this error while building:
Checking the generated source code, I found this:
The text was updated successfully, but these errors were encountered: