From 31ddf24e6ddbbf9d730d6c689940e71984a0846e Mon Sep 17 00:00:00 2001 From: dotMorten Date: Mon, 24 Jun 2024 16:50:02 -0700 Subject: [PATCH 01/16] Set up v.next branch --- src/Directory.Build.props | 4 ++-- src/version.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 70cd36cbf..9a2d4657c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,8 +1,8 @@ - 200.4.0 - 200.4.0 + 200.5.0 + 200.5.0 Esri Inc. diff --git a/src/version.json b/src/version.json index 6d563049a..f251ac4dc 100644 --- a/src/version.json +++ b/src/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", - "version": "200.4.0-{height}", + "version": "200.5.0-{height}", "publicReleaseRefSpec": [ "^refs/tags/v\\d+\\.\\d+" // we release out of tags starting with vN.N ], From 4041e19ec09ef2d338948f2b4cdc09447c96f58e Mon Sep 17 00:00:00 2001 From: Morten Nielsen Date: Mon, 1 Jul 2024 14:23:37 -0700 Subject: [PATCH 02/16] WPF/MAUI: FeatureForm attachments support (#581) --- .../Platforms/Android/AndroidManifest.xml | 12 +- .../Platforms/iOS/Info.plist | 2 + .../Samples/FeatureFormViewSample.xaml.cs | 2 +- .../Forms/FeatureFormViewSample.xaml.cs | 2 +- .../FeatureForm/FeatureFormView.Theme.xaml | 173 ++++++++-- .../Toolkit/Internal/FileSizeConverter.cs | 71 +++++ src/Toolkit/Toolkit/Internal/MimeTypeMap.cs | 118 +++++++ .../Toolkit/LocalizedStrings/Resources.resx | 28 ++ .../AttachmentsFormElementView.Maui.cs | 242 ++++++++++++++ .../AttachmentsFormElementView.Windows.cs | 100 ++++++ .../FeatureForm/AttachmentsFormElementView.cs | 125 ++++++++ .../FeatureForm/FeatureFormView.Maui.cs | 35 +- .../FeatureForm/FeatureFormView.Windows.cs | 5 + .../Controls/FeatureForm/FeatureFormView.cs | 70 +++- .../FeatureForm/FormAttachmentView.Maui.cs | 298 ++++++++++++++++++ .../FeatureForm/FormAttachmentView.Windows.cs | 230 ++++++++++++++ .../FeatureForm/FormAttachmentView.cs | 237 ++++++++++++++ 17 files changed, 1701 insertions(+), 49 deletions(-) create mode 100644 src/Toolkit/Toolkit/Internal/FileSizeConverter.cs create mode 100644 src/Toolkit/Toolkit/Internal/MimeTypeMap.cs create mode 100644 src/Toolkit/Toolkit/UI/Controls/FeatureForm/AttachmentsFormElementView.Maui.cs create mode 100644 src/Toolkit/Toolkit/UI/Controls/FeatureForm/AttachmentsFormElementView.Windows.cs create mode 100644 src/Toolkit/Toolkit/UI/Controls/FeatureForm/AttachmentsFormElementView.cs create mode 100644 src/Toolkit/Toolkit/UI/Controls/FeatureForm/FormAttachmentView.Maui.cs create mode 100644 src/Toolkit/Toolkit/UI/Controls/FeatureForm/FormAttachmentView.Windows.cs create mode 100644 src/Toolkit/Toolkit/UI/Controls/FeatureForm/FormAttachmentView.cs diff --git a/src/Samples/Toolkit.SampleApp.Maui/Platforms/Android/AndroidManifest.xml b/src/Samples/Toolkit.SampleApp.Maui/Platforms/Android/AndroidManifest.xml index e9937ad77..e360d87b0 100644 --- a/src/Samples/Toolkit.SampleApp.Maui/Platforms/Android/AndroidManifest.xml +++ b/src/Samples/Toolkit.SampleApp.Maui/Platforms/Android/AndroidManifest.xml @@ -1,6 +1,12 @@  - - - + + + + + + + + + \ No newline at end of file diff --git a/src/Samples/Toolkit.SampleApp.Maui/Platforms/iOS/Info.plist b/src/Samples/Toolkit.SampleApp.Maui/Platforms/iOS/Info.plist index 0004a4fde..343c80563 100644 --- a/src/Samples/Toolkit.SampleApp.Maui/Platforms/iOS/Info.plist +++ b/src/Samples/Toolkit.SampleApp.Maui/Platforms/iOS/Info.plist @@ -28,5 +28,7 @@ XSAppIconAssets Assets.xcassets/appicon.appiconset + NSCameraUsageDescription + Adding attachments diff --git a/src/Samples/Toolkit.SampleApp.Maui/Samples/FeatureFormViewSample.xaml.cs b/src/Samples/Toolkit.SampleApp.Maui/Samples/FeatureFormViewSample.xaml.cs index 3164fc311..5ba83f88a 100644 --- a/src/Samples/Toolkit.SampleApp.Maui/Samples/FeatureFormViewSample.xaml.cs +++ b/src/Samples/Toolkit.SampleApp.Maui/Samples/FeatureFormViewSample.xaml.cs @@ -84,7 +84,7 @@ private async void UpdateButton_Click(object sender, EventArgs e) } try { - await formViewer.FeatureForm!.Feature.FeatureTable!.UpdateFeatureAsync(formViewer.FeatureForm.Feature); + await formViewer.FeatureForm!.FinishEditingAsync(); } catch (Exception ex) { diff --git a/src/Samples/Toolkit.SampleApp.WPF/Samples/Forms/FeatureFormViewSample.xaml.cs b/src/Samples/Toolkit.SampleApp.WPF/Samples/Forms/FeatureFormViewSample.xaml.cs index 6ab3b5bfa..bbd6fb5ba 100644 --- a/src/Samples/Toolkit.SampleApp.WPF/Samples/Forms/FeatureFormViewSample.xaml.cs +++ b/src/Samples/Toolkit.SampleApp.WPF/Samples/Forms/FeatureFormViewSample.xaml.cs @@ -83,7 +83,7 @@ private async void UpdateButton_Click(object sender, RoutedEventArgs e) } try { - await formViewer.FeatureForm.Feature.FeatureTable.UpdateFeatureAsync(formViewer.FeatureForm.Feature); + await formViewer.FeatureForm.FinishEditingAsync(); } catch (Exception ex) { diff --git a/src/Toolkit/Toolkit.WPF/UI/Controls/FeatureForm/FeatureFormView.Theme.xaml b/src/Toolkit/Toolkit.WPF/UI/Controls/FeatureForm/FeatureFormView.Theme.xaml index b4155078b..d53ed759a 100644 --- a/src/Toolkit/Toolkit.WPF/UI/Controls/FeatureForm/FeatureFormView.Theme.xaml +++ b/src/Toolkit/Toolkit.WPF/UI/Controls/FeatureForm/FeatureFormView.Theme.xaml @@ -10,6 +10,7 @@ 0,0,0,5 + - - + +