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

Tizen sample added #481

Merged
merged 2 commits into from
Oct 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
using Xamarin.Forms.Platform.GTK.Renderers;
#elif TIZEN
using Xamarin.Forms.Platform.Tizen;
using NImage = Xamarin.Forms.Platform.Tizen.Native.Image;
using XForms = Xamarin.Forms.Forms;
#else
using Xamarin.Forms.Platform.WPF;
#endif
Expand All @@ -37,7 +39,7 @@ public async Task<bool> IsImageSourceValidAsync(ImageSource source)
return false;

#if TIZEN
return await handler.LoadImageAsync(null, source).ConfigureAwait(false);
return await handler.LoadImageAsync(new NImage(XForms.NativeParent), source).ConfigureAwait(false);
#elif MONOANDROID
var imageSource = await handler.LoadImageAsync(source, null).ConfigureAwait(false);
return imageSource != null;
Expand Down
22 changes: 22 additions & 0 deletions XamarinCommunityToolkitSample.Tizen/Main.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System;
using Xamarin.Forms;

namespace Xamarin.CommunityToolkit.Sample.Tizen
{
class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication
{
protected override void OnCreate()
{
base.OnCreate();
LoadApplication(new App());
}

static void Main(string[] args)
{
var app = new Program();
global::Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental");
global::Xamarin.Forms.Forms.Init(app, true);
app.Run(args);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project Sdk="Tizen.NET.Sdk/1.1.4">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>tizen40</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\XamarinCommunityToolkitSample\Xamarin.CommunityToolkit.Sample.csproj" />
<ProjectReference Include="..\XamarinCommunityToolkit\Xamarin.CommunityToolkit.csproj" />
</ItemGroup>

</Project>
Binary file added XamarinCommunityToolkitSample.Tizen/res/help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added XamarinCommunityToolkitSample.Tizen/res/info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added XamarinCommunityToolkitSample.Tizen/res/tab_feed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions XamarinCommunityToolkitSample.Tizen/tizen-manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="org.tizen.example.Xamarin.CommunityToolkit.Sample.Tizen" version="1.0.0" api-version="4" xmlns="http://tizen.org/ns/packages">
<profile name="common" />
<ui-application appid="org.tizen.example.Xamarin.CommunityToolkit.Sample.Tizen" exec="Xamarin.CommunityToolkit.Sample.Tizen.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single">
<label>Xamarin.CommunityToolkit.Sample.Tizen</label>
<icon>ic_splash.png</icon>
<metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />
<splash-screens />
</ui-application>
<shortcut-list />
<privileges>
<privilege>http://tizen.org/privilege/internet</privilege>
<privilege>http://tizen.org/privilege/camera</privilege>
<privilege>http://tizen.org/privilege/externalstorage</privilege>
<privilege>http://tizen.org/privilege/externalstorage.appdata</privilege>
<privilege>http://tizen.org/privilege/systemsettings</privilege>
</privileges>
<dependencies />
<provides-appdefined-privileges />
</manifest>
26 changes: 26 additions & 0 deletions XamarinCommunityToolkitSample.sln
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xamarin.CommunityToolkit.Sa
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xamarin.CommunityToolkit.Sample.GTK", "Xamarin.CommunityToolkit.Sample.GTK\Xamarin.CommunityToolkit.Sample.GTK.csproj", "{1C9105B3-2BB2-4333-9C52-2E0FC99135CF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Xamarin.CommunityToolkit.Sample.Tizen", "XamarinCommunityToolkitSample.Tizen\Xamarin.CommunityToolkit.Sample.Tizen.csproj", "{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -257,6 +259,30 @@ Global
{1C9105B3-2BB2-4333-9C52-2E0FC99135CF}.Release|x64.Build.0 = Release|Any CPU
{1C9105B3-2BB2-4333-9C52-2E0FC99135CF}.Release|x86.ActiveCfg = Release|Any CPU
{1C9105B3-2BB2-4333-9C52-2E0FC99135CF}.Release|x86.Build.0 = Release|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Debug|ARM.ActiveCfg = Debug|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Debug|ARM.Build.0 = Debug|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Debug|iPhone.Build.0 = Debug|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Debug|x64.ActiveCfg = Debug|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Debug|x64.Build.0 = Debug|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Debug|x86.ActiveCfg = Debug|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Debug|x86.Build.0 = Debug|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Release|Any CPU.Build.0 = Release|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Release|ARM.ActiveCfg = Release|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Release|ARM.Build.0 = Release|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Release|iPhone.ActiveCfg = Release|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Release|iPhone.Build.0 = Release|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Release|x64.ActiveCfg = Release|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Release|x64.Build.0 = Release|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Release|x86.ActiveCfg = Release|Any CPU
{416FAAA0-D6FD-4F95-BAB9-4A9438053CFD}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down