├── .DS_Store
├── .gitignore
├── Droid
├── Helpers
│ └── Settings.cs
├── MainActivity.cs
├── Properties
│ ├── AndroidManifest.xml
│ └── AssemblyInfo.cs
├── Resources
│ ├── Resource.designer.cs
│ ├── drawable-hdpi
│ │ └── icon.png
│ ├── drawable-mdpi
│ │ └── icon.png
│ ├── drawable-xhdpi
│ │ └── icon.png
│ ├── drawable-xxhdpi
│ │ └── icon.png
│ ├── drawable-xxxhdpi
│ │ └── icon.png
│ ├── drawable
│ │ ├── icon.png
│ │ ├── mclogo.png
│ │ ├── splash.png
│ │ └── splash_screen.axml
│ └── values
│ │ └── styles.xml
├── SplashActivity.cs
├── packages.config
└── sampleAppXamarin.Droid.csproj
├── SECURITY.md
├── UITest
├── AppInitializer.cs
├── Tests.cs
├── UITest.csproj
└── packages.config
├── iOS
├── AppDelegate.cs
├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Appicon120-1.png
│ │ ├── Appicon120.png
│ │ ├── Appicon180.png
│ │ ├── Appicon58.png
│ │ ├── Appicon80.png
│ │ ├── Appicon87.png
│ │ └── Contents.json
│ └── Contents.json
├── Entitlements.plist
├── Helpers
│ └── Settings.cs
├── Info.plist
├── LaunchScreen.storyboard
├── Main.cs
├── Resources
│ ├── mclogo.png
│ ├── mclogo@2x.png
│ ├── mclogo@3x.png
│ ├── splash.png
│ ├── splash@2x.png
│ └── splash@3x.png
├── packages.config
└── sampleAppXamarin.iOS.csproj
├── sampleAppXamarin.sln
└── sampleAppXamarin
├── App.xaml
├── App.xaml.cs
├── ButtonPage.xaml
├── ButtonPage.xaml.cs
├── sampleAppXamarin.projitems
└── sampleAppXamarin.shproj
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/.DS_Store
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ##
5 | .DS_Store
6 |
7 | # User-specific files
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Build results
17 | [Dd]ebug/
18 | [Dd]ebugPublic/
19 | [Rr]elease/
20 | [Rr]eleases/
21 | x64/
22 | x86/
23 | bld/
24 | [Bb]in/
25 | [Oo]bj/
26 | [Ll]og/
27 |
28 | # Visual Studio 2015 cache/options directory
29 | .vs/
30 | # Uncomment if you have tasks that create the project's static files in wwwroot
31 | #wwwroot/
32 |
33 | # MSTest test Results
34 | [Tt]est[Rr]esult*/
35 | [Bb]uild[Ll]og.*
36 |
37 | # NUNIT
38 | *.VisualState.xml
39 | TestResult.xml
40 |
41 | # Build Results of an ATL Project
42 | [Dd]ebugPS/
43 | [Rr]eleasePS/
44 | dlldata.c
45 |
46 | # .NET Core
47 | project.lock.json
48 | project.fragment.lock.json
49 | artifacts/
50 | **/Properties/launchSettings.json
51 |
52 | *_i.c
53 | *_p.c
54 | *_i.h
55 | *.ilk
56 | *.meta
57 | *.obj
58 | *.pch
59 | *.pdb
60 | *.pgc
61 | *.pgd
62 | *.rsp
63 | *.sbr
64 | *.tlb
65 | *.tli
66 | *.tlh
67 | *.tmp
68 | *.tmp_proj
69 | *.log
70 | *.vspscc
71 | *.vssscc
72 | .builds
73 | *.pidb
74 | *.svclog
75 | *.scc
76 |
77 | # Chutzpah Test files
78 | _Chutzpah*
79 |
80 | # Visual C++ cache files
81 | ipch/
82 | *.aps
83 | *.ncb
84 | *.opendb
85 | *.opensdf
86 | *.sdf
87 | *.cachefile
88 | *.VC.db
89 | *.VC.VC.opendb
90 |
91 | # Visual Studio profiler
92 | *.psess
93 | *.vsp
94 | *.vspx
95 | *.sap
96 |
97 | # TFS 2012 Local Workspace
98 | $tf/
99 |
100 | # Guidance Automation Toolkit
101 | *.gpState
102 |
103 | # ReSharper is a .NET coding add-in
104 | _ReSharper*/
105 | *.[Rr]e[Ss]harper
106 | *.DotSettings.user
107 |
108 | # JustCode is a .NET coding add-in
109 | .JustCode
110 |
111 | # TeamCity is a build add-in
112 | _TeamCity*
113 |
114 | # DotCover is a Code Coverage Tool
115 | *.dotCover
116 |
117 | # Visual Studio code coverage results
118 | *.coverage
119 | *.coveragexml
120 |
121 | # NCrunch
122 | _NCrunch_*
123 | .*crunch*.local.xml
124 | nCrunchTemp_*
125 |
126 | # MightyMoose
127 | *.mm.*
128 | AutoTest.Net/
129 |
130 | # Web workbench (sass)
131 | .sass-cache/
132 |
133 | # Installshield output folder
134 | [Ee]xpress/
135 |
136 | # DocProject is a documentation generator add-in
137 | DocProject/buildhelp/
138 | DocProject/Help/*.HxT
139 | DocProject/Help/*.HxC
140 | DocProject/Help/*.hhc
141 | DocProject/Help/*.hhk
142 | DocProject/Help/*.hhp
143 | DocProject/Help/Html2
144 | DocProject/Help/html
145 |
146 | # Click-Once directory
147 | publish/
148 |
149 | # Publish Web Output
150 | *.[Pp]ublish.xml
151 | *.azurePubxml
152 | # TODO: Comment the next line if you want to checkin your web deploy settings
153 | # but database connection strings (with potential passwords) will be unencrypted
154 | *.pubxml
155 | *.publishproj
156 |
157 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
158 | # checkin your Azure Web App publish settings, but sensitive information contained
159 | # in these scripts will be unencrypted
160 | PublishScripts/
161 |
162 | # NuGet Packages
163 | *.nupkg
164 | # The packages folder can be ignored because of Package Restore
165 | **/packages/*
166 | # except build/, which is used as an MSBuild target.
167 | !**/packages/build/
168 | # Uncomment if necessary however generally it will be regenerated when needed
169 | #!**/packages/repositories.config
170 | # NuGet v3's project.json files produces more ignorable files
171 | *.nuget.props
172 | *.nuget.targets
173 |
174 | # Microsoft Azure Build Output
175 | csx/
176 | *.build.csdef
177 |
178 | # Microsoft Azure Emulator
179 | ecf/
180 | rcf/
181 |
182 | # Windows Store app package directories and files
183 | AppPackages/
184 | BundleArtifacts/
185 | Package.StoreAssociation.xml
186 | _pkginfo.txt
187 |
188 | # Visual Studio cache files
189 | # files ending in .cache can be ignored
190 | *.[Cc]ache
191 | # but keep track of directories ending in .cache
192 | !*.[Cc]ache/
193 |
194 | # Others
195 | ClientBin/
196 | ~$*
197 | *~
198 | *.dbmdl
199 | *.dbproj.schemaview
200 | *.jfm
201 | *.pfx
202 | *.publishsettings
203 | orleans.codegen.cs
204 |
205 | # Since there are multiple workflows, uncomment next line to ignore bower_components
206 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
207 | #bower_components/
208 |
209 | # RIA/Silverlight projects
210 | Generated_Code/
211 |
212 | # Backup & report files from converting an old project file
213 | # to a newer Visual Studio version. Backup files are not needed,
214 | # because we have git ;-)
215 | _UpgradeReport_Files/
216 | Backup*/
217 | UpgradeLog*.XML
218 | UpgradeLog*.htm
219 |
220 | # SQL Server files
221 | *.mdf
222 | *.ldf
223 | *.ndf
224 |
225 | # Business Intelligence projects
226 | *.rdl.data
227 | *.bim.layout
228 | *.bim_*.settings
229 |
230 | # Microsoft Fakes
231 | FakesAssemblies/
232 |
233 | # GhostDoc plugin setting file
234 | *.GhostDoc.xml
235 |
236 | # Node.js Tools for Visual Studio
237 | .ntvs_analysis.dat
238 | node_modules/
239 |
240 | # Typescript v1 declaration files
241 | typings/
242 |
243 | # Visual Studio 6 build log
244 | *.plg
245 |
246 | # Visual Studio 6 workspace options file
247 | *.opt
248 |
249 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
250 | *.vbw
251 |
252 | # Visual Studio LightSwitch build output
253 | **/*.HTMLClient/GeneratedArtifacts
254 | **/*.DesktopClient/GeneratedArtifacts
255 | **/*.DesktopClient/ModelManifest.xml
256 | **/*.Server/GeneratedArtifacts
257 | **/*.Server/ModelManifest.xml
258 | _Pvt_Extensions
259 |
260 | # Paket dependency manager
261 | .paket/paket.exe
262 | paket-files/
263 |
264 | # FAKE - F# Make
265 | .fake/
266 |
267 | # JetBrains Rider
268 | .idea/
269 | *.sln.iml
270 |
271 | # CodeRush
272 | .cr/
273 |
274 | # Python Tools for Visual Studio (PTVS)
275 | __pycache__/
276 | *.pyc
277 |
278 | # Cake - Uncomment if you are using it
279 | # tools/**
280 | # !tools/packages.config
281 |
282 | # Telerik's JustMock configuration file
283 | *.jmconfig
284 |
285 | # BizTalk build output
286 | *.btp.cs
287 | *.btm.cs
288 | *.odx.cs
289 | *.xsd.cs
290 | .DS_Store
291 |
--------------------------------------------------------------------------------
/Droid/Helpers/Settings.cs:
--------------------------------------------------------------------------------
1 | /*
2 | // Helpers/Settings.cs This file was automatically added when you installed the Settings Plugin. If you are not using a PCL then comment this file back in to use it.
3 | using Plugin.Settings;
4 | using Plugin.Settings.Abstractions;
5 |
6 | namespace sampleAppXamarin.Droid.Helpers
7 | {
8 | ///
9 | /// This is the Settings static class that can be used in your Core solution or in any
10 | /// of your client applications. All settings are laid out the same exact way with getters
11 | /// and setters.
12 | ///
13 | public static class Settings
14 | {
15 | private static ISettings AppSettings
16 | {
17 | get
18 | {
19 | return CrossSettings.Current;
20 | }
21 | }
22 |
23 | #region Setting Constants
24 |
25 | private const string SettingsKey = "settings_key";
26 | private static readonly string SettingsDefault = string.Empty;
27 |
28 | #endregion
29 |
30 |
31 | public static string GeneralSettings
32 | {
33 | get
34 | {
35 | return AppSettings.GetValueOrDefault(SettingsKey, SettingsDefault);
36 | }
37 | set
38 | {
39 | AppSettings.AddOrUpdateValue(SettingsKey, value);
40 | }
41 | }
42 |
43 | }
44 | }*/
--------------------------------------------------------------------------------
/Droid/MainActivity.cs:
--------------------------------------------------------------------------------
1 | using Android.App;
2 | using Android.Content;
3 | using Android.Content.PM;
4 | using Android.OS;
5 |
6 | namespace sampleAppXamarin.Droid
7 | {
8 | [Activity(Label = "AC Sample App", Icon = "@drawable/icon", Theme = "@style/MyTheme", ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation, ScreenOrientation = ScreenOrientation.Portrait)]
9 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
10 | {
11 | protected override void OnCreate(Bundle bundle)
12 | {
13 | base.OnCreate(bundle);
14 |
15 | global::Xamarin.Forms.Forms.Init(this, bundle);
16 |
17 | LoadApplication(new App());
18 | }
19 |
20 | protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
21 | {
22 | base.OnActivityResult(requestCode, resultCode, data);
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Droid/Properties/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Droid/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using Android.App;
3 |
4 | // Information about this assembly is defined by the following attributes.
5 | // Change them to the values specific to your project.
6 |
7 | [assembly: AssemblyTitle("AC Sample App")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("")]
11 | [assembly: AssemblyProduct("")]
12 | [assembly: AssemblyCopyright("${AuthorCopyright}")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 | [assembly: Application(Icon = "@drawable/icon")]
16 |
17 | // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
18 | // The form "{Major}.{Minor}.*" will automatically update the build and revision,
19 | // and "{Major}.{Minor}.{Build}.*" will update just the revision.
20 |
21 | [assembly: AssemblyVersion("1.0.0")]
22 |
23 | // The following attributes are used to specify the signing key for the assembly,
24 | // if desired. See the Mono documentation for more information about signing.
25 |
26 | //[assembly: AssemblyDelaySign(false)]
27 | //[assembly: AssemblyKeyFile("")]
28 |
29 |
--------------------------------------------------------------------------------
/Droid/Resources/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/Droid/Resources/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/Droid/Resources/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/Droid/Resources/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/Droid/Resources/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/Droid/Resources/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/Droid/Resources/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/Droid/Resources/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/Droid/Resources/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/Droid/Resources/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/Droid/Resources/drawable/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/Droid/Resources/drawable/icon.png
--------------------------------------------------------------------------------
/Droid/Resources/drawable/mclogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/Droid/Resources/drawable/mclogo.png
--------------------------------------------------------------------------------
/Droid/Resources/drawable/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/Droid/Resources/drawable/splash.png
--------------------------------------------------------------------------------
/Droid/Resources/drawable/splash_screen.axml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 | -
7 |
11 |
12 |
--------------------------------------------------------------------------------
/Droid/Resources/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
25 |
28 |
33 |
--------------------------------------------------------------------------------
/Droid/SplashActivity.cs:
--------------------------------------------------------------------------------
1 | using Android.App;
2 | using Android.OS;
3 |
4 | namespace sampleAppXamarin.Droid
5 | {
6 | [Activity(Theme = "@style/Theme.Splash", MainLauncher = true, NoHistory = true)]
7 | public class SplashActivity : Activity
8 | {
9 | protected override void OnCreate(Bundle savedInstanceState)
10 | {
11 | base.OnCreate(savedInstanceState);
12 | this.StartActivity(typeof(MainActivity));
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Droid/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/Droid/sampleAppXamarin.Droid.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}
8 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
9 | Library
10 | sampleAppXamarin.Droid
11 | sampleAppXamarin.Droid
12 | v9.0
13 | True
14 | Resources\Resource.designer.cs
15 | Resource
16 | Properties\AndroidManifest.xml
17 | Resources
18 | Assets
19 |
20 |
21 | true
22 | full
23 | false
24 | bin\Debug
25 | DEBUG;
26 | prompt
27 | 4
28 | None
29 |
30 |
31 | true
32 | pdbonly
33 | true
34 | bin\Release
35 | prompt
36 | 4
37 | true
38 | false
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | ..\packages\Microsoft.Net.Http.2.2.29\lib\monoandroid\System.Net.Http.Extensions.dll
47 |
48 |
49 | ..\packages\Microsoft.Net.Http.2.2.29\lib\monoandroid\System.Net.Http.Primitives.dll
50 |
51 |
52 |
53 |
54 |
55 | ..\packages\Xamarin.Android.Support.v4.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.v4.dll
56 |
57 |
58 | ..\packages\Xamarin.Android.Support.Vector.Drawable.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.Vector.Drawable.dll
59 |
60 |
61 | ..\packages\Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.Animated.Vector.Drawable.dll
62 |
63 |
64 | ..\packages\Xamarin.Android.Support.v7.RecyclerView.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.v7.RecyclerView.dll
65 |
66 |
67 | ..\packages\Xamarin.Android.Support.v7.AppCompat.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.v7.AppCompat.dll
68 |
69 |
70 | ..\packages\Xamarin.Android.Support.Design.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.Design.dll
71 |
72 |
73 | ..\packages\Xamarin.Android.Support.v7.CardView.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.v7.CardView.dll
74 |
75 |
76 | ..\packages\Xamarin.Android.Support.v7.MediaRouter.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.MediaRouter.dll
77 |
78 |
79 | ..\packages\Newtonsoft.Json.12.0.3\lib\netstandard2.0\Newtonsoft.Json.dll
80 |
81 |
82 | ..\packages\Xam.Plugin.Connectivity.3.0.2\lib\MonoAndroid10\Plugin.Connectivity.Abstractions.dll
83 |
84 |
85 | ..\packages\Xam.Plugin.Connectivity.3.0.2\lib\MonoAndroid10\Plugin.Connectivity.dll
86 |
87 |
88 | ..\packages\Xam.Plugins.Settings.3.0.1\lib\MonoAndroid10\Plugin.Settings.Abstractions.dll
89 |
90 |
91 | ..\packages\Xam.Plugins.Settings.3.0.1\lib\MonoAndroid10\Plugin.Settings.dll
92 |
93 |
94 | ..\packages\Xamarin.Forms.4.3.0.991211\lib\MonoAndroid90\FormsViewGroup.dll
95 |
96 |
97 | ..\packages\Xamarin.Forms.4.3.0.991211\lib\MonoAndroid90\Xamarin.Forms.Core.dll
98 |
99 |
100 | ..\packages\Xamarin.Forms.4.3.0.991211\lib\MonoAndroid90\Xamarin.Forms.Platform.Android.dll
101 |
102 |
103 | ..\packages\Xamarin.Forms.4.3.0.991211\lib\MonoAndroid90\Xamarin.Forms.Platform.dll
104 |
105 |
106 | ..\packages\Xamarin.Forms.4.3.0.991211\lib\MonoAndroid90\Xamarin.Forms.Xaml.dll
107 |
108 |
109 | ..\packages\Microsoft.AppCenter.2.6.2\lib\MonoAndroid403\Microsoft.AppCenter.Android.Bindings.dll
110 |
111 |
112 | ..\packages\Microsoft.AppCenter.2.6.2\lib\MonoAndroid403\Microsoft.AppCenter.dll
113 |
114 |
115 | ..\packages\Microsoft.AppCenter.Analytics.2.6.2\lib\MonoAndroid403\Microsoft.AppCenter.Analytics.Android.Bindings.dll
116 |
117 |
118 | ..\packages\Microsoft.AppCenter.Analytics.2.6.2\lib\MonoAndroid403\Microsoft.AppCenter.Analytics.dll
119 |
120 |
121 | ..\packages\Microsoft.AppCenter.Crashes.2.6.2\lib\MonoAndroid403\Microsoft.AppCenter.Crashes.Android.Bindings.dll
122 |
123 |
124 | ..\packages\Microsoft.AppCenter.Crashes.2.6.2\lib\MonoAndroid403\Microsoft.AppCenter.Crashes.dll
125 |
126 |
127 | ..\packages\Xamarin.Android.Support.Annotations.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.Annotations.dll
128 |
129 |
130 |
131 | ..\packages\Xamarin.Android.Arch.Core.Common.1.1.1.3\lib\monoandroid90\Xamarin.Android.Arch.Core.Common.dll
132 |
133 |
134 | ..\packages\Xamarin.Android.Arch.Core.Runtime.1.1.1.3\lib\monoandroid90\Xamarin.Android.Arch.Core.Runtime.dll
135 |
136 |
137 | ..\packages\Xamarin.Android.Arch.Lifecycle.Common.1.1.1.3\lib\monoandroid90\Xamarin.Android.Arch.Lifecycle.Common.dll
138 |
139 |
140 | ..\packages\Xamarin.Android.Arch.Lifecycle.LiveData.Core.1.1.1.3\lib\monoandroid90\Xamarin.Android.Arch.Lifecycle.LiveData.Core.dll
141 |
142 |
143 | ..\packages\Xamarin.Android.Arch.Lifecycle.LiveData.1.1.1.3\lib\monoandroid90\Xamarin.Android.Arch.Lifecycle.LiveData.dll
144 |
145 |
146 | ..\packages\Xamarin.Android.Arch.Lifecycle.Runtime.1.1.1.3\lib\monoandroid90\Xamarin.Android.Arch.Lifecycle.Runtime.dll
147 |
148 |
149 | ..\packages\Xamarin.Android.Arch.Lifecycle.ViewModel.1.1.1.3\lib\monoandroid90\Xamarin.Android.Arch.Lifecycle.ViewModel.dll
150 |
151 |
152 | ..\packages\Xamarin.Android.Support.Collections.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.Collections.dll
153 |
154 |
155 | ..\packages\Xamarin.Android.Support.CursorAdapter.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.CursorAdapter.dll
156 |
157 |
158 | ..\packages\Xamarin.Android.Support.DocumentFile.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.DocumentFile.dll
159 |
160 |
161 | ..\packages\Xamarin.Android.Support.Interpolator.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.Interpolator.dll
162 |
163 |
164 | ..\packages\Xamarin.Android.Support.LocalBroadcastManager.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.LocalBroadcastManager.dll
165 |
166 |
167 | ..\packages\Xamarin.Android.Support.Print.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.Print.dll
168 |
169 |
170 | ..\packages\Xamarin.Android.Support.VersionedParcelable.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.VersionedParcelable.dll
171 |
172 |
173 | ..\packages\Xamarin.Android.Support.Compat.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.Compat.dll
174 |
175 |
176 | ..\packages\Xamarin.Android.Support.AsyncLayoutInflater.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.AsyncLayoutInflater.dll
177 |
178 |
179 | ..\packages\Xamarin.Android.Support.CustomView.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.CustomView.dll
180 |
181 |
182 | ..\packages\Xamarin.Android.Support.CoordinaterLayout.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.CoordinaterLayout.dll
183 |
184 |
185 | ..\packages\Xamarin.Android.Support.DrawerLayout.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.DrawerLayout.dll
186 |
187 |
188 | ..\packages\Xamarin.Android.Support.Loader.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.Loader.dll
189 |
190 |
191 | ..\packages\Xamarin.Android.Support.Core.Utils.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.Core.Utils.dll
192 |
193 |
194 | ..\packages\Xamarin.Android.Support.Media.Compat.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.Media.Compat.dll
195 |
196 |
197 | ..\packages\Xamarin.Android.Support.SlidingPaneLayout.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.SlidingPaneLayout.dll
198 |
199 |
200 | ..\packages\Xamarin.Android.Support.SwipeRefreshLayout.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.SwipeRefreshLayout.dll
201 |
202 |
203 | ..\packages\Xamarin.Android.Support.ViewPager.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.ViewPager.dll
204 |
205 |
206 | ..\packages\Xamarin.Android.Support.Core.UI.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.Core.UI.dll
207 |
208 |
209 | ..\packages\Xamarin.Android.Support.CustomTabs.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.CustomTabs.dll
210 |
211 |
212 | ..\packages\Xamarin.Android.Support.Fragment.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.Fragment.dll
213 |
214 |
215 | ..\packages\Xamarin.Android.Support.Transition.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.Transition.dll
216 |
217 |
218 | ..\packages\Xamarin.Android.Support.v7.Palette.28.0.0.3\lib\monoandroid90\Xamarin.Android.Support.v7.Palette.dll
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | ## Security
4 |
5 | Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6 |
7 | If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
8 |
9 | ## Reporting Security Issues
10 |
11 | **Please do not report security vulnerabilities through public GitHub issues.**
12 |
13 | Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
14 |
15 | If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
16 |
17 | You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
18 |
19 | Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20 |
21 | * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22 | * Full paths of source file(s) related to the manifestation of the issue
23 | * The location of the affected source code (tag/branch/commit or direct URL)
24 | * Any special configuration required to reproduce the issue
25 | * Step-by-step instructions to reproduce the issue
26 | * Proof-of-concept or exploit code (if possible)
27 | * Impact of the issue, including how an attacker might exploit the issue
28 |
29 | This information will help us triage your report more quickly.
30 |
31 | If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
32 |
33 | ## Preferred Languages
34 |
35 | We prefer all communications to be in English.
36 |
37 | ## Policy
38 |
39 | Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
40 |
41 |
42 |
--------------------------------------------------------------------------------
/UITest/AppInitializer.cs:
--------------------------------------------------------------------------------
1 | using Xamarin.UITest;
2 |
3 | namespace UITest
4 | {
5 | public class AppInitializer
6 | {
7 | public static IApp StartApp(Platform platform)
8 | {
9 | // TODO: If the iOS or Android app being tested is included in the solution
10 | // then open the Unit Tests window, right click Test Apps, select Add App Project
11 | // and select the app projects that should be tested.
12 | //
13 | // The iOS project should have the Xamarin.TestCloud.Agent NuGet package
14 | // installed. To start the Test Cloud Agent the following code should be
15 | // added to the FinishedLaunching method of the AppDelegate:
16 | //
17 | // #if ENABLE_TEST_CLOUD
18 | // Xamarin.Calabash.Start();
19 | // #endif
20 | if (platform == Platform.Android)
21 | {
22 | return ConfigureApp
23 | .Android
24 | // TODO: Update this path to point to your Android app and uncomment the
25 | // code if the app is not included in the solution.
26 | //.ApkFile ("../../../Droid/bin/Debug/xamarinforms.apk")
27 | .StartApp();
28 | }
29 |
30 | return ConfigureApp
31 | .iOS
32 | // TODO: Update this path to point to your iOS app and uncomment the
33 | // code if the app is not included in the solution.
34 | //.AppBundle ("../../../iOS/bin/iPhoneSimulator/Debug/XamarinForms.iOS.app")
35 | .StartApp();
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/UITest/Tests.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Linq;
4 | using NUnit.Framework;
5 | using Xamarin.UITest;
6 | using Xamarin.UITest.Queries;
7 |
8 | namespace UITest
9 | {
10 | [TestFixture(Platform.Android)]
11 | [TestFixture(Platform.iOS)]
12 | public class Tests
13 | {
14 | IApp app;
15 | Platform platform;
16 |
17 | public Tests(Platform platform)
18 | {
19 | this.platform = platform;
20 | }
21 |
22 | [SetUp]
23 | public void BeforeEachTest()
24 | {
25 | app = AppInitializer.StartApp(platform);
26 | }
27 |
28 | [Test]
29 | public void AppLaunches()
30 | {
31 | Assert.IsTrue(true);
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/UITest/UITest.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | {9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}
7 | Library
8 | UITest
9 | UITest
10 | v4.6.1
11 |
12 |
13 | true
14 | full
15 | false
16 | bin\Debug
17 | DEBUG;
18 | prompt
19 | 4
20 |
21 |
22 | true
23 | bin\Release
24 | prompt
25 | 4
26 |
27 |
28 |
29 |
30 | ..\packages\Xamarin.UITest.3.0.4\lib\net45\Xamarin.UITest.dll
31 |
32 |
33 | ..\packages\NUnit.2.6.4\lib\nunit.framework.dll
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}
43 | sampleAppXamarin.Droid
44 | False
45 | False
46 |
47 |
48 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}
49 | sampleAppXamarin.iOS
50 | False
51 | False
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/UITest/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/iOS/AppDelegate.cs:
--------------------------------------------------------------------------------
1 | using Foundation;
2 | using UIKit;
3 |
4 | namespace sampleAppXamarin.iOS
5 | {
6 | [Register("AppDelegate")]
7 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
8 | {
9 | public override bool FinishedLaunching(UIApplication app, NSDictionary options)
10 | {
11 | global::Xamarin.Forms.Forms.Init();
12 | LoadApplication(new App());
13 |
14 | //#if ENABLE_TEST_CLOUD
15 | //Xamarin.Calabash.Start();
16 | //#endif
17 |
18 | return base.FinishedLaunching(app, options);
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/iOS/Assets.xcassets/AppIcon.appiconset/Appicon120-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/iOS/Assets.xcassets/AppIcon.appiconset/Appicon120-1.png
--------------------------------------------------------------------------------
/iOS/Assets.xcassets/AppIcon.appiconset/Appicon120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/iOS/Assets.xcassets/AppIcon.appiconset/Appicon120.png
--------------------------------------------------------------------------------
/iOS/Assets.xcassets/AppIcon.appiconset/Appicon180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/iOS/Assets.xcassets/AppIcon.appiconset/Appicon180.png
--------------------------------------------------------------------------------
/iOS/Assets.xcassets/AppIcon.appiconset/Appicon58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/iOS/Assets.xcassets/AppIcon.appiconset/Appicon58.png
--------------------------------------------------------------------------------
/iOS/Assets.xcassets/AppIcon.appiconset/Appicon80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/iOS/Assets.xcassets/AppIcon.appiconset/Appicon80.png
--------------------------------------------------------------------------------
/iOS/Assets.xcassets/AppIcon.appiconset/Appicon87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/iOS/Assets.xcassets/AppIcon.appiconset/Appicon87.png
--------------------------------------------------------------------------------
/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {
4 | "size": "29x29",
5 | "scale": "1x",
6 | "idiom": "iphone"
7 | },
8 | {
9 | "filename": "Appicon58.png",
10 | "size": "29x29",
11 | "scale": "2x",
12 | "idiom": "iphone"
13 | },
14 | {
15 | "filename": "Appicon87.png",
16 | "size": "29x29",
17 | "scale": "3x",
18 | "idiom": "iphone"
19 | },
20 | {
21 | "filename": "Appicon80.png",
22 | "size": "40x40",
23 | "scale": "2x",
24 | "idiom": "iphone"
25 | },
26 | {
27 | "filename": "Appicon120.png",
28 | "size": "40x40",
29 | "scale": "3x",
30 | "idiom": "iphone"
31 | },
32 | {
33 | "size": "57x57",
34 | "scale": "1x",
35 | "idiom": "iphone"
36 | },
37 | {
38 | "size": "57x57",
39 | "scale": "2x",
40 | "idiom": "iphone"
41 | },
42 | {
43 | "filename": "Appicon120-1.png",
44 | "size": "60x60",
45 | "scale": "2x",
46 | "idiom": "iphone"
47 | },
48 | {
49 | "filename": "Appicon180.png",
50 | "size": "60x60",
51 | "scale": "3x",
52 | "idiom": "iphone"
53 | },
54 | {
55 | "size": "29x29",
56 | "scale": "1x",
57 | "idiom": "ipad"
58 | },
59 | {
60 | "size": "29x29",
61 | "scale": "2x",
62 | "idiom": "ipad"
63 | },
64 | {
65 | "size": "40x40",
66 | "scale": "1x",
67 | "idiom": "ipad"
68 | },
69 | {
70 | "size": "40x40",
71 | "scale": "2x",
72 | "idiom": "ipad"
73 | },
74 | {
75 | "size": "50x50",
76 | "scale": "1x",
77 | "idiom": "ipad"
78 | },
79 | {
80 | "size": "50x50",
81 | "scale": "2x",
82 | "idiom": "ipad"
83 | },
84 | {
85 | "size": "83.5x83.5",
86 | "scale": "2x",
87 | "idiom": "ipad"
88 | },
89 | {
90 | "size": "72x72",
91 | "scale": "1x",
92 | "idiom": "ipad"
93 | },
94 | {
95 | "size": "72x72",
96 | "scale": "2x",
97 | "idiom": "ipad"
98 | },
99 | {
100 | "size": "76x76",
101 | "scale": "1x",
102 | "idiom": "ipad"
103 | },
104 | {
105 | "size": "76x76",
106 | "scale": "2x",
107 | "idiom": "ipad"
108 | },
109 | {
110 | "role": "notificationCenter",
111 | "size": "24x24",
112 | "subtype": "38mm",
113 | "scale": "2x",
114 | "idiom": "watch"
115 | },
116 | {
117 | "role": "notificationCenter",
118 | "size": "27.5x27.5",
119 | "subtype": "42mm",
120 | "scale": "2x",
121 | "idiom": "watch"
122 | },
123 | {
124 | "role": "companionSettings",
125 | "size": "29x29",
126 | "scale": "2x",
127 | "idiom": "watch"
128 | },
129 | {
130 | "role": "companionSettings",
131 | "size": "29x29",
132 | "scale": "3x",
133 | "idiom": "watch"
134 | },
135 | {
136 | "role": "appLauncher",
137 | "size": "40x40",
138 | "subtype": "38mm",
139 | "scale": "2x",
140 | "idiom": "watch"
141 | },
142 | {
143 | "role": "longLook",
144 | "size": "44x44",
145 | "subtype": "42mm",
146 | "scale": "2x",
147 | "idiom": "watch"
148 | },
149 | {
150 | "role": "quickLook",
151 | "size": "86x86",
152 | "subtype": "38mm",
153 | "scale": "2x",
154 | "idiom": "watch"
155 | },
156 | {
157 | "role": "quickLook",
158 | "size": "98x98",
159 | "subtype": "42mm",
160 | "scale": "2x",
161 | "idiom": "watch"
162 | },
163 | {
164 | "size": "16x16",
165 | "scale": "1x",
166 | "idiom": "mac"
167 | },
168 | {
169 | "size": "16x16",
170 | "scale": "2x",
171 | "idiom": "mac"
172 | },
173 | {
174 | "size": "32x32",
175 | "scale": "1x",
176 | "idiom": "mac"
177 | },
178 | {
179 | "size": "32x32",
180 | "scale": "2x",
181 | "idiom": "mac"
182 | },
183 | {
184 | "size": "128x128",
185 | "scale": "1x",
186 | "idiom": "mac"
187 | },
188 | {
189 | "size": "128x128",
190 | "scale": "2x",
191 | "idiom": "mac"
192 | },
193 | {
194 | "size": "256x256",
195 | "scale": "1x",
196 | "idiom": "mac"
197 | },
198 | {
199 | "size": "256x256",
200 | "scale": "2x",
201 | "idiom": "mac"
202 | },
203 | {
204 | "size": "512x512",
205 | "scale": "1x",
206 | "idiom": "mac"
207 | },
208 | {
209 | "size": "512x512",
210 | "scale": "2x",
211 | "idiom": "mac"
212 | }
213 | ],
214 | "info": {
215 | "version": 1,
216 | "author": "xcode"
217 | }
218 | }
--------------------------------------------------------------------------------
/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/iOS/Entitlements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/iOS/Helpers/Settings.cs:
--------------------------------------------------------------------------------
1 | /*
2 | // Helpers/Settings.cs This file was automatically added when you installed the Settings Plugin. If you are not using a PCL then comment this file back in to use it.
3 | using Plugin.Settings;
4 | using Plugin.Settings.Abstractions;
5 |
6 | namespace sampleAppXamarin.iOS.Helpers
7 | {
8 | ///
9 | /// This is the Settings static class that can be used in your Core solution or in any
10 | /// of your client applications. All settings are laid out the same exact way with getters
11 | /// and setters.
12 | ///
13 | public static class Settings
14 | {
15 | private static ISettings AppSettings
16 | {
17 | get
18 | {
19 | return CrossSettings.Current;
20 | }
21 | }
22 |
23 | #region Setting Constants
24 |
25 | private const string SettingsKey = "settings_key";
26 | private static readonly string SettingsDefault = string.Empty;
27 |
28 | #endregion
29 |
30 |
31 | public static string GeneralSettings
32 | {
33 | get
34 | {
35 | return AppSettings.GetValueOrDefault(SettingsKey, SettingsDefault);
36 | }
37 | set
38 | {
39 | AppSettings.AddOrUpdateValue(SettingsKey, value);
40 | }
41 | }
42 |
43 | }
44 | }*/
--------------------------------------------------------------------------------
/iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleShortVersionString
6 | 1.0
7 | CFBundleVersion
8 | 1.0
9 | LSRequiresIPhoneOS
10 |
11 | MinimumOSVersion
12 | 10.0
13 | UIDeviceFamily
14 |
15 | 1
16 | 2
17 |
18 | UILaunchStoryboardName
19 | LaunchScreen
20 | UIRequiredDeviceCapabilities
21 |
22 | armv7
23 |
24 | UISupportedInterfaceOrientations
25 |
26 | UIInterfaceOrientationPortrait
27 |
28 | UISupportedInterfaceOrientations~ipad
29 |
30 | UIInterfaceOrientationPortrait
31 | UIInterfaceOrientationPortraitUpsideDown
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | XSAppIconAssets
36 | Assets.xcassets/AppIcon.appiconset
37 | UIViewControllerBasedStatusBarAppearance
38 |
39 | UIStatusBarStyle
40 | UIStatusBarStyleLightContent
41 | CFBundleName
42 | AC Sample
43 | CFBundleIdentifier
44 | ms.appcenter.sampleapp.xamarin
45 |
46 |
47 |
--------------------------------------------------------------------------------
/iOS/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/iOS/Main.cs:
--------------------------------------------------------------------------------
1 | using UIKit;
2 |
3 | namespace sampleAppXamarin.iOS
4 | {
5 | public class Application
6 | {
7 | // This is the main entry point of the application.
8 | static void Main(string[] args)
9 | {
10 | // if you want to use a different Application Delegate class from "AppDelegate"
11 | // you can specify it here.
12 | UIApplication.Main(args, null, "AppDelegate");
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/iOS/Resources/mclogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/iOS/Resources/mclogo.png
--------------------------------------------------------------------------------
/iOS/Resources/mclogo@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/iOS/Resources/mclogo@2x.png
--------------------------------------------------------------------------------
/iOS/Resources/mclogo@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/iOS/Resources/mclogo@3x.png
--------------------------------------------------------------------------------
/iOS/Resources/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/iOS/Resources/splash.png
--------------------------------------------------------------------------------
/iOS/Resources/splash@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/iOS/Resources/splash@2x.png
--------------------------------------------------------------------------------
/iOS/Resources/splash@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-xamarin/76742842e10f7c92294ef33998c061a217ccb5bc/iOS/Resources/splash@3x.png
--------------------------------------------------------------------------------
/iOS/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/iOS/sampleAppXamarin.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | iPhoneSimulator
7 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}
8 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
9 | Exe
10 | sampleAppXamarin.iOS
11 | sampleAppXamarin.iOS
12 | Resources
13 |
14 |
15 | true
16 | full
17 | false
18 | bin\iPhoneSimulator\Debug
19 | DEBUG;ENABLE_TEST_CLOUD;
20 | prompt
21 | 4
22 | iPhone Developer: Piyush Joshi (YG3U94CNDA)
23 | true
24 | true
25 | true
26 | true
27 | 64415
28 | None
29 | x86_64
30 | HttpClientHandler
31 | x86
32 |
33 |
34 |
35 | pdbonly
36 | true
37 | bin\iPhone\Release
38 | prompt
39 | 4
40 | iPhone Developer: Piyush Joshi (YG3U94CNDA)
41 | true
42 | Entitlements.plist
43 | SdkOnly
44 | ARMv7, ARM64
45 | HttpClientHandler
46 | x86
47 | Demo App Swift
48 |
49 |
50 | pdbonly
51 | true
52 | bin\iPhoneSimulator\Release
53 | prompt
54 | 4
55 | iPhone Developer
56 | true
57 | true
58 | None
59 | i386, x86_64
60 | HttpClientHandler
61 | x86
62 |
63 |
64 | true
65 | full
66 | false
67 | bin\iPhone\Debug
68 | DEBUG;ENABLE_TEST_CLOUD;
69 | prompt
70 | 4
71 | iPhone Developer: Piyush Joshi (YG3U94CNDA)
72 | true
73 | true
74 | true
75 | false
76 | true
77 | Entitlements.plist
78 | 60355
79 | SdkOnly
80 | ARMv7, ARM64
81 | HttpClientHandler
82 | x86
83 | Demo App Swift
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 | ..\packages\Microsoft.Net.Http.2.2.29\lib\Xamarin.iOS10\System.Net.Http.Extensions.dll
93 |
94 |
95 | ..\packages\Microsoft.Net.Http.2.2.29\lib\Xamarin.iOS10\System.Net.Http.Primitives.dll
96 |
97 |
98 |
99 |
100 | ..\packages\Newtonsoft.Json.10.0.3\lib\netstandard1.3\Newtonsoft.Json.dll
101 |
102 |
103 | ..\packages\Xam.Plugin.Connectivity.3.0.2\lib\Xamarin.iOS10\Plugin.Connectivity.Abstractions.dll
104 |
105 |
106 | ..\packages\Xam.Plugin.Connectivity.3.0.2\lib\Xamarin.iOS10\Plugin.Connectivity.dll
107 |
108 |
109 | ..\packages\Xam.Plugins.Settings.3.0.1\lib\Xamarin.iOS10\Plugin.Settings.Abstractions.dll
110 |
111 |
112 | ..\packages\Xam.Plugins.Settings.3.0.1\lib\Xamarin.iOS10\Plugin.Settings.dll
113 |
114 |
115 | ..\packages\Xamarin.Forms.4.3.0.991211\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll
116 |
117 |
118 | ..\packages\Xamarin.Forms.4.3.0.991211\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll
119 |
120 |
121 | ..\packages\Xamarin.Forms.4.3.0.991211\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll
122 |
123 |
124 | ..\packages\Xamarin.Forms.4.3.0.991211\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll
125 |
126 |
127 | ..\packages\Xamarin.TestCloud.Agent.0.20.7\lib\Xamarin.iOS10\Calabash.dll
128 |
129 |
130 | ..\packages\Microsoft.AppCenter.2.6.2\lib\Xamarin.iOS10\Microsoft.AppCenter.dll
131 |
132 |
133 | ..\packages\Microsoft.AppCenter.2.6.2\lib\Xamarin.iOS10\Microsoft.AppCenter.iOS.Bindings.dll
134 |
135 |
136 | ..\packages\Microsoft.AppCenter.Crashes.2.6.2\lib\Xamarin.iOS10\Microsoft.AppCenter.Crashes.dll
137 |
138 |
139 | ..\packages\Microsoft.AppCenter.Crashes.2.6.2\lib\Xamarin.iOS10\Microsoft.AppCenter.Crashes.iOS.Bindings.dll
140 |
141 |
142 | ..\packages\Microsoft.AppCenter.Analytics.2.6.2\lib\Xamarin.iOS10\Microsoft.AppCenter.Analytics.dll
143 |
144 |
145 | ..\packages\Microsoft.AppCenter.Analytics.2.6.2\lib\Xamarin.iOS10\Microsoft.AppCenter.Analytics.iOS.Bindings.dll
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
--------------------------------------------------------------------------------
/sampleAppXamarin.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2012
4 | Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "sampleAppXamarin", "sampleAppXamarin\sampleAppXamarin.shproj", "{568E981D-BD23-46C1-BAA6-288CCF84690C}"
5 | EndProject
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sampleAppXamarin.iOS", "iOS\sampleAppXamarin.iOS.csproj", "{B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sampleAppXamarin.Droid", "Droid\sampleAppXamarin.Droid.csproj", "{1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UITest", "UITest\UITest.csproj", "{9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|iPhoneSimulator = Debug|iPhoneSimulator
15 | Release|iPhone = Release|iPhone
16 | Release|iPhoneSimulator = Release|iPhoneSimulator
17 | Debug|iPhone = Debug|iPhone
18 | Debug|Any CPU = Debug|Any CPU
19 | Release|Any CPU = Release|Any CPU
20 | EndGlobalSection
21 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
22 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
23 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
24 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}.Release|iPhone.ActiveCfg = Release|iPhone
25 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}.Release|iPhone.Build.0 = Release|iPhone
26 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
27 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
28 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}.Debug|iPhone.ActiveCfg = Debug|iPhone
29 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}.Debug|iPhone.Build.0 = Debug|iPhone
30 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
31 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
32 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}.Release|Any CPU.ActiveCfg = Release|iPhone
33 | {B6D7D4BA-3E3A-446E-A536-C4DA0B0CD508}.Release|Any CPU.Build.0 = Release|iPhone
34 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
35 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
36 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}.Release|iPhone.ActiveCfg = Release|Any CPU
37 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}.Release|iPhone.Build.0 = Release|Any CPU
38 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
39 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
40 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}.Debug|iPhone.ActiveCfg = Debug|Any CPU
41 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}.Debug|iPhone.Build.0 = Debug|Any CPU
42 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
43 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}.Debug|Any CPU.Build.0 = Debug|Any CPU
44 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}.Release|Any CPU.ActiveCfg = Release|Any CPU
45 | {1E2C8AA1-C654-40BC-BF00-E2A0D9E4B865}.Release|Any CPU.Build.0 = Release|Any CPU
46 | {9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
47 | {9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
48 | {9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}.Release|iPhone.ActiveCfg = Release|Any CPU
49 | {9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}.Release|iPhone.Build.0 = Release|Any CPU
50 | {9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
51 | {9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
52 | {9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}.Debug|iPhone.ActiveCfg = Debug|Any CPU
53 | {9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}.Debug|iPhone.Build.0 = Debug|Any CPU
54 | {9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
55 | {9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
56 | {9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
57 | {9E31BC64-EFE4-4B35-A0DD-3DD4380407E5}.Release|Any CPU.Build.0 = Release|Any CPU
58 | EndGlobalSection
59 | EndGlobal
60 |
--------------------------------------------------------------------------------
/sampleAppXamarin/App.xaml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | #2196F3
8 | #1976D2
9 | #96d1ff
10 | #FAFAFA
11 | #C0C0C0
12 | #4d4d4d
13 | #999999
14 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/sampleAppXamarin/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using Xamarin.Forms;
3 | using Microsoft.AppCenter;
4 | using Microsoft.AppCenter.Analytics;
5 | using Microsoft.AppCenter.Crashes;
6 |
7 | namespace sampleAppXamarin
8 | {
9 | public partial class App : Application
10 | {
11 | public App()
12 | {
13 | AppCenter.Start("android=;" +
14 | "ios=;",
15 | typeof(Analytics), typeof(Crashes));
16 | MainPage = new ButtonPage();
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/sampleAppXamarin/ButtonPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
12 |
18 |
19 |
20 |
29 |
38 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/sampleAppXamarin/ButtonPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using Microsoft.AppCenter.Analytics;
4 | using Microsoft.AppCenter.Crashes;
5 | using Xamarin.Forms;
6 |
7 | namespace sampleAppXamarin
8 | {
9 | public partial class ButtonPage : ContentPage
10 | {
11 | public ButtonPage()
12 | {
13 | InitializeComponent();
14 | }
15 |
16 | async void Crash_Clicked(object sender, EventArgs e)
17 | {
18 | var crash = await DisplayAlert("The app will close", "A crash report will be sent when you reopen the app", "Crash app", "Cancel");
19 | if (crash)
20 | {
21 | Crashes.GenerateTestCrash();
22 | }
23 | }
24 |
25 | public void Event_Clicked(object sender, EventArgs e)
26 | {
27 | Analytics.TrackEvent("Sample event");
28 | DisplayAlert(null, "Event sent.", null, "OK");
29 | }
30 |
31 | async void Color_Clicked(object sender, EventArgs e)
32 | {
33 | var color = await DisplayActionSheet("Send event with color property", null, null, "Yellow", "Blue", "Red");
34 | if (color.Equals("Yellow"))
35 | {
36 | Analytics.TrackEvent("Color event", new Dictionary {
37 | { "Color", "Yellow" }
38 | });
39 | }
40 | else if (color.Equals("Blue"))
41 | {
42 | Analytics.TrackEvent("Color event", new Dictionary {
43 | { "Color", "Blue" }
44 | });
45 | }
46 | else if (color.Equals("Red"))
47 | {
48 | Analytics.TrackEvent("Color event", new Dictionary {
49 | { "Color", "Red" }
50 | });
51 | }
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/sampleAppXamarin/sampleAppXamarin.projitems:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
5 | true
6 | {568E981D-BD23-46C1-BAA6-288CCF84690C}
7 |
8 |
9 | sampleAppXamarin
10 |
11 |
12 |
13 | App.xaml
14 |
15 |
16 | ButtonPage.xaml
17 |
18 |
19 |
20 |
21 |
22 | MSBuild:UpdateDesignTimeXaml
23 |
24 |
25 |
--------------------------------------------------------------------------------
/sampleAppXamarin/sampleAppXamarin.shproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {568E981D-BD23-46C1-BAA6-288CCF84690C}
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------