Skip to content

Commit

Permalink
200.4.0 (#1438)
Browse files Browse the repository at this point in the history
Co-authored-by: Morten Nielsen <[email protected]>
Co-authored-by: Thad Tilton <[email protected]>
Co-authored-by: Hamish Duff <[email protected]>
Co-authored-by: Hamish Duff <[email protected]>
  • Loading branch information
5 people authored Apr 11, 2024
1 parent 72d7e0c commit 514f3f0
Show file tree
Hide file tree
Showing 57 changed files with 1,497 additions and 408 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<ArcGISMapsSDKVersion Condition="'$(ArcGISMapsSDKVersion)'==''">200.3.0</ArcGISMapsSDKVersion>
<ArcGISMapsSDKVersion Condition="'$(ArcGISMapsSDKVersion)'==''">200.4.0</ArcGISMapsSDKVersion>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Esri.ArcGISRuntime" Version="$(ArcGISMapsSDKVersion)" />
Expand Down
4 changes: 4 additions & 0 deletions src/MAUI/Maui.Samples/ArcGIS.Samples.Maui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,9 @@
</MauiFont>
</ItemGroup>

<!-- Apple Privacy Manifest file, more information: https://aka.ms/maui-privacy-manifest -->
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
<BundleResource Include="Platforms\iOS\PrivacyInfo.xcprivacy" LogicalName="PrivacyInfo.xcprivacy" />
</ItemGroup>
<Import Project="..\..\Samples.Shared\ArcGIS.Samples.Shared.projitems" Label="Shared" />
</Project>
50 changes: 50 additions & 0 deletions src/MAUI/Maui.Samples/Helpers/FeedbackPrompt.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Copyright 2022 Esri.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
// language governing permissions and limitations under the License.

using ArcGIS.Samples.Managers;
using System.Text;
using Microsoft.Maui.ApplicationModel;

namespace ArcGIS.Helpers
{
internal static class FeedbackPrompt
{
private const string BugReport = "Bug Report";
private const string FeatureRequest = "Feature Request";

public async static Task ShowFeedbackPromptAsync()
{
await Application.Current.MainPage.DisplayActionSheet("Open an issue on GitHub:", "Cancel", null, [BugReport, FeatureRequest]).ContinueWith((result) =>
{
string link;
switch (result.Result)
{
case BugReport:
var sb = new StringBuilder("https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/issues/new?assignees=&labels=Type%3A+Bug&projects=&template=bug_report.yml&title=%5BBug%5D");
if (SampleManager.Current.SelectedSample != null)
{
sb.Append("+&impacted-samples=");
sb.Append(SampleManager.Current.SelectedSample.FormalName);
}
_ = Browser.Default.OpenAsync(new Uri(sb.ToString()), BrowserLaunchMode.SystemPreferred);
break;

case FeatureRequest:
link =
"https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/issues/new?assignees=&labels=Type%3A+Feature&projects=&template=feature_request.yml&title=%5BFeature%5D";
_ = Browser.Default.OpenAsync(new Uri(link), BrowserLaunchMode.SystemPreferred);
break;

case "Cancel":
break;
}
}, TaskScheduler.FromCurrentSynchronizationContext());
}
}
}
51 changes: 51 additions & 0 deletions src/MAUI/Maui.Samples/Platforms/iOS/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This is the minimum required version of the Apple Privacy Manifest for .NET MAUI apps and using the ArcGIS Maps SDK.
The contents below are needed because of APIs that are used in the .NET framework and .NET MAUI SDK.
You are responsible for adding extra entries as needed for your application.
More information: https://aka.ms/maui-privacy-manifest
-->
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>3B52.1</string>
<string>C617.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>E174.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>35F9.1</string>
</array>
</dict>
<!-- The entry below is only needed when you're using the Preferences API in your app. -->
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
</array>
</dict>
</plist>
4 changes: 4 additions & 0 deletions src/MAUI/Maui.Samples/Resources/Icons/feedback.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 514f3f0

Please sign in to comment.