From 48e052294ea9dc7203a03befb5077d9b91a197f2 Mon Sep 17 00:00:00 2001 From: Niklas Schilli Date: Thu, 19 Dec 2019 17:25:46 +0100 Subject: [PATCH] GH-969 Clipboard Changed (#720) * Use SharedPreferences.Editor.Apply when editing to force disk write to be asynchronous (#637) * GH-182 Color/Point/Rect/Size Extension Converters (#651) * Add extension helpers for iOS and Android * Add UWP colors and adjsut android colors. * Add UWP Point/Rect/Size * Rename and optimize! * Add tests and color helpers! * Fix unit test and add WithAlpha * Cleanup iOS as it stores it from 0-1 * Tests are all green! * Add generate-docs cmd :) * Add docs config to all :) * Additional clenaup for docs * Added some docs * Updated the mdoc target and regenerated the docs * Allow for code reuse on macOS (#665) Even though macOS is not yet officially supported, it is nice to reuse this code. macOS is exactly the same, except for this single property not supported. * GH-196 Browser Customization (#646) * Implemented GH-196 * Apply suggestions from code review: Naming Renamed incorrectly spelled variables Co-Authored-By: Mrnikbobjeff * Implemented GH-196 * Browser update work as requested. Using System.Drawing.Color now * Adopted more review changes. Type forwarded. * Review changes * Made equals operator null safe, removed constructor * Add documentation and simplify the API! * Update viewmodel * Back to 7.2 * GH-676 Require To Check GPS Location is Fake Or Not In GeoLocation (#677) * Added bool IsFromMockProvider in Location class * Checkin * csproj original * Revert "csproj original" This reverts commit 6302b95782006288862f0ce11100c81936baa7fb. * Revert "Checkin" This reverts commit 0881e4f12c36caecd08b3b9bb8757d8bd1025502. * Revert "Added bool IsFromMockProvider in Location class" This reverts commit e56d9406cf0a92d24b04607afe81aef23aca696c. * Revert the Xamarin.Essentials.csproj and Samples.Android.csproj to original; Adjust the property IsFromMockProvider in Location.shared and LocationExetensions. * Edited sample to show if the location is from moking provider. * Update docs * Fixes #694 (#699) * Update the mdoc to use the new minimum for VS2019 * GH-126: Finish Shake Detector API (#693) * Update CONTRIBUTING.md (#692) * GH-126 Detect Shake API (#666) * Added shaken support * name vhange * check-in * doc update * Implements the Shake API inside Accelerometer Class; Change sample to AccelorometerViewModel * Fix the sample project * Update the docs * Added Queue mechanism based off seismic with tests as well. Something is not right yet with calulating isaccelerating. * Finalize shake detection!!! * Re-generated the docs. * Fix the VM after merge * GH-704 Handle duplicate item in keychain (#705) * Update CONTRIBUTING.md (#692) * #704 if we get a duplicate item try to remove and then re-add if possible. * Initial commit Clipboard Change * Implemented Clipboard listeners on iOS, tested on android and uwp and fixed other issues related to Visual Studio for Mac and Essentials support. * Initial commit Clipboard Change * Implemented Clipboard listeners on iOS, tested on android and uwp and fixed other issues related to Visual Studio for Mac and Essentials support. * Naming fix * UI improvements * Docs update * docs update part 2 * docs tool breaking fix * reverted change to csproj --- Samples/Samples/View/ClipboardPage.xaml | 1 + .../Samples/ViewModel/ClipboardViewModel.cs | 25 ++++++++++++++- .../Clipboard/Clipboard.android.cs | 20 +++++++++++- Xamarin.Essentials/Clipboard/Clipboard.ios.cs | 19 ++++++++++- ...lipboard.netstandard.tvos.watchos.tizen.cs | 6 ++++ .../Clipboard/Clipboard.shared.cs | 32 ++++++++++++++++++- Xamarin.Essentials/Clipboard/Clipboard.uwp.cs | 8 +++++ .../xamarin-essentials-android.xml | 1 + .../xamarin-essentials-ios.xml | 1 + .../xamarin-essentials-uwp.xml | 1 + .../en/FrameworksIndex/xamarin-essentials.xml | 1 + docs/en/Xamarin.Essentials/Clipboard.xml | 19 +++++++++++ 12 files changed, 130 insertions(+), 4 deletions(-) diff --git a/Samples/Samples/View/ClipboardPage.xaml b/Samples/Samples/View/ClipboardPage.xaml index beeefc60f..b23535a55 100644 --- a/Samples/Samples/View/ClipboardPage.xaml +++ b/Samples/Samples/View/ClipboardPage.xaml @@ -17,6 +17,7 @@