Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Material] [Tizen] Adds Xamarin.Forms.Material.Tizen for Visual #5453

Merged
merged 5 commits into from Apr 15, 2019

Conversation

rookiejava
Copy link
Collaborator

@rookiejava rookiejava commented Mar 5, 2019

Description of Change

Added the Xamarin.Forms.Material.Tizen project for supporting Visual on Tizen. This PR includes the following material renderers.

  • Material ProgressBar
  • Material Slider
  • Material Frame

Issues Resolved

API Changes

None

Platforms Affected

  • Tizen

Behavioral/Visual Changes

New material renderers for tizen.

Before/After Screenshots

material_tizen

Testing Procedure

Use VisualGallery inside ControlGallery.

PR Checklist

  • Has automated tests
  • Rebased on top of the target branch at time of PR
  • Changes adhere to coding standard

@samhouts samhouts added this to In Review in v4.1.0 Mar 6, 2019
@samhouts samhouts added retarget-branch-required PR or associated issues target a milestone. Please target this PR to the matching branch. and removed retarget-branch-required PR or associated issues target a milestone. Please target this PR to the matching branch. labels Mar 6, 2019
@@ -8,16 +8,23 @@
using ASeekBar = Android.Widget.AbsSeekBar;
using PlatformColor = Android.Graphics.Color;
using Xamarin.Forms.Platform.Android;
#else
#elif __IOS__
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we sure about this ? iOS does uses this project ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well... I think so. I just followed the existing condition. 😉

@rookiejava
Copy link
Collaborator Author

If this PR can be merged sooner, it will help us proceed with the next step. 😉

Copy link
Contributor

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running through CI build real quick then I'll merge

@PureWeen
Copy link
Contributor

PureWeen commented Apr 9, 2019

@rookiejava The OSX build part of the CI is throwing the following errors

"/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj" (default target) (44) ->
  MaterialFrameRenderer.cs(8,12): error CS0246: The type or namespace name 'ExportRendererAttribute' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialFrameRenderer.cs(8,12): error CS0246: The type or namespace name 'ExportRenderer' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialProgressBarRenderer.cs(7,12): error CS0246: The type or namespace name 'ExportRendererAttribute' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialProgressBarRenderer.cs(7,12): error CS0246: The type or namespace name 'ExportRenderer' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialSliderRenderer.cs(7,12): error CS0246: The type or namespace name 'ExportRendererAttribute' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialSliderRenderer.cs(7,12): error CS0246: The type or namespace name 'ExportRenderer' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialFrameRenderer.cs(6,39): error CS0234: The type or namespace name 'Tizen' does not exist in the namespace 'Xamarin.Forms.Platform' (are you missing an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialFrameRenderer.cs(2,30): error CS0234: The type or namespace name 'Tizen' does not exist in the namespace 'Xamarin.Forms.Platform' (are you missing an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialProgressBarRenderer.cs(5,39): error CS0234: The type or namespace name 'Tizen' does not exist in the namespace 'Xamarin.Forms.Platform' (are you missing an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialProgressBarRenderer.cs(2,30): error CS0234: The type or namespace name 'Tizen' does not exist in the namespace 'Xamarin.Forms.Platform' (are you missing an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialSliderRenderer.cs(5,39): error CS0234: The type or namespace name 'Tizen' does not exist in the namespace 'Xamarin.Forms.Platform' (are you missing an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialSliderRenderer.cs(2,30): error CS0234: The type or namespace name 'Tizen' does not exist in the namespace 'Xamarin.Forms.Platform' (are you missing an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  Native/MBox.cs(3,30): error CS0234: The type or namespace name 'Tizen' does not exist in the namespace 'Xamarin.Forms.Platform' (are you missing an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  Native/MCanvas.cs(3,30): error CS0234: The type or namespace name 'Tizen' does not exist in the namespace 'Xamarin.Forms.Platform' (are you missing an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  /Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Android/MaterialColors.cs(18,30): error CS0234: The type or namespace name 'Tizen' does not exist in the namespace 'Xamarin.Forms.Platform' (are you missing an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialProgressBarRenderer.cs(10,45): error CS0246: The type or namespace name 'ProgressBarRenderer' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialSliderRenderer.cs(10,40): error CS0246: The type or namespace name 'SliderRenderer' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialFrameRenderer.cs(11,39): error CS0246: The type or namespace name 'ViewRenderer<,>' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  Native/MCanvas.cs(9,31): error CS0246: The type or namespace name 'IContainable<>' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  Native/MBox.cs(17,29): error CS0246: The type or namespace name 'LayoutEventArgs' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialProgressBarRenderer.cs(12,44): error CS0246: The type or namespace name 'ElementChangedEventArgs<>' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialSliderRenderer.cs(12,44): error CS0246: The type or namespace name 'ElementChangedEventArgs<>' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialFrameRenderer.cs(19,44): error CS0246: The type or namespace name 'ElementChangedEventArgs<>' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialSliderRenderer.cs(12,27): error CS0115: 'MaterialSliderRenderer.OnElementChanged(ElementChangedEventArgs<Slider>)': no suitable method found to override [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialFrameRenderer.cs(19,27): error CS0115: 'MaterialFrameRenderer.OnElementChanged(ElementChangedEventArgs<Frame>)': no suitable method found to override [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  MaterialProgressBarRenderer.cs(12,27): error CS0115: 'MaterialProgressBarRenderer.OnElementChanged(ElementChangedEventArgs<ProgressBar>)': no suitable method found to override [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]
  Native/MCanvas.cs(11,12): error CS0246: The type or namespace name 'ObservableCollection<>' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Material.Tizen/Xamarin.Forms.Material.Tizen.csproj]

    90 Warning(s)
    28 Error(s)

@PureWeen PureWeen added the DO-NOT-MERGE-!!! 🛑 This is in progress and needs to be updated before it can be merged. label Apr 9, 2019
@samhouts samhouts moved this from In Review to In Progress in v4.1.0 Apr 9, 2019
@rookiejava
Copy link
Collaborator Author

@PureWeen It seems related #4646. So, just like this, I've updated solution file (.sln) to make don't build it on iPhone and iPhoneSimulator. Could you check it again?

@PureWeen
Copy link
Contributor

@rookiejava

One more small fix it looks like

"/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.sln" (default target) (1) ->
"/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Platform.MacOS/Xamarin.Forms.Platform.MacOS.csproj" (default target) (33) ->
(CoreCompile target) -> 
  /Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Platform.iOS/Extensions/LabelExtensions.cs(111,4): error CS0618: 'NSLayoutManager.CharacterRangeForGlyphRange(NSRange, out NSRange)' is obsolete: 'Use 'GetCharacterRange' instead.' [/Users/vsts/agent/2.149.2/work/1/s/Xamarin.Forms.Platform.MacOS/Xamarin.Forms.Platform.MacOS.csproj]

    93 Warning(s)
    1 Error(s)

@rookiejava
Copy link
Collaborator Author

rookiejava commented Apr 11, 2019

@PureWeen
If I understand correctly, this error is already resolved in #5613 and is not related to this PR. Do I need to rebase with the latest code?

@PureWeen
Copy link
Contributor

@rookiejava yea if you could rebase that would be awesome!

It'd be ideal just to be sure this all compiles with the latest master build.

@rookiejava
Copy link
Collaborator Author

OK. I've just rebased.

@PureWeen
Copy link
Contributor

@rookiejava

The nuget command failed with exit code(1) and error(System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\a\1\s\Xamarin.Forms.Material.Tizen\bin\Debug\tizen40'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.CommonInit()
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
   at NuGet.Common.PathResolver.PerformWildcardSearch(String basePath, String searchPath, Boolean includeEmptyDirectories, String& normalizedBasePath)
   at NuGet.Packaging.PackageBuilder.ResolveSearchPattern(String basePath, String searchPath, String targetPath, Boolean includeEmptyDirectories)
   at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude)
   at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files)
   at NuGet.Packaging.PackageBuilder.ReadManifest(Stream stream, String basePath, Func`2 propertyProvider)
   at NuGet.Packaging.PackageBuilder..ctor(String path, String basePath, Func`2 propertyProvider, Boolean includeEmptyDirectories)
   at NuGet.Commands.PackCommandRunner.CreatePackageBuilderFromNuspec(String path)
   at NuGet.Commands.PackCommandRunner.BuildFromNuspec(String path)
   at NuGet.CommandLine.PackCommand.ExecuteCommand()
   at NuGet.CommandLine.Command.ExecuteCommandAsync()
   at NuGet.CommandLine.Command.Execute()
   at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args))
An error ocurred while trying to pack the files.

@rookiejava
Copy link
Collaborator Author

@PureWeen
Uhm, I'm not sure but I don't think this PR directly cause this error. The modification of nuspec file doesn't look particularly strange. Could you check the configuration of the CI server or internal build script to resolve path related problem? Thank you for your support. 😃

@PureWeen
Copy link
Contributor

Right!! I remember needing to do this with the other material.

At some point we'll have this moved all over to YAML and then we should be able to do this with the PRs
I updated the CI server but can you update the YAML file in this pr??

basically you have to add these lines

Xamarin.Forms.Material.Tizen/bin/$(BuildConfigurations)/**/*.dll
Xamarin.Forms.Material.Tizen/bin/$(BuildConfigurations)/**/*.pdb
Xamarin.Forms.Material.Tizen/bin/$(BuildConfigurations)/**/*.mdb

to this file
https://github.com/xamarin/Xamarin.Forms/blob/master/build/steps/build-windows.yml#L61

@PureWeen
Copy link
Contributor

🤞

@rookiejava
Copy link
Collaborator Author

🎉

@PureWeen PureWeen removed the DO-NOT-MERGE-!!! 🛑 This is in progress and needs to be updated before it can be merged. label Apr 15, 2019
@PureWeen PureWeen merged commit fda800c into xamarin:master Apr 15, 2019
v4.1.0 automation moved this from In Progress to Done Apr 15, 2019
@rookiejava rookiejava deleted the add-xf-material-tizen branch April 16, 2019 01:27
codemillmatt pushed a commit to codemillmatt/Xamarin.Forms that referenced this pull request Apr 19, 2019
…rin#5453)

* [Tizen] Adds Xamarin.Forms.Material.Tizen for Visual

* Update Tizen.NET.MaterialComponent for applying color scheme

* Don't build XF.Material.Tzien on iPhone and iPhoneSimulator

* Fix MCanvas build issue

* Update build-windows.yml for XF.Material.Tizen
samhouts pushed a commit that referenced this pull request Apr 25, 2019
* [Tizen] Adds Xamarin.Forms.Material.Tizen for Visual

* Update Tizen.NET.MaterialComponent for applying color scheme

* Don't build XF.Material.Tzien on iPhone and iPhoneSimulator

* Fix MCanvas build issue

* Update build-windows.yml for XF.Material.Tizen
@samhouts samhouts added this to the 4.0.0 milestone Apr 29, 2019
@samhouts samhouts removed this from Done in v4.1.0 Apr 30, 2019
@samhouts samhouts added this to Done in v4.0.0 Apr 30, 2019
AxelUser pushed a commit to AxelUser/Xamarin.Forms that referenced this pull request Jun 15, 2019
…rin#5453)

* [Tizen] Adds Xamarin.Forms.Material.Tizen for Visual

* Update Tizen.NET.MaterialComponent for applying color scheme

* Don't build XF.Material.Tzien on iPhone and iPhoneSimulator

* Fix MCanvas build issue

* Update build-windows.yml for XF.Material.Tizen
@samhouts samhouts added p/Android approved Has two approvals, no pending reviews, and no changes requested labels Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/visual approved Has two approvals, no pending reviews, and no changes requested p/Android p/Tizen t/enhancement ➕
Projects
No open projects
v4.0.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants