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

Feat: v2 embedding #327

Merged
merged 2 commits into from Oct 9, 2021
Merged

Feat: v2 embedding #327

merged 2 commits into from Oct 9, 2021

Conversation

diegog-sf
Copy link
Contributor

Why: It seems that the V2 embedding was not applied to the plugin file, Just to the manifest.

What: This PR adds support for v2 embedding.

Documentation:

https://flutter.dev/docs/development/packages-and-plugins/plugin-api-migration
https://csdcorp.com/blog/coding/handling-permission-requests-in-android-for-flutter-plugins/

Related issues:

#326

Diego Garcia Ramos and others added 2 commits September 13, 2021 15:33
@diegog-sf
Copy link
Contributor Author

@thomassth Thank you for the review, is there something else needed to get this merged?

@diegog-sf
Copy link
Contributor Author

Hello, @thomassth can you help me getting this merged?

@thomassth
Copy link
Contributor

Was planning to try it once on my app before merging, in case there are some problem migrating from older versions.

But haven't got the time yet. If you have done similar things I think I can just go ahead.

@diegogarciar
Copy link

Ok I’ll do more testing on different devices and let you know.
To the ones looking at this conversation, please try testing the PR too and let us know your findings

@thomassth thomassth added the help wanted This issue is open for someone to pick up and action label Oct 4, 2021
@cbermudez97
Copy link

Hi im trying using this version and ran into a problem. When creating an Attendee the role argument its not required but in the Kotlin code seems to be non null (see code). Im new to plugins so maybe i miss understood something. Hope it helps.

@diegog-sf
Copy link
Contributor Author

@cbermudez97 I think your problem is unrelated to this pull request, but feel free to open a separate issue.

@diegog-sf
Copy link
Contributor Author

@thomassth A college has also tested on his device and it's working as expected. I would say its safe to merge it.

@thomassth thomassth merged commit 2986ddb into builttoroam:develop Oct 9, 2021
@deezaster
Copy link

I get this Xcode output and therefore it's not possible to build.

    ../../../.pub-cache/git/device_calendar-2986ddbfd883b8223c009ec8256e34895aa3a7c0/lib/src/models/event.dart:62:12: Error: Duplicated parameter name 'url'.
          this.url,
               ^^^
    ../../../.pub-cache/git/device_calendar-2986ddbfd883b8223c009ec8256e34895aa3a7c0/lib/src/models/event.dart:59:12: Context: Other parameter named 'url'.
          this.url,
               ^^^
    ../../../.pub-cache/git/device_calendar-2986ddbfd883b8223c009ec8256e34895aa3a7c0/lib/src/models/event.dart:62:12: Error: 'url' was already initialized by this constructor.
          this.url,
```

@thomassth
Copy link
Contributor

thomassth commented Oct 10, 2021

I get this Xcode output and therefore it's not possible to build.

    ../../../.pub-cache/git/device_calendar-2986ddbfd883b8223c009ec8256e34895aa3a7c0/lib/src/models/event.dart:62:12: Error: Duplicated parameter name 'url'.
          this.url,
               ^^^
    ../../../.pub-cache/git/device_calendar-2986ddbfd883b8223c009ec8256e34895aa3a7c0/lib/src/models/event.dart:59:12: Context: Other parameter named 'url'.
          this.url,
               ^^^
    ../../../.pub-cache/git/device_calendar-2986ddbfd883b8223c009ec8256e34895aa3a7c0/lib/src/models/event.dart:62:12: Error: 'url' was already initialized by this constructor.
          this.url,

This is not related to this PR, but it’s fixed in #336. Although still waiting for other maintainers to review and merge.

We are also looking for new maintainers! Leave a note in #339 if you’re interested.

@Zookey
Copy link

Zookey commented Nov 17, 2021

I have side-loaded the dev branch with this changes and I have built release Android APK and it can not add events to the calendar anymore. It works fine when I run debug build of the Android app.

@thomassth
Copy link
Contributor

I have side-loaded the dev branch with this changes and I have built release Android APK and it can not add events to the calendar anymore. It works fine when I run debug build of the Android app.

I have just tried it on my own project and it added events just fine.

Also, please open a separate issue as this PR is not related to your topic.

@Zookey
Copy link

Zookey commented Nov 17, 2021

Thanks, I will test it once more and create a new issue. Have you tested with release APK build, not debug?

@builttoroam builttoroam locked and limited conversation to collaborators Nov 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted This issue is open for someone to pick up and action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flutter build process reports device_calendar uses a deprecated version of the Android embedding
6 participants