Coder Social home page Coder Social logo

Comments (10)

MarcosCobena avatar MarcosCobena commented on August 11, 2024

I've pushed today a WIP on the Presenters normalization:

https://github.com/Cheesebaron/Cheesebaron.MvxPlugins/tree/formspresentersnormalization

I need some more time to figure out how to work with current Android implementation, so maybe I'll end up touching the 2nd point (NavigationHost and so on).

from cheesebaron.mvxplugins.

Cheesebaron avatar Cheesebaron commented on August 11, 2024

I think... The NavigationHost is not necessary as the only thing it does is figure out how to get a page such that the PushAsync, PopAsync, etc. can be called for navigation. This can now be achieved with that Application object from Forms, which gives you the main Page which is enough for that. So what I meant by normalization was to do as is done on iOS and WP on Android as well.

from cheesebaron.mvxplugins.

MarcosCobena avatar MarcosCobena commented on August 11, 2024

OK, got it, I'm working on this a little bit today. Will come back with news. Thanks!

from cheesebaron.mvxplugins.

Cheesebaron avatar Cheesebaron commented on August 11, 2024

Alright, I will probably be able to do some work on this in the weekend, so if there are any lose ends please do tell :)

from cheesebaron.mvxplugins.

MarcosCobena avatar MarcosCobena commented on August 11, 2024

Hey Tomasz,

We've just pushed a bunch of changes to the plug-in taken from a real world project we're working on. The way we were doing the plug-in had some troubles, for instance:

  • We were forcing plug-in consumers to take FormsPresenters.Droid's Resources file, instead of the final app's one, so local pictures couldn't be found, i.e.
  • We were getting plenty of "you must call Forms.Init() prior to consuming it" due to the initialization chain, so we moved such to final app. We've added some TXT files which guide users on how to set-up their projects, in a similar way to how MvvmCross manages that

We currently have no time to work on the iOS and Windows Phone parts, but should be pretty straightforward to change current code to reflect last changes. If you could please help us here we could align the 3 platforms to the same point. Anyway I'll personally try to take some spare time to do this.

We hope you like it! Happy day!

Marcos

from cheesebaron.mvxplugins.

MarcosCobena avatar MarcosCobena commented on August 11, 2024

Hi,

I've just moved the Movies sample here, and adapted it to the latest FormsPresenters plug-in.

Although I've tested iOS Project builds fine, I haven't been able to try to deploy it, it's still pending.

Enjoy!

Marcos

from cheesebaron.mvxplugins.

Cheesebaron avatar Cheesebaron commented on August 11, 2024

Alright. If you need to use TMDB you probably need to generate a new API key. My account may or may not have been nuked or the API key has been at least.

👍 Great job @MarcosCobena!

from cheesebaron.mvxplugins.

dtodaro-ascendle avatar dtodaro-ascendle commented on August 11, 2024

@MarcosCobena I notice in your sample your App class in the PCL project is derived from MvxApplication. I noticed that in @Cheesebaron's new Forms Presenters plugin, he has an MvxFormsApp class derived from Xamarin's Application class.

My question is: When should the MvxFormsApp class be used with the new plugin vs the MvxApplication class?

Thanks!
Dave

from cheesebaron.mvxplugins.

MarcosCobena avatar MarcosCobena commented on August 11, 2024

Hi @dave-t, we recently moved from @Cheesebaron's approach (the one you mention with MvxFormsApp) to the MvxApplication one. If you have a look to the FormsPresenters projects, you'll find some TXT files with instructions on how to run them all. For instance:

https://github.com/Cheesebaron/Cheesebaron.MvxPlugins/blob/master/FormsPresenters/Droid/TODO.txt

from cheesebaron.mvxplugins.

dtodaro-ascendle avatar dtodaro-ascendle commented on August 11, 2024

Thanks, @MarcosCobena! I appreciate the information.

from cheesebaron.mvxplugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.