Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
DelcoigneYves committed Sep 24, 2016
2 parents 0255e9c + 43500f8 commit 281c8b7
Show file tree
Hide file tree
Showing 77 changed files with 8,376 additions and 1 deletion.
63 changes: 63 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
# Xamarin.GoogleAnalytics
# Xamarin.GoogleAnalytics
## Why this library?
There are already some libraries out there that allow us to use Google Analytics in shared code. However, all these implementations use the REST API of Google Analytics. This library uses the platform-specific binding libraries.

The current version does not include all features of the Google Analytics library. For me, these are the features that I need for most projects. Feel free to send me a pull request!

## How to use
Check out the sample!

CrossAnalytics.Current.TrackerId = "XX-XXXXXXXX-X";
CrossAnalytics.Current.EnableAdvertisingIdCollection(true);
CrossAnalytics.Current.EnableAutoActivityTracking(false);
CrossAnalytics.Current.EnableExceptionReporting(true);
CrossAnalytics.Current.SetLocalDispatchPeriod(1);
CrossAnalytics.Current.TrackScreen("home");
CrossAnalytics.Current.TrackEvent("home", "click");
CrossAnalytics.Current.SetCustomDimension(1, "something");
196 changes: 196 additions & 0 deletions Sample/Sample.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample", "Sample\Sample\Sample.csproj", "{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.Droid", "Sample\Sample.Droid\Sample.Droid.csproj", "{A30381BE-30C9-4326-BB05-3CDD3F671128}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.iOS", "Sample\Sample.iOS\Sample.iOS.csproj", "{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
Ad-Hoc|ARM = Ad-Hoc|ARM
Ad-Hoc|iPhone = Ad-Hoc|iPhone
Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
Ad-Hoc|x64 = Ad-Hoc|x64
Ad-Hoc|x86 = Ad-Hoc|x86
AppStore|Any CPU = AppStore|Any CPU
AppStore|ARM = AppStore|ARM
AppStore|iPhone = AppStore|iPhone
AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
AppStore|x64 = AppStore|x64
AppStore|x86 = AppStore|x86
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|iPhone = Debug|iPhone
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|iPhone = Release|iPhone
Release|iPhoneSimulator = Release|iPhoneSimulator
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Ad-Hoc|x64.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Ad-Hoc|x86.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.AppStore|Any CPU.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.AppStore|ARM.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.AppStore|ARM.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.AppStore|iPhone.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.AppStore|iPhone.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.AppStore|x64.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.AppStore|x64.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.AppStore|x86.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.AppStore|x86.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Debug|ARM.ActiveCfg = Debug|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Debug|ARM.Build.0 = Debug|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Debug|iPhone.Build.0 = Debug|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Debug|x64.ActiveCfg = Debug|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Debug|x64.Build.0 = Debug|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Debug|x86.ActiveCfg = Debug|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Debug|x86.Build.0 = Debug|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Release|Any CPU.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Release|ARM.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Release|ARM.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Release|iPhone.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Release|iPhone.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Release|x64.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Release|x64.Build.0 = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Release|x86.ActiveCfg = Release|Any CPU
{B6C8ED43-2352-43EB-8F56-CA6F562F0ACD}.Release|x86.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|ARM.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|iPhone.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|x64.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|x64.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|x86.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Ad-Hoc|x86.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|Any CPU.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|ARM.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|ARM.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|ARM.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|iPhone.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|iPhone.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|iPhone.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|x64.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|x64.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|x64.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|x86.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|x86.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.AppStore|x86.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|ARM.ActiveCfg = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|ARM.Build.0 = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|ARM.Deploy.0 = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|iPhone.Build.0 = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|x64.ActiveCfg = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|x64.Build.0 = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|x64.Deploy.0 = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|x86.ActiveCfg = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|x86.Build.0 = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Debug|x86.Deploy.0 = Debug|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|Any CPU.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|Any CPU.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|ARM.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|ARM.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|ARM.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|iPhone.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|iPhone.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|iPhone.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|x64.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|x64.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|x64.Deploy.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|x86.ActiveCfg = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|x86.Build.0 = Release|Any CPU
{A30381BE-30C9-4326-BB05-3CDD3F671128}.Release|x86.Deploy.0 = Release|Any CPU
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Ad-Hoc|ARM.ActiveCfg = Ad-Hoc|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Ad-Hoc|x64.ActiveCfg = Ad-Hoc|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Ad-Hoc|x86.ActiveCfg = Ad-Hoc|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.AppStore|ARM.ActiveCfg = AppStore|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.AppStore|iPhone.Build.0 = AppStore|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.AppStore|x64.ActiveCfg = AppStore|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.AppStore|x86.ActiveCfg = AppStore|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Debug|Any CPU.ActiveCfg = Debug|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Debug|ARM.ActiveCfg = Debug|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Debug|iPhone.ActiveCfg = Debug|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Debug|iPhone.Build.0 = Debug|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Debug|x64.ActiveCfg = Debug|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Debug|x86.ActiveCfg = Debug|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Release|Any CPU.ActiveCfg = Release|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Release|ARM.ActiveCfg = Release|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Release|iPhone.ActiveCfg = Release|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Release|iPhone.Build.0 = Release|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Release|x64.ActiveCfg = Release|iPhone
{A0D37FDE-C2CD-4AC8-B455-B678A1455ED2}.Release|x86.ActiveCfg = Release|iPhone
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
19 changes: 19 additions & 0 deletions Sample/Sample/Sample.Droid/Assets/AboutAssets.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Any raw assets you want to be deployed with your application can be placed in
this directory (and child directories) and given a Build Action of "AndroidAsset".

These files will be deployed with you package and will be accessible using Android's
AssetManager, like this:

public class ReadAsset : Activity
{
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);

InputStream input = Assets.Open ("my_asset.txt");
}
}

Additionally, some Android functions will automatically load asset files:

Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
27 changes: 27 additions & 0 deletions Sample/Sample/Sample.Droid/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;

using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;

namespace Sample.Droid
{
[Activity(Label = "Sample", Icon = "@drawable/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());
}
}
}

5 changes: 5 additions & 0 deletions Sample/Sample/Sample.Droid/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="15" />
<application android:label="Sample.Droid"></application>
</manifest>
Loading

0 comments on commit 281c8b7

Please sign in to comment.