Skip to content

Commit

Permalink
Update 200.0 (#1170)
Browse files Browse the repository at this point in the history
Update the public samples for ArcGIS Maps SDK for .NET version 200.0.0
  • Loading branch information
ZackAllen authored Dec 14, 2022
2 parents b6d103e + dc40a2e commit c4180ce
Show file tree
Hide file tree
Showing 8,944 changed files with 181,874 additions and 324,779 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
15 changes: 5 additions & 10 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,21 @@ Summary of the change and any relevant info.
- [ ] WPF .NET 6
- [ ] WPF Framework
- [ ] WinUI
- [ ] Xamarin.Forms Android
- [ ] Xamarin.Forms iOS
- [ ] Xamarin.Forms UWP

- [ ] UWP
- [ ] Xamarin.Android
- [ ] Xamarin.iOS
- [ ] MAUI Windows
- [ ] MAUI Android
- [ ] MAUI iOS

## Checklist

- [ ] Self-review of changes
- [ ] Runs and compiles on all active platforms
- [ ] Legacy platforms still compile and run (if applicable)
- [ ] Branch is up to date with the latest main/v.next
- [ ] All merge conflicts have been resolved
- [ ] Self-review of changes
- [ ] There are no warnings related to changes
- [ ] No unrelated changes have been made to any other code or project files
- [ ] `sample_sync.py` runs without making changes
- [ ] Codemaid and XAML styler extensions have been run on every changed file
- [ ] Code is commented with correct formatting
- [ ] All variable and method names are good and make sense
- [ ] There is no leftover commented code
- [ ] Screenshots are correct size and display in description tab
- [ ] Screenshots are correct size and display in description tab (800 x 600 on Windows, 600 height mobile screenshots for MAUI)
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ TestResult.xml
project.lock.json
project.fragment.lock.json
artifacts/
**/Properties/launchSettings.json
*_i.c
*_p.c
*_i.h
Expand Down
31 changes: 12 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
[![Link: NuGet](https://img.shields.io/badge/NuGet-633b9b?style=flat-square&logo=nuget&labelColor=gray)](https://www.nuget.org/profiles/Esri_Inc)
[![Link: Esri Community](https://img.shields.io/badge/🙋-Get%20help%20in%20Esri%20Community-633b9b?style=flat-square)](https://community.esri.com/t5/arcgis-runtime-sdk-for-net/bd-p/arcgis-runtime-sdk-dotnet-questions)

# ArcGIS Runtime SDK for .NET - Samples
# ArcGIS Maps SDK for .NET - Samples

<a href="//www.microsoft.com/store/apps/9mtp5013343h?cid=storebadge&ocid=badge"><img src="./samples_screenshot.png" title="Get the viewer from Microsoft" alt="Screenshot of the sample viewer for WPF" width="500px" /></a>
<hr />

**Interactive samples demonstrate the ArcGIS Runtime API**
**Interactive samples demonstrate the ArcGIS Maps SDK for .NET API**

## Get started

Expand All @@ -23,41 +23,34 @@ If you're on Windows, the easiest way to get started is to download the viewer f

Or, you can browse a searchable list of samples on the ArcGIS for developers website:

[![Link: Xamarin.Forms](https://img.shields.io/badge/Xamarin.Forms-3498db?style=flat-square&labelColor=gray&logo=Xamarin)](https://developers.arcgis.com/net/forms/sample-code/)
[![Link: WPF](https://img.shields.io/badge/WPF-0078d6?style=flat-square&labelColor=gray&logo=windowsxp)](https://developers.arcgis.com/net/wpf/sample-code/)
[![Link: WinUI](https://img.shields.io/badge/WinUI-0E53BD?style=flat-square&labelColor=gray&logo=windows)](https://developers.arcgis.com/net/winui/sample-code/)
[![Link: UWP](https://img.shields.io/badge/UWP-(Legacy)-202020?style=flat-square&labelColor=gray&logo=windows)](https://developers.arcgis.com/net/uwp/sample-code/)
[![Link: Xamarin.Android](https://img.shields.io/badge/Xamarin.Android-(Legacy)-202020?style=flat-square&labelColor=gray&logo=android)](https://developers.arcgis.com/net/android/sample-code/)
[![Link: Xamarin.iOS](https://img.shields.io/badge/Xamarin.iOS-(Legacy)-202020?style=flat-square&labelColor=gray&logo=ios)](https://developers.arcgis.com/net/ios/sample-code/)

> **NOTE**: Samples exist but are no longer being updated for iOS, Android, and UWP. If a sample doesn't exist on your desired platform, you can refer to the implementation on Xamarin.Forms for mobile or WPF for Windows desktop.
[![Link: .NET MAUI](https://img.shields.io/badge/MAUI-512BD4?style=square&labelColor=gray&logo=dotnet)](https://developers.arcgis.com/net/maui/sample-code/)

### Build the samples locally

If you want to modify or debug sample code, you can clone this repo and load one of the following solutions:

- All: `src\ArcGISRuntime.Viewers.All.sln`
- Windows ( WPF / UWP ): `src\ArcGISRuntime.Viewers.Windows.sln`
- Xamarin (iOS, Android, Forms): `src\ArcGISRuntime.Viewers.Xamarin.sln`
- All: `src\ArcGIS.Viewers.All.sln`
- .NET MAUI (iOS, Android): `src\MAUI\ArcGIS.Samples.Maui.sln`

If you are only interested in one platform, you can open a platform-specific solutions:

- [WPF (.NET Framework)](src/WPF/readme.md): `src\WPF\ArcGISRuntime.WPF.Viewer.NetFramework.sln`
- [WPF (.NET 6)](src/WPF/readme.md): `src\WPF\ArcGISRuntime.WPF.Viewer.Net.sln`
- [Xamarin.Forms](src/Forms/readme.md): `src\Windows\ArcGISRuntime.Xamarin.Samples.Forms.sln`
- [WinUI](src/WinUI/readme.md): `\src\WinUI\ArcGISRuntime.WinUI.Viewer.sln (Preview)`
- [WPF (.NET Framework)](src/WPF/readme.md): `src\WPF\WPF.Viewer.NetFramework.sln`
- [WPF (.NET 6)](src/WPF/readme.md): `src\WPF\WPF.Viewer.Net.sln`
- [.NET MAUI](src/MAUI/readme.md): 'src\MAUI\ArcGIS.Samples.Maui.sln'
- [WinUI](src/WinUI/readme.md): `\src\WinUI\ArcGIS.WinUI.Viewer.sln (Preview)`

The following platforms are being kept for reference, but no new sample implementations are being added:

- [UWP](src/UWP/readme.md): `src\Windows\ArcGISRuntime.UWP.Viewer.sln`
- [Xamarin.Android](src/Android/readme.md): `src\Android\ArcGISRuntime.Xamarin.Samples.Android.sln`
- [Xamarin.iOS](src/iOS/readme.md): `src\iOS\ArcGISRuntime.Xamari.Samples.iOS.sln`
- [UWP](src/UWP/readme.md): `src\Windows\ArcGIS.UWP.Viewer.sln`

## Notes

> **IMPORTANT** When you run the samples, you will need to provide an API key. You can get a free developer account and key on the [ArcGIS Developers website](developers.arcgis.com). For more information see https://links.esri.com/arcgis-runtime-security-auth.
- The .NET sample viewers have a prompt for setting an API key. You can also hardcode your API key in the [`GetLocalKey() method`](https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/main/src/ArcGISRuntime.Samples.Shared/Managers/ApiKeyManager.cs#L89) of the [`ApiKeyManager class`](https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/main/src/ArcGISRuntime.Samples.Shared/Managers/ApiKeyManager.cs).
- The .NET sample viewers have a prompt for setting an API key. You can also hardcode your API key in the [`GetLocalKey() method`](https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/main/src/ArcGIS.Samples.Shared/Managers/ApiKeyManager.cs#L89) of the [`ApiKeyManager class`](https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/main/src/ArcGIS.Samples.Shared/Managers/ApiKeyManager.cs).
- Before using WinUI, install the [latest Windows SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/) and the [vsix plugin](https://aka.ms/windowsappsdk/stable-vsix-2022-cs).
- When compiling Universal Windows Platform samples, make sure that you are compiling against x86/x64/ARM platform and not using AnyCPU.

Expand All @@ -75,7 +68,7 @@ See the [contribution guidelines](https://github.com/Esri/arcgis-runtime-samples

### Requirements

[Supported system configurations for ArcGIS Runtime API for .NET](https://developers.arcgis.com/net/reference/system-requirements/)
[Supported system configurations for ArcGIS Maps SDK for .NET](https://developers.arcgis.com/net/reference/system-requirements/)

### Tools

Expand Down
33 changes: 0 additions & 33 deletions src/Android/ArcGISRuntime.Xamarin.Samples.Android.sln

This file was deleted.

93 changes: 0 additions & 93 deletions src/Android/Xamarin.Android/ApiKeyPrompt.cs

This file was deleted.

Loading

0 comments on commit c4180ce

Please sign in to comment.