Permalink
Browse files

Create Xamarin.Forms environment.

  • Loading branch information...
ilanolkies committed Jun 6, 2018
1 parent 86a6ca6 commit fc2acd3ff7123e9c0b82a64343faacd53c1e1be8
Showing with 948 additions and 0 deletions.
  1. +193 −0 .gitignore
  2. +22 −0 XamarinSocial.Android/MainActivity.cs
  3. +6 −0 XamarinSocial.Android/Properties/AndroidManifest.xml
  4. +34 −0 XamarinSocial.Android/Properties/AssemblyInfo.cs
  5. +2 −0 XamarinSocial.Android/Resources/layout/Tabbar.axml
  6. +2 −0 XamarinSocial.Android/Resources/layout/Toolbar.axml
  7. +5 −0 XamarinSocial.Android/Resources/mipmap-anydpi-v26/icon.xml
  8. +5 −0 XamarinSocial.Android/Resources/mipmap-anydpi-v26/icon_round.xml
  9. BIN XamarinSocial.Android/Resources/mipmap-hdpi/Icon.png
  10. BIN XamarinSocial.Android/Resources/mipmap-hdpi/launcher_foreground.png
  11. BIN XamarinSocial.Android/Resources/mipmap-mdpi/icon.png
  12. BIN XamarinSocial.Android/Resources/mipmap-mdpi/launcher_foreground.png
  13. BIN XamarinSocial.Android/Resources/mipmap-xhdpi/Icon.png
  14. BIN XamarinSocial.Android/Resources/mipmap-xhdpi/launcher_foreground.png
  15. BIN XamarinSocial.Android/Resources/mipmap-xxhdpi/Icon.png
  16. BIN XamarinSocial.Android/Resources/mipmap-xxhdpi/launcher_foreground.png
  17. BIN XamarinSocial.Android/Resources/mipmap-xxxhdpi/Icon.png
  18. BIN XamarinSocial.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png
  19. +7 −0 XamarinSocial.Android/Resources/values/colors.xml
  20. +27 −0 XamarinSocial.Android/Resources/values/styles.xml
  21. +101 −0 XamarinSocial.Android/XamarinSocial.Android.csproj
  22. +17 −0 XamarinSocial.iOS/AppDelegate.cs
  23. +117 −0 XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
  24. BIN XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png
  25. BIN XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png
  26. BIN XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png
  27. BIN XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png
  28. BIN XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png
  29. BIN XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png
  30. BIN XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png
  31. BIN XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png
  32. BIN XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png
  33. BIN XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png
  34. BIN XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png
  35. BIN XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png
  36. BIN XamarinSocial.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png
  37. +7 −0 XamarinSocial.iOS/Entitlements.plist
  38. +38 −0 XamarinSocial.iOS/Info.plist
  39. +12 −0 XamarinSocial.iOS/Main.cs
  40. +36 −0 XamarinSocial.iOS/Properties/AssemblyInfo.cs
  41. BIN XamarinSocial.iOS/Resources/Default-568h@2x.png
  42. BIN XamarinSocial.iOS/Resources/Default-Portrait.png
  43. BIN XamarinSocial.iOS/Resources/Default-Portrait@2x.png
  44. BIN XamarinSocial.iOS/Resources/Default.png
  45. BIN XamarinSocial.iOS/Resources/Default@2x.png
  46. +39 −0 XamarinSocial.iOS/Resources/LaunchScreen.storyboard
  47. +161 −0 XamarinSocial.iOS/XamarinSocial.iOS.csproj
  48. +71 −0 XamarinSocial.sln
  49. +2 −0 XamarinSocial/App.xaml
  50. +16 −0 XamarinSocial/App.xaml.cs
  51. +6 −0 XamarinSocial/MainPage.xaml
  52. +12 −0 XamarinSocial/MainPage.xaml.cs
  53. +10 −0 XamarinSocial/XamarinSocial.csproj
@@ -0,0 +1,193 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# Visual Studio (>=2015) project-specific, machine local files
.vs/

# User-specific files
*.suo
*.user
*.sln.docstates
*.userprefs

# ignore Xamarin.Android Resource.Designer.cs files
**/*.Droid/**/[Rr]esource.[Dd]esigner.cs
**/*.Android/**/[Rr]esource.[Dd]esigner.cs
**/Android/**/[Rr]esource.[Dd]esigner.cs
**/Droid/**/[Rr]esource.[Dd]esigner.cs

# Xamarin Components
Components/

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
x64/
build/
bld/
[Bb]in/
[Oo]bj/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

#NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding addin-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
_NCrunch_*
.*crunch*.local.xml

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml

# NuGet Packages Directory
packages/
*.nuget.targets
*.lock.json
*.nuget.props

## TODO: If the tool you use requires repositories.config uncomment the next line
#!packages/repositories.config

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
# This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented)
!packages/build/

# Windows Azure Build Output
csx/
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
.DS_Store
*.bak

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/
@@ -0,0 +1,22 @@
using Android.App;
using Android.Content.PM;
using Android.OS;

namespace XamarinSocial.Droid
{
[Activity(Label = "XamarinSocial", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle bundle)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;

base.OnCreate(bundle);

global::Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new App());
}
}
}

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.ilanolkies.XamarinSocial">
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="27" />
<application android:label="XamarinSocial.Android">
</application>
</manifest>
@@ -0,0 +1,34 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("XamarinSocial.Android")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("XamarinSocial.Android")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

// Add some common permissions, these can be removed if not needed
[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.TabLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/sliding_tabs" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:tabIndicatorColor="@android:color/white" app:tabGravity="fill" app:tabMode="fixed" />
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" android:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/launcher_background" />
<foreground android:drawable="@mipmap/launcher_foreground" />
</adaptive-icon>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/launcher_background" />
<foreground android:drawable="@mipmap/launcher_foreground" />
</adaptive-icon>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="launcher_background">#FFFFFF</color>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
</resources>
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="MainTheme" parent="MainTheme.Base">
</style>
<!-- Base theme applied no matter what API -->
<style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
<item name="windowNoTitle">true</item>
<!--We will be using the toolbar so no need to show ActionBar-->
<item name="windowActionBar">false</item>
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette -->
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">#2196F3</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">#1976D2</item>
<!-- colorAccent is used as the default value for colorControlActivated
which is used to tint widgets -->
<item name="colorAccent">#FF4081</item>
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight and colorSwitchThumbNormal. -->
<item name="windowActionModeOverlay">true</item>
<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
</style>
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
<item name="colorAccent">#FF4081</item>
</style>
</resources>
Oops, something went wrong.

0 comments on commit fc2acd3

Please sign in to comment.