Граф коммитов

570 Коммитов

Автор SHA1 Сообщение Дата
Jérôme Laban 04b25426a3
Merge pull request #1 from unoplatform/dev/jela/samples-wasm
Add wasm sample app
2020-02-10 07:42:07 -05:00
Jerome Laban 023e15c60d Update package owners 2020-02-09 22:13:26 -05:00
Jerome Laban 8e76b18945 Add wasm sample app 2020-02-09 22:08:04 -05:00
Jerome Laban 1a4b7e5e5a Adjust version 2020-02-09 20:49:22 -05:00
Jerome Laban 5e3a2f0f18 Update the documentation 2020-02-09 20:43:57 -05:00
Jerome Laban 32c280c8a3 Update the documentation 2020-02-09 20:40:11 -05:00
Jerome Laban 9d263865e3 Adjust versioning 2020-02-09 20:33:00 -05:00
Jerome Laban d0e82c51ac Remove custom SDK Extras, disable tests
Tests are disabled because of changed netstd2.0 target
2020-02-09 18:59:17 -05:00
Jerome Laban 1b25483d3b Adjust for VibrationDevice 2020-02-09 18:44:22 -05:00
Jerome Laban c5ff3fa1e7 Adjust UWP, remove netsdtd1.0 2020-02-09 18:33:21 -05:00
Jerome Laban 146be88f32 Disable NU1701 2020-02-09 18:24:57 -05:00
Jerome Laban 137943d5b5 Uno pipeline 2020-02-09 18:20:26 -05:00
Jerome Laban 01ccc36a9e Retaget `netstandard2.0` for Uno WebAssembly. 2020-02-09 18:12:51 -05:00
James Montemagno ff6dd3edb1 Merge in 1.3.0 (#870)
* GH-23: Added Tizen backend (#555)

* Adding the initial work to get Tizen started. #23

* Adding the initial work to get Tizen started. #23

* Use the overloads properly.

* Use the overloads properly.

* Tizen needs to have a background explicitly set

* Added the Vibration API

* Added the Vibration API

* Refactoring a little bit

* Refactoring a little bit

* Added the Browser API and some basic permissions checking

* Added the Browser API and some basic permissions checking

* Added the Battery API

* Added the Battery API

* Added the Acceleromerter API

* Added the Acceleromerter API

* Added the Filesystem API

* Added the Filesystem API

* Update Accelerometer Initialize using GetDefaultSensor

* Update Accelerometer Initialize using GetDefaultSensor

* Added the Gyroscope API

* Added the Gyroscope API

* Added the Magnetometer API

* Added the Magnetometer API

* Added the Compass API

* Added the Compass API

* Added the Connectivity API

* Added the Connectivity API

* Added the Flashlight API

* Added the Flashlight API

* Added the SecureStorage API

* Added the SecureStorage API

* Added the Vibration API

* Added the Vibration API

* Fixed build break

* Fixed build break

* Added the OrientationSensor API

* Fixed build break

* Initialized Maps/Launcher for Tizen

* Added the Permissions API

* Added the Geolocation API

* Added the Geocoding API

* Fixed build break

* Initialize Barometer API

* Added the Barometer API

* Added the TextToSpeech API

* Added the Launcher APIs

* Fixed bugs

* Update Location property name

* Update several modules

- Update AppInfo, Browser, Clipboard, Compass, Connectivity,
  DisplayInfo, DeviceInfo, Geocoding, TextToSpeech modules
- Change module name DataTrasfer to Share, Maps to Map
- Integrated module Power to Battery, ScreenLock to DeviceDisplay

* Throw PlatformNotSupportedException for Tizen

* Change the exception for the power saver feature

* Add tizen privileges

* Add FileBase

* Add ShareFileRequest

* Change enum for Browser

* Change parameter for Permissions

* Add SensorSpeedExtensions

* Add Launcher for OpenFileRequest

* Fix .csproj for VS2019

* Fix sample for watch

* Fix Geolocation speed

* Fix TextToSpeech ptich

* Fixed missing using System;

This was needed for the Math calls

* Add Support for  OS and 📺OS  (#827)

* Add Support for watchOS and tvOS

* Fix up exception from shared netstandard code to figure out what to send.

* Update Battery.ios.watchos.cs

* Integrate Tizen into the netstandard not supported area.

* [Tizen] Fix reference for avoid duplication (#850)

* Fix reference to avoid version collision

* Remove Vector3 reference on Tizen

* Fix iPad not show share sheet (#873)

Need to specify bottom center of the screen.

* Added the Main Thread helpers from Xamarin.Forms (#849)

* Added Invoke methods from Xamarin.Forms

* Updated to use Essentials approach to calling the MainThread

* Updated the docs with the new MainThread methods

* Make overload more readable

The old code was I think incorrect in that the `funcTask()` was never awaited or returned as a task.  This is the same code as the overload with the generic type parameter, but without the type param.

* Updated to use UrlEncode in GetMailToUrl (#848)

* Updated to use UrlEncode in GetMailToUrl

Fixes #843

* Added missing using

* Fixed Using order and spacings

* Use WebUtility.UrlEncode on placemark extensions

* Added volatile to MainThread.Android (#877)

Fixes #838

* Add Launcher.TryOpenAsync (#839)

* Add Launcher.TryOpenAsync

* Added ConfigureAwait(false)

* Removed unnecessary async

* Updated launcher docs

* Updated the docs

* Added Launch Tests

* Add aka.ms for release notes (#883)

* Remove experimental flags & fix launcher teasts (#887)
2019-08-20 15:32:17 -04:00
James Montemagno 0bfbae9c10
Update PRODUCT-FEEDBACK.md 2019-08-19 12:08:25 -07:00
James Montemagno 6394e18ec1
Cleanup the PR for fixing build (#871)
* Cleanup the PR for fixing build

* Fix the info
2019-07-29 17:38:24 -07:00
Eilon Lipton f6aaf2a45c Update NuGet readme.txt URLs to use HTTPS (#867)
All URLs verified as valid.
2019-07-26 23:39:05 -07:00
Elvin (Tharindu) Thudugala 2eea7eb5b7 #861 fixed wrong ExperimentalFeatures check (#862) 2019-07-23 17:48:56 -07:00
Craig Dunn 08979e6dff
revert to latest 2019-07-08 19:58:56 -07:00
Jonathan Dick a43f55e2c4
Use specified version of ECMA2Yaml to work around
Latest version of ECMA2Yaml has some issue with this repository. Need investigate more, use 1.0.417 version as workaround.
2019-07-08 19:57:25 -04:00
jzeferino fe4c33913b Made ShareActivityItemSource members readonly. (#832) 2019-07-02 15:01:08 -04:00
James Montemagno 0e310c1ca0
Fixes #807 Put TrySetResult (#829)
* Put TrySetResult

* Update Samples/Samples/View/LauncherPage.xaml
2019-06-28 20:41:00 -07:00
Dave Humphreys 05ba0792df Fixed issue with the bug template and invalid label (#828) 2019-06-28 13:35:04 -04:00
Dave Humphreys f42a3eecf5 Created Issue_Templates for creating issues (#826)
* work on the templates

* Added feature-request.md template
2019-06-28 09:36:25 -07:00
Dave Humphreys a3bededec3 Updated GeolocationRequest.shared.cs to correct power setting comment (#825)
Fixes #802
2019-06-27 14:33:46 -07:00
James Montemagno 9998fb1516
Put in check for iOS 12 to use new openurlasync method (#823) 2019-06-26 16:41:57 -07:00
James Montemagno f51d07493c
Try catch the uimode manager (#818) 2019-06-17 14:08:24 -07:00
James Montemagno a12f14dab7
Bring in latest version of sdk extras (#813)
* Bring in latest version of sdk extras

* Cleanup duplicate IDs

* Fix typo
2019-06-17 13:34:22 -07:00
Aleksandar Milic 5d25708cb5 Fixes issue https://github.com/xamarin/Essentials/issues/808 (#809) 2019-06-17 13:34:09 -07:00
James Montemagno 6d34616d82
Implement Open File in Launcher. Fixes #601 & #425 (#773)
* Implement Open File in Launcher.  Fixed #601 & #425

* Add title to open file request for android launcher

* Clean FileBase and AttachmentName. Added documentation.

* Fix encoding

* Remove namesapces that aren' t needed
2019-06-13 12:08:30 -07:00
James Montemagno ac795bc661
Fixes #786, set the speach rate to 1 always. (#796) 2019-06-03 09:15:52 -07:00
James Montemagno e452d95be6
GH-800: Fix Multi-attachment on Android emails (#804)
* Check for null MainView

* Use the ActionSendMultiple on android for multi-attachments
2019-06-03 08:10:09 -07:00
James Montemagno c32839bd19
Fixes #794 try to use original string first else absolute for NSUrl (#795) 2019-05-31 12:03:24 -07:00
James Montemagno c7ba9d472e
Check for null MainView (#803) 2019-05-31 10:24:54 -07:00
James Montemagno 5b4cf5474d
Add mroe null checks in LocationAuthCallback Should Fix #740 (#748) 2019-05-30 19:18:13 -07:00
James Montemagno 82136cab28
Cleanup vm (#805) 2019-05-30 19:00:25 -07:00
James Montemagno 63fb146d26
Fixes #745 to return real metrics, not app metrics on display. (#749)
* Fixes #745 to return real metrics, not app metrics on display.

* Add using statements to cleanup displays and metrics
2019-05-30 16:45:08 -07:00
James Montemagno 8153a82a02
Fixes #771 - Add test for remove SS and fix android return value (#772) 2019-05-30 16:00:31 -07:00
James Montemagno 8e9973a270
Fixed #776 to handle VMs (#787) 2019-05-30 15:37:04 -07:00
James Montemagno 65a03c1e17
Only add internal cache on N+ devices for checking, else copy to public cache director and use correct path for file provider. (#789) 2019-05-29 16:51:21 -07:00
Jonathan Peppers 2d0af334c4 Use "portable" PDB files (#758)
Context: 79c19c12ab/Documentation/diagnostics/portable_pdb.md

In doing some performance testing with builds in VS 2019, I noticed:

    115 ms  _ConvertPdbFiles                           1 calls

And looking at files were converted:

    ConvertDebuggingFiles
        Parameters
            Files
                C:\ProgramData\Xamarin\NuGet\xamarin.essentials\1.0.1\lib\monoandroid81\Xamarin.Essentials.pdb
        [Output] ConvertedFiles:
            C:\ProgramData\Xamarin\NuGet\xamarin.essentials\1.0.1\lib\monoandroid81\Xamarin.Essentials.dll

The Xamarin.Essentials NuGet package is shipping a non-portable PDB
file. This is a Windows-specific format that Mono doesn't support.

Xamarin.Android runs a tool called `pdb2mdb` when it encounters a
non-portable PDB file so symbols be converted to something that Mono
can use. If you have `DebugType=full` or `DebugType=pdbonly`,
Xamarin.Android has to do this extra work to convert it.

I see no drawbacks to just use `DebugType=portable` in this project
all the time?

Since Xamarin.Essentials uses sourcelink, I double-checked and they
support portable PDBs:

https://github.com/dotnet/sourcelink#prerequisites-for-net-projects

I sent a similar PR to Xamarin.Forms, shipping since 3.4. I wrote a
bit more detail on symbol files there if you need more info:

https://github.com/xamarin/Xamarin.Forms/pull/4201
2019-04-04 17:07:28 +02:00
James Montemagno b9b251143b
Update nugetreadme.txt 2019-03-26 11:57:15 -07:00
Jonathan Dick d0e6a1f96a
Update azure-pipelines.yml 2019-03-15 17:35:19 -04:00
James Montemagno 2dd6bc0ea6 [WIP] Xamarin.Essentials 1.1.0 (#663)
* 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 <schillinik@yahoo.de>

* 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.

* Add all possible combinations  for coords to km or mile (#721)

* Add all possible combinations  for coords to km or mile

* Update UnitConverters_Tests.cs

* Use more explicit job definitions

* Update UnitConverters_Tests.cs

* GH-698 Set longer delay on connectivity changes - Android (#700)

* Update CONTRIBUTING.md (#692)

* Fixes #698

* Use original string instead of uri (#716)

* GH-643: Add Android P targeting and support 28 support (#669)

* Update PULL_REQUEST_TEMPLATE.md

* Fixes #643 to add android P targeting and support 28 support

* Add suppresses for Android P

* Cleanup SDKs based on @redth

* Update more nugets

* More optimizations for Retargeting

* Refactor HasApiLevelN and updated support to 28.0.0.1

* Update manifest and key :)

* Update the device tests certificates

* Make sure to run the checks always

* Updating the certs again to see if CI notices this time...

* Change order to reflect enum (#735)

* Lock keystore on Android for cipher (#734)

* Add locks around android keystore.

* move convert out of lock

* GH-130 & GH-129: Android support for safe shareable file URI’s (#416)

* Android: Support for safe shareable file URI’s

On later versions of Android, you have to wrap streams of data you want to share outside your app (between apps) in a stream through a content provider.  Android Support providers a general use FileProvider we can use for this.  This commit basically adds support for getting all the right AndroidManifest declarations for the custom file provider based on the android support provider, so that we expose an internal method which gets a URI safe for sharing outside of the app.

* Fix absolute type naming

* Add a user interaction test for File Provider

* Fix vibration code

the ifdef meant an empty `else { }` statement with no `if { }` for platforms < 26.  This fixes that.

* Reorder using statements

* Fix test attribute

* Get provider authority properly

* Added external storage permission

* Change file provider path

This is md5(“xamarin_essentials”)

* Copy file into temp folder instead of file

We keep the filename the same this way but use a GUID for a temp sub-folder to ensure a unique path.

* Resgen

* Permissions may need to be checked to control functionality

* The Android FileProvider now can detect permissions
 - internal / external storage can be controlled
 - KitKat+ does not require the permissions
 - corrected the FileProvider resource xml

* Added support for email attachments
 - support for a string path and native file types

* Added attachments to the sample app

* Updated the docs with the new types

* Some fixes for iOS

* Fix the mdoc target

* regen docs

* remove the obsolete armeabi ABI

* Reworked the file logic to try and use public folders first
 - if the file is already exposed, then just use it directly
 - if the file is private, copy to an exposed location first
 - exposing the internal and external caches and the public/external files

* Be more specific with the external storage permission name

* Added some more depth to the comments here

* Unnecessary else

* Added base file info class

* EmailAttachment now derives from FileBase

* Added File Sharing

* Keep track of IStorageFile internally

* Prefer internal IStorageFile in UWP

* Use attachment name properly in UWP

* Add ctor to create from existing FileBase

This will let us use UWP to create a new instance of something derived from FileBase with another instance of something else derived from FileBase, all while keeping track of the same `IStorageFile` instance.

So we can conceivably do something like:
```csharp
var mediaFile = await MediaPicker.PickPhotoAsync();
var attachment = new EmailAttachment(mediaFile);
```

* Add ctors for FileBase

* Add ctors for ShareFileRequest

* We can't use N on pre-N platforms

* Updated the docs

* Update some docs.

* Bump

* Gate Email/Share files with feature flags

* Add sample for ShareFileRequest

* Added test for share method in netstandard

* [WIP] Adding the Device Tests to the yaml (#737)

* Add the device tests to the yaml
* Select the latest version of xamarin/xcode
* Specify the iPhone simulator in the yaml
* Install the Android emulator
* Fix the shared test

* try to resolve build issue with missing nuget

* Fix docs

* Fix ref

* Trim . off start of extension for getting mimetype

* Don't add empty strings on UWP to email (#738)

* Cleanup UWP a bit
2019-03-15 16:36:34 -04:00
Jonathan Dick 806e5fc653
Just a bit more tweaking to CI 2019-03-11 21:03:38 -04:00
Jonathan Dick d22bed4c91
More audit CI tweaks 2019-03-11 20:56:49 -04:00
Jonathan Dick 55c6184b95
More audit CI tweaks 2019-03-11 20:55:54 -04:00
Jonathan Dick 825a9c87d8
Tweak some audits to run in CI 2019-03-11 20:42:36 -04:00
Jonathan Dick bcf36e663d
Update azure-pipelines.yml 2019-03-04 14:35:42 -05:00
Jonathan Dick 21d867a784
Update azure-pipelines.yml 2019-03-04 14:27:26 -05:00