Add TizenFormsExtension.Init 85/109585/1 submit/tizen/20170111.021858
authorKangho Hur <kangho.hur@samsung.com>
Tue, 10 Jan 2017 23:57:35 +0000 (08:57 +0900)
committerKangho Hur <kangho.hur@samsung.com>
Tue, 10 Jan 2017 23:57:35 +0000 (08:57 +0900)
- This is an entry point of Tizen.Xamarin.Forms.Extension.Renderer

Change-Id: I796cbe5e77720560451021c4dafee8467bda82b4

Tizen.Xamarin.Forms.Extension.Renderer/Tizen.Xamarin.Forms.Extension.Renderer.csproj
Tizen.Xamarin.Forms.Extension.Renderer/TizenExtension.cs [new file with mode: 0644]

index 70bc4c2..8c1186d 100644 (file)
@@ -1,73 +1,74 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProjectGuid>{062E2DDE-F5D8-4385-858E-E895DD5D5D76}</ProjectGuid>
-    <OutputType>Library</OutputType>
-    <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>Tizen.Xamarin.Forms.Extension.Renderer</RootNamespace>
-    <AssemblyName>Tizen.Xamarin.Forms.Extension.Renderer</AssemblyName>
-    <FileAlignment>512</FileAlignment>
-  </PropertyGroup>
-  <PropertyGroup>
-    <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
-    <TargetFrameworkVersion>v1.6</TargetFrameworkVersion>
-    <NuGetTargetMoniker>.NETStandard,Version=v1.6</NuGetTargetMoniker>
-    <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
-    <NoStdLib>true</NoStdLib>
-    <NoWarn>$(NoWarn);1701;1702</NoWarn>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <DebugSymbols>true</DebugSymbols>
-    <DebugType>full</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>bin\Debug\</OutputPath>
-    <DefineConstants>DEBUG;TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <DebugType>pdbonly</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>bin\Release\</OutputPath>
-    <DefineConstants>TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <ItemGroup>
-    <Compile Include="Cells\DoubleLabelCellRenderer.cs" />
-    <Compile Include="Cells\MultilineCellRenderer.cs" />
-    <Compile Include="Cells\TypeCellRenderer.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Tizen.Xamarin.Forms.Extension.Renderer.project.json" />
-  </ItemGroup>
-  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+  <PropertyGroup>\r
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
+    <ProjectGuid>{062E2DDE-F5D8-4385-858E-E895DD5D5D76}</ProjectGuid>\r
+    <OutputType>Library</OutputType>\r
+    <AppDesignerFolder>Properties</AppDesignerFolder>\r
+    <RootNamespace>Tizen.Xamarin.Forms.Extension.Renderer</RootNamespace>\r
+    <AssemblyName>Tizen.Xamarin.Forms.Extension.Renderer</AssemblyName>\r
+    <FileAlignment>512</FileAlignment>\r
+  </PropertyGroup>\r
+  <PropertyGroup>\r
+    <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>\r
+    <TargetFrameworkVersion>v1.6</TargetFrameworkVersion>\r
+    <NuGetTargetMoniker>.NETStandard,Version=v1.6</NuGetTargetMoniker>\r
+    <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>\r
+    <NoStdLib>true</NoStdLib>\r
+    <NoWarn>$(NoWarn);1701;1702</NoWarn>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
+    <DebugSymbols>true</DebugSymbols>\r
+    <DebugType>full</DebugType>\r
+    <Optimize>true</Optimize>\r
+    <OutputPath>bin\Debug\</OutputPath>\r
+    <DefineConstants>DEBUG;TRACE</DefineConstants>\r
+    <ErrorReport>prompt</ErrorReport>\r
+    <WarningLevel>4</WarningLevel>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
+    <DebugType>pdbonly</DebugType>\r
+    <Optimize>true</Optimize>\r
+    <OutputPath>bin\Release\</OutputPath>\r
+    <DefineConstants>TRACE</DefineConstants>\r
+    <ErrorReport>prompt</ErrorReport>\r
+    <WarningLevel>4</WarningLevel>\r
+  </PropertyGroup>\r
+  <ItemGroup>\r
+    <Compile Include="Cells\DoubleLabelCellRenderer.cs" />\r
+    <Compile Include="Cells\MultilineCellRenderer.cs" />\r
+    <Compile Include="Cells\TypeCellRenderer.cs" />\r
+    <Compile Include="TizenExtension.cs" />\r
+    <Compile Include="Properties\AssemblyInfo.cs" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Tizen.Xamarin.Forms.Extension.Renderer.project.json" />\r
+  </ItemGroup>\r
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
                Other similar extension points exist, see Microsoft.Common.targets.
        <Target Name="BeforeBuild">
        </Target>
        <Target Name="AfterBuild">
        </Target>
-       -->
-  <ItemGroup>
-    <ProjectReference Include="..\Tizen.Xamarin.Forms.Extension\Tizen.Xamarin.Forms.Extension.csproj">
-      <Project>{62531FB2-271B-4669-804E-7287A744CFD0}</Project>
-      <Name>Tizen.Xamarin.Forms.Extension</Name>
-    </ProjectReference>
-  </ItemGroup>
-  <PropertyGroup>
+       -->\r
+  <ItemGroup>\r
+    <ProjectReference Include="..\Tizen.Xamarin.Forms.Extension\Tizen.Xamarin.Forms.Extension.csproj">\r
+      <Project>{62531FB2-271B-4669-804E-7287A744CFD0}</Project>\r
+      <Name>Tizen.Xamarin.Forms.Extension</Name>\r
+    </ProjectReference>\r
+  </ItemGroup>\r
+  <PropertyGroup>\r
     <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and
                         https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild
-               -->
+               -->\r
     <!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two
                         properties to any folder that exists to skip the GetReferenceAssemblyPaths task (not target) and
                         to prevent it from outputting a warning (MSB3644).
-               -->
-    <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>
-    <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
-    <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
-  </PropertyGroup>
-</Project>
+               -->\r
+    <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>\r
+    <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>\r
+    <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>\r
+  </PropertyGroup>\r
+</Project>
\ No newline at end of file
diff --git a/Tizen.Xamarin.Forms.Extension.Renderer/TizenExtension.cs b/Tizen.Xamarin.Forms.Extension.Renderer/TizenExtension.cs
new file mode 100644 (file)
index 0000000..abee9c8
--- /dev/null
@@ -0,0 +1,15 @@
+namespace Tizen.Xamarin.Forms.Extension.Renderer
+{
+    public static class TizenFormsExtension
+    {
+        public static bool IsInitialized { get; private set; }
+
+        public static void Init()
+        {
+            if (IsInitialized)
+                return;
+
+            IsInitialized = true;
+        }
+    }
+}