-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
App pretty weather sample #605
App pretty weather sample #605
Conversation
This reverts commit 7b12276.
@chrisevans9629 For now, I've only resolved the conflict to make sure it builds properly and is mergeable. |
Oh, and I renamed it FabulousWeather... :) |
An adequate name 😄 |
f1c70e1
to
774af4f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work! It really is a nice sample :)
I added some comments to make sure it is on-par with the other samples before we merge it.
Fabulous.XamarinForms/samples/CounterApp/Droid/CounterApp.Droid.fsproj
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/App.fs
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/App.fs
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/App.fs
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/App.fs
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/App.fs
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/App.fs
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/App.fs
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/PancakeViewExtensions.fs
Outdated
Show resolved
Hide resolved
I have added the other projects and got the actual api working, just working on creating a simple renderer for the other platforms so that the pancakeview will work with them. |
@chrisevans9629 Ah, if some platforms don't support PancakeView officially, you don't need to implement it. For example, the Fabimals sample only target Android and iOS because the Shell control is only available on those. |
@TimLariviere Shell and CollectionView are now available on UWP. Please update. |
@Happypig375 Could you open a separate issue so we can track the progress of updating the related samples please? |
@TimLariviere I think have completed all the requested changes. Looks like the build is failing due to FSharp.Core. Do you know how to fix that? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I love that you used the JSON type provider.
Added some other comments, it should fix the build issue too.
I'm still waiting for my API key to become active before I can really try the app.
Fabulous.XamarinForms/samples/FabulousWeather/Droid/FabulousWeather.Droid.fsproj
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/Droid/FabulousWeather.Droid.fsproj
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/Droid/FabulousWeather.Droid.fsproj
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/Droid/FabulousWeather.Droid.fsproj
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/Droid/packages.config
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/FabulousWeather.fsproj
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/iOS/FabulousWeather.iOS.fsproj
Outdated
Show resolved
Hide resolved
Done! Looks like it's building now |
Christmas wish: It would be awesome if all the samples were also available as templates in the templates pack :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few comments about code formatting. It's good if the code in this sample is nice and pretty since it can be used as a like-for-like comparison with MVVM C#
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/App.fs
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/App.fs
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/App.fs
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/App.fs
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/samples/FabulousWeather/FabulousWeather/App.fs
Outdated
Show resolved
Hide resolved
If Santa Claus could bring Xamarin SDK-style projects or support for Currently, what's missing is a good way to handle centralized dependency versioning across the repo between old and SDK-style projects. Paket could fill that hole, but not if we want to ship the samples independently (or maybe I'm missing something?). |
Yup, agreed |
I notice in the projects that there is a lot of the use of "..\..\..\..\packages" to get to the packages folder. What if we made that path a build variable so it could be easily changed for the samples? Maybe as part of the build there could be an option to copy the samples into a new folder with it's own separate version of packet? To detach the samples from the project references, maybe we could have a local nuget folder with the Fabulous and liveupdate nugets that packet references? That way they could be copied and still be referencing the most current version. Doesn't seem to be an easy way to do it, but I'll tinker around with this in a different branch |
Maybe if we did something like this in the packet dependencies:
The nugets could be generated on build
Then the samples could be copied and we could maybe replace PackagesPath with whatever we need. Since there is no reference to the projects, users could just do paket install and it would get the packages from the local nuget folder or from nuget.org Could that work? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
I added the missing image for UWP and reformatted the code a bit to uniformize the styles
Pretty Weather App
I created a new Xamarin.Forms sample based on James Montemagno's pretty weather app
This is related to adding samples #242