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

136 Коммитов

Автор SHA1 Сообщение Дата
Jerome Laban 8e76b18945 Add wasm sample app 2020-02-09 22:08:04 -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 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
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
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 c32839bd19
Fixes #794 try to use original string first else absolute for NSUrl (#795) 2019-05-31 12:03:24 -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 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
James Montemagno eab80f6c51
Return distnct profiles. Added test as well. (#650) 2018-12-19 09:52:02 -08:00
Redth f86f55df68 Make sure UWP DeviceTest deps are installed 2018-11-28 13:06:01 -05:00
Matthew Leibowitz b018723477 API Fixes (#590)
* Rename AppInfo.OpenSettings -> ShowSettingsUI

Fixes #567

* Missed one docs rename

* Added back a missing using.

* Fixed up Clipboard API! Updated everything SetTextAsync.
Update xunit test runners

* Updates Connectivity APIs from the review! got rid of Other made it unknown, removed WiMAX and updated Profiles to ConnectionProfiles

* Change MapKey to Platform.MapServiceToken only for UWP

* Dropping the version of the device runner until we can figure out what is broken on UWP (#596)

* Update docs/en/FrameworksIndex/xamarin-essentials-uwp.xml

Co-Authored-By: jamesmontemagno <james.montemagno@gmail.com>

* Fix spacing

* Updated DOCS!

* Added Default and set it to Medium

* [Platform] Remove the Platform for .net standard since it does nothing (#592)

- closes #579

* GH-583: [api-fix] Power / Battery (#591)

* Move the `Power` members into `Battery` Closes #583

* [Battery] If the charge can be determined, return 1.0
 - if the device is on, then it must have some charge
 - chances are, the issue is that there is no battery at all (on power)
 - closes #583

* Merged the PR

* GH-568: [api-fix] Browser (#589)

* OpenAsync returns Task<bool>

Also on iOS we can take advantage of some async methods like PresentViewControllerAsync now.

* Update API docs

* Update Browser.shared.cs

* re-gen docs

* Generated docs

* Revert this to avoid conflicts

* Add in DeviceIdiom and DevicePlatform

* Updated the docs and added a .gitattributes to control the line endings

* Renamed SpeakSettings to SpeechOptions. Closes #580

* Add docs about HTML emails not supported on UWP. Closes #578

* [Map] Fixed the type names and enum values. Closes #576

* Refactor display info and keep screen on.

* Add device display.

* Change to BatteryInfoChanged and BatteryInfoChangedEventArgs

* Revert back battery intent

* If we can't unwrap the key, then tear down everything and start over again.

* Change back to "DisplayInfoChangedEventArgs"

* Update Battery.android.cs

* change to valid key

* Update Battery.android.cs

* Add docs

* Rename file correctly for docs!

* Cleanup docs

* Catch only specific exceptions. some code cleanup

* Updated the sensors to adhere to guidelines. #582
 - enum names
 - compas low pass filter is now a param
 - updated docs
 - public constructors on data and events
 - stating an already started sensor will throw
 - sensor use the same units on all platforms
Added a unit conversion API. #575

* Catch invalid key exception.

* If there is no main window, then there is no UI thread. Closes 510

* Fixes #612

We shouldn't have a need for telephony as we don't check it on others and restricts VOIP apps.

* Integrate html option into sample for email. (#623)

* Add Unknown to DeviceType. Update .net standard to return unknown for platform/idiom/type (#627)

* Update nugetreadme.txt (#625)
2018-11-28 12:53:42 -05:00
Jonathan Dick 97da806cb8
Increase Device Test timeout 2018-11-06 14:30:18 -05:00
James Montemagno 33c37f2f8e Integrate App Center SDK into Sample App (#557)
* Update NuGets!

* Added App Center Integration. Added SDKs, build scripts for app Ids, and enabled distribute all sample apps.

* cat test

* Fix android!

* Remove cat

* Add file for common constants! Fix sh scripts.

* Update readme!
2018-11-01 21:07:47 -04:00
Jonathan Dick 47d6c0cdc7
Update iOS Simulator version in device tests 2018-10-09 09:41:34 -04:00
James Montemagno 8db259fd33 Fix #534 by setting default language to english before creating keyge… (#536)
* Fix #534 by setting default language to english before creating keygenerator.

* Fix build!
2018-10-05 13:35:41 -04:00
James Montemagno 04d88be4a2 Change name to Timestamp. (#538)
* Change name to Timestamp.

* Cleanup extensions
2018-10-05 13:27:58 -04:00
James Montemagno a4f59ede9e Integrate sourcelink - https://github.com/dotnet/sourcelink (#260)
* Integrate sourcelink https://github.com/dotnet/sourcelink

* Add /p:ContinuousIntegrationBuild=true to build.ps1

* Update Xamarin.Essentials.csproj

* Update build.ps1

* Update to latest source link

* Only add sourcelink in release config

* Cleanup build for mac

* Add properties to turn off CI on device tests.

* Use strings

* Use list

* missed one

* Only add on release and windows :)
2018-08-24 10:23:14 -04:00
James Montemagno fc17df9e61 GH-373: Permissions Must Be Invoked on MainThread else Throw Exception (#487)
* Throw permission exception if not on main thread when we need to request.

* Add tests for not main thread permissions
2018-08-24 10:18:14 -04:00
James Montemagno 621bb4b6de Refactor code and update with sensor speed. 2018-08-09 11:48:55 +01:00
Mrnikbobjeff 5268e1957f GH-348: Barometer support (#413)
* Implemented Barometer across all platforms.

* Added tests modeling compass sensor tests

* Added more unit tests

* Added samples

* removed unused usings

* Added barometer to all sensor page

* Updated docs

* Removed unused ios properties

* Implemented maps as mentioned in branch name issue. also fixed a spelling mistake

* Fixed typo which caused ui bug

* Finished reset of fork

* removed proj items

* Android emulator has barometer

* Code cleanup, lazy introduction, access modifiers

* Modified barometer to be in sync with generic event handlers

* copy paste

* Updated barometer docs/en/Xamarin.Essentials/Barometer.xml

* Finished updating barometer docs

* Removed remnants from delegates

* Changes requested in pr

* iOS queue change

* Sensor Speed

* sensor reset
2018-08-09 10:56:35 +01:00
James Montemagno cd3b760687 No More Shared Projects (#410)
* Change to multi-targeted project for device tests :)

* Cleanup scripts
2018-07-25 14:47:14 -04:00
James Montemagno 1c14a29f30
GH-287 OpenMaps Implementation (#361) (#404)
* GH-287 Maps Implementation (#361)

* Implemented maps as mentioned in branch name issue. also fixed a spelling mistake

* Added samples

* Added doc stubs

* Added comments for map types

* Refactored code

* Formatting of docs

* Added tests

* Changed coordinates to display something recognisable

* Added uri escaping, thus removing duplicate code. also had to turn off a warning due to inconsistent style cop and vs warning behaviour.

* Removed ref until in is added in c# 7.2

* Adressed issues in pr

* Updated launch code

* Adressed method to onliner

* Updated docs

* Removed ClearTop intent, added sample with adress

* Rename to align names. Added extensions and additional paramaters.

* Update tests

* Throw if options are null.

* Add overload for lat/long without options
2018-07-25 09:30:48 -07:00
James Montemagno 7c85f9cdf0 GH-250 Implement Launcher API (#356) (#405)
* GH-250 Implement Launcher API (#356)

* Initial commit for Launcher Api as discussed in Issue 250

* Fixed and refactored android launch code, fixed unit tests. Fixed namespaces.

* Refactored code, fixed uwp launcher. Added unit test

* Added sample launcher page and viewmodel.

* Fixed launcher Page typo

* Refactored launcher code. after testing exception behaviour I decided on rethrowing instead of swallowing the exception

* Refactored access modifiers. Also changed exception behaviour to enforce uri validity and exception behaviour across platforms.

* Updated docs, stripped even more code.

* Added validation. Adressed all other changes as required in pr

* Removed dead code

* Adressed last issues from pr

* Cleanup launcher

* cleanup iOS tests

* Early morning typos
2018-07-25 11:06:20 -04:00
James Montemagno 4da4ea30ae
GH-380 Use Internal Preferences for Secure Storage consistency. (#386)
* Use Internal Preferences for Secure Storage consistency.
Save if we created key pre-M so we always use pre-M if device upgrades.

* Fix logic for pre-m key check

The logic was slightly off, I think this fixes it, but would be good to have another set of eyes...

1. We check to see if the device is pre-M (if it does _not_ have `M`, or if we already set the fact it's pre-M in the preference - aka from a previous install before an upgrade of the OS)
2. If we aren't pre-M, we can't use Symmetric Key from Keystore
3. If we make it down to using Asymmetric Key, we set the pre-M preference to `true` to persist the value for future invocations, which will make it 'stick' in the event of a pre-M to M+ OS upgrade.

* Address feedback on key naming.

* Added test for secure storage to simulate upgrade

From API < 23 to API >= 23 after storing data with an asymmetric key and then moving to a platform supporting symmetric keys.

* Ensure we always set flags when using specified keygen
2018-07-20 12:15:20 -07:00
James Montemagno 64718b8917
Update iOS DeviceInfo.Model to return specifid hw.machine for more control. (#395)
via:
bc492585d1/tests/linker/ios/link%20sdk/LinkSdkRegressionTest.cs (L603-L631)

Added tests
2018-07-20 08:36:25 -07:00
Jonathan Dick 4f9966a8ed GH-368: Allow for unicode in host names and escape query (#393)
* Allow for unicode in host names and escape query

Previously we were passing the the url as is to each platform and letting it deal with how to parse into the platform specific url.

This handles unicode domain names (IDN Mapping aka PunyCode) for the domain, but also reconstructs the url based on the parsed System.Uri from the original string, and so the PathAndQuery will be the % escaped version which will account for unicode characters in it as well.

Finally, on iOS and Android we are using AbsoluteUri to end up with the fully IDN mapped and % encoded URL to pass to the system URL types.

* Extract Escape Uri logic into its own method

More testable.

* Add uri escaping tests

* Improve uri escape tests

* Update default iOS DeviceTests target

Also don’t allow picking a sim that’s unavailable (this was a bug since we were checking for contains `available` which of course `unavailable` also contains!)
2018-07-19 13:39:30 -07:00
James Montemagno 883ad73497
Merge branch 'master' into bug/365 2018-07-17 14:17:05 -07:00
James Montemagno ba6b2899a2
Sample Project Tweaks and Optimizations (#353)
* Make sure orientation sensor stops on sample.

* Fix up all sensors page to start and stop correctly

* Only check permission if unknown status

* Update to latest sdk.extras

* fix back button press on TTS page. Check for null.

* Add samples sln for CI/CD

* Update readme and samples sln

* Don't use code sign key for simbuilds

* let's try this gain

* Update to projects

* Cleanup sample config

* bump sdk extras
2018-07-17 14:16:47 -07:00
James Montemagno 9576b73726 Clean up unit tests. 2018-07-11 17:46:58 -07:00
Jonathan Dick 26c14c78f7
GH-304: Added `Remove` and `RemoveAll` methods to SecureStorage (#330)
* [secure-storage] Added `Remove` and `RemoveAll`

* [secure-storage] Added tests for Remove/RemoveAll

* [secure-storage] Remove unnecessary method

We no longer consider the `SecAccessible` value when _retrieving_  KeyChain records anymore, so it’s unnecessary to pass this value into the Get call, and unnecessary to have a platform specific overload with this parameter for getting a record.

* [secure-storage] updated docs

* [secure-storage] update sample with remove methods

* [secure-storage] Fix GetAsync call for iOS

We don’t use the overload with SecAccessible any longer.

* Fix android remove, we must do a md5hash of the key as that is how it was stored :)

* [secure-storage] Fix iOS PlatformGet
2018-06-28 11:29:00 -04:00
Matthew Leibowitz 5e6b03869c Updated dependencies (#324) 2018-06-25 16:12:32 -04:00
James Montemagno cbcbd3b08a GH-285 Implement IsLowPowerModeEnabled (#286)
* Fixes #285 Implements IsLowerPowerModeEnabled for each platform.

* Add sample and tests

* Some changes to the low-power/energy-saver status
 - moved to the battery calss
 - using an enum and not a bool
 - added an event that will watch the status

* No need to touch these file now.

* Reordered members

* Decided to move the power bits into a new type

* Duplicate types

* Use System.Diagnostics.Debug

* Add docs for power

* Add missing docs :)

* Fix build
2018-06-25 14:47:46 -04:00
James Montemagno 77f9328b36
GH-291: Rename to MainThread for threading calls (#325)
* Rename to MainThread for threading calls

* Fix build issues
2018-06-25 19:27:43 +02:00
Jonathan Dick 296cee39af [Secure-Storage] Return null everywhere for key with no value (#320)
* [secure-storage] consistent return with no value

Currently iOS varied a bit in what it returned if `Get` was called using a key that had no associated/stored value (it was returning `string.Empty`).  This fixes iOS to be consistent with UWP and iOS returning `null` instead.

* [secure-storage] test null return, key with no val

This tests to ensure all platforms return null when `SecureStorage.GetAsync` is called using a key that has no existing record/value stored.
2018-06-25 18:50:54 +02:00
James Montemagno 87561da80f Update NuGet packages (#311) 2018-06-25 10:46:35 -04:00
James Montemagno 3042e6ea98
GH-254 Update Support Packages, Forms, and Reference Vectors (#279)
* Update Support Packages, Forms, and Reference Vectors

* Bump targetsdk

* Fix android build :)

* Fix build
2018-06-07 15:10:46 -07:00
James Montemagno db9bf8fb5f
iOS secure storage simulator tests (#247) (#278)
* iOS secure storage simulator tests (#247)

* Remove line that skips test on virtual devices

* Adding keychain-access-groups in Entitlements.plist

* Setting CodeSign entitlements for Debug configuration

* Making same entitlement.plist changes for iOS sample

* Removing specific code sign key

* Removing physical device trait for iOS SecureStorageTests

* Update DeviceTests.iOS.csproj

* Update Samples.iOS.csproj

* Add configs for codesign on release
2018-06-05 20:03:05 +02:00
James Montemagno 392fbee686
GH-240 Add IsMainThread detection API (#277)
* Add IsMainThread detection API

* Add platform tests for main thread

* Update docs and add more platform tests
2018-06-05 16:37:04 +02:00
James Montemagno 789756084c Fixes #258 and Fixes #255 (#259)
* Fixes #258
* put vectors nuget everywhere.
* NuGet is broken - https://developercommunity.visualstudio.com/content/problem/232996/warning-nu1603-runtimenativesystemiocompression-41.html
* The NuGet doesn't add the assembly references from the GAC
* We need to use a later version of the iOS SDK
2018-05-25 19:57:45 +02:00
Matthew Leibowitz d8529062ea GH-192: Added DateTime to Preferences (#232)
* Added DateTime to preferences. Fixes #192
 - also properly using overloads

* Added some unit tests

* Added the docs for the new Preferences APIs
2018-05-18 14:13:23 -07:00
James Montemagno 9295ce38c2 GH-221: Add iOS SecAccessible properties (#223)
* Address #221, use AfterFirstUnlockThisDeviceOnly to match other platforms. Although allow a platform specific override to set accessible state.

* Add tests

* Added iOS specific prop to set SecAccessible

* Default to AfterFirstUnlock on iOS SecureStorage
2018-05-04 14:58:53 -04:00
Jonathan Dick b85fdb2b16 New Icons! (#218)
* Get rid of Default* images from iOS apps

* New icons!

* Update nuget package icon
2018-04-27 08:03:43 -07:00
Matthew Leibowitz c6c0f79e10 GH-197: Moving screen metrics to a new API class (#199)
* Moving screen metrics to a new API class #197

* Added more keywords to the sample
2018-04-24 11:27:27 -07:00
Matthew Leibowitz a0ff7cc335 GH-134: Cleaned up the API a bit: (#180)
* Cleaned up the API a bit:
 - removed unnecessary static fields
 - removed unnecessary braces
 - a few other tweaks to reduce weird line wraps

* Stopping the sensors requires that they are actually supported.

* Added hardware traits to the tests to avoid evil code

* Fixed some more tests.

* We need to keep a reference to the sensors.

* Android needs to filter some events to avoid large amounts of unnecessary updates

* Gyroscopes are not emulated for Android
2018-04-12 08:54:22 -07:00
Matthew Leibowitz 8f2a1b8abd
No nested classes and no default access modifiers 2018-04-11 19:45:59 +02:00
Jonathan Dick f946220ffa
[DeviceTests] Timeout tcp listener (#172)
Previously if device tests failed to run or complete, the listener would wait indefinitely, timing out the build.  Now the listener will time out after the specified amount (60 seconds by default) so the build can fail faster.
2018-04-10 21:30:09 -04:00
Jonathan Dick 04cae2d1db
[DeviceTests] Uninstall appx in try/catch
This should check if the app is installed first before it tries to uninstall, and run in a try/catch block to ensure it doesn't fail the build.
2018-04-10 20:16:17 -04:00
Matthew Leibowitz 56a24823f4
Merge branch 'master' into pretty-samples 2018-04-11 01:26:39 +02:00
Matthew Leibowitz bcb8d0c222
Making the samples pretty again!
- cleaning up the C#, the XAML and the UI
2018-04-11 00:50:30 +02:00
Jonathan Dick aa9af4abd7
[DeviceTests] missed one uninstall 2018-04-10 17:28:24 -04:00