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

546 Коммитов

Автор SHA1 Сообщение Дата
Matthew Leibowitz 32a7c004d9
Make sure to set the email properties. Fixes #229 2018-05-07 18:12:23 +02:00
Matthew Leibowitz 480cac02a7 A few fixes for the release. (#228)
* Setting the correct flags for Chrome Tabs. Fixes #225

* Make sure that there is data to decrypt before starting. Fixes #226

* Fixes for TTS. Fixes #227

* A bit of the fixes for emails on iOS. Relates to #224

* Update the email bit for iOS #224

* Cleaning up the code #224
2018-05-05 15:31:44 -04: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
James Montemagno 0c30bcfb94 Update README.md (#222) 2018-05-03 17:54:32 -04:00
moljac 475b097c30 GH-12 Text To Speech initial version (#181)
* initial commit

* merge with master

* Tests and missing method copied from the branch

* Android text splitting fixes

* awaitable Initialization methods

* Android reworked - initialize and speak in single method

* removed tweaks for work on Mac and garbage VS4Mac added

* uwp parameters done

* Android TTS with parameters

* TTS iOS parameters

* Refactor TTS code

- Simplify implementations
- Implement remaining pitch/speakrate/volume normalizations
- Implement cancel token logic
- Refact to use public api in shared.cs and platform invocations in platformname.cs

* Adjust slider ranges to match max/min settings

* Simplify TTS demo text

* Move enums into TextToSpeech

Don't really want Pitch, Volume, and SpeakRate enums to be at the root namespace level, so moved them into TextToSpeech.

* Fix sln folders

* Added docs for Text to Speech

* Clean up pitch/volume/speak rate and normalization

* Make 1.0 volume default in tts sample

* Removed accidental / invalid enum value

* Cleanup iOS and UWP apis to queue up message. Added samples to do multiple lines of text queued. Refactored how we throw exceptions.

* A few changes to the API
 - removed redundant code
 - removed enums

* Use TaskCompletionSource<bool> instead of <object>

* Updated docs

* Removing unnecessary changes

* Reverting some changes

* Cleanup random object in tcs.

* cleanup tcs on iOS

* Re-use semaphoreslim :) bring things local if possible

* Fixup uwp, remove the accidental semaphore await.

* Add sample to pick locale

* Additioanl cleanup, use whenall

* Remove speak rate for now

* Remove speakrate from docs

* Fix UWP locales

* Fix up android dispose issues :)

* Remove the dispose calls around TTS

* Fix up splitting of strings and add tests.

* Cancel the speech when leaving the page

* Fix android locale's so it speaks back correctly :)
2018-05-03 14:26:50 -07:00
Matthew Leibowitz 172c019519
Merge pull request #220 from mattleibow/platform-code
GH-190: All platform code is now internal
2018-05-02 21:55:19 +02:00
Matthew Leibowitz 307bb14c4b
Exported types need public constructors 2018-05-02 17:54:14 +02:00
Matthew Leibowitz b04418f2e7
Cleaned docs a bit more 2018-05-02 17:43:55 +02:00
Matthew Leibowitz 831c22d3cc
All platform code is now internal
- public APIs live in the *.shared.cs files
 - all platform code is internal or private
2018-05-02 17:35:12 +02:00
James Montemagno 480242314f GH-211 Use multiple providers and test desired accuracy of updates. (#216)
* Use multiple providers and test desired accuracy of updates.

* Fix up formatting

* Check for location null
2018-04-27 15:21:51 -04:00
James Montemagno 979bcb6e20
GH-168 Update sample error messages (#217) 2018-04-27 09:20:48 -07: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
James Montemagno b67ea9a006
GH-205: Fix for flashlight toggling off when permission was prompted. (#213)
* Fix for flashlight toggling off when permission was prompted.

* Update Flashlight.android.cs

* Formatting
2018-04-26 10:50:08 -07:00
Matthew Leibowitz fded9d98c9
Merge pull request #214 from onovotny/patch-1
Fix restore / build issue
2018-04-26 13:44:47 +02:00
Oren Novotny 0414663804
Fix restore / build issue
Restore and build cannot be invoked at the same time. Restore must be done with a switch.
2018-04-25 21:13:57 -04:00
James Montemagno d73e0b4a01
Update README.md (#212) 2018-04-25 14:17:17 -07:00
James Montemagno 33eb24029d
GH-208,207,206,204 Multiple Fixes to sample application (#210)
* Fix up sensor samples to re-subscribe on onappearing
Remove the old CurrentContext and use AppContext (fixes issues with receivers)
Fixed casting issues with android geolocation when using GPS
Added cancellation token on geolocation page when backing out.

* Update manifest
2018-04-25 12:56:12 -07:00
James Montemagno 2a13cd1275
GT-200/191 - Use Vector3 for sensor data returns. (#201)
* Use Vector3 for sensor data returns.

* Update frameworks index

* Normalize Accelerometer: G's (gravitational force) also ensure matrix is the same between devices

* Docs and comments
2018-04-25 06:59:59 -07:00
Matthew Leibowitz ecbfa7990b
Merge pull request #203 from xamarin/bug/issue-202
GH-202: Don't ever show calibration on iOS for location Fixes #202
2018-04-25 13:21:42 +02:00
James Montemagno 041501de9d
Merge branch 'master' into bug/issue-202 2018-04-24 14:59:16 -07:00
James Montemagno c0a6a944db Don't ever show calibration on iOS 2018-04-24 14:30:26 -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 5a608d85b9 GH-179: Refactored the iOS Reachability (#184)
* Refactored the iOS Reachability #179
 - split the implementation into:
    - a static "get current state"
    - instance "listener"

* Just use the existing handler and clean up properly #179
2018-04-24 08:36:58 -07:00
Matthew Leibowitz dfb4e4dcc0
Merge pull request #186 from mattleibow/update-docs
GH-137: Make sure the API docs are up to date
2018-04-19 14:34:09 +02:00
Matthew Leibowitz 35e12c633b
Update Preferences.xml 2018-04-19 14:33:47 +02:00
Matthew Leibowitz ea74df9ede
Merge pull request #185 from xamarin/SecureStorage-Android-Fix
[SecureStorage] Use IvParameterSpec instead of GCM
2018-04-19 14:32:54 +02:00
Jonathan Dick b5270ad4a9
[SecureStorage] add missing Cipher declaration 2018-04-18 16:47:54 -04:00
Jonathan Dick 4b6500bb3d
[SecureStorage] Use IvParameterSpec in Decrypt too
Use the same try/catch logic for older devices for decrypting as we do encrypting for when to use GCMParameterSpec and when to use IvParameterSpec if that fails.
2018-04-18 16:46:40 -04:00
Jonathan Dick a248c348bd
[SecureStorage] remove unused exception param 2018-04-18 12:06:14 -04:00
Jonathan Dick 51250a900d
[SecureStorage] fall back to IvParameterSpec
Most of the time `GCMParameterSpec` is expected to be used, and if it's not, an exception is thrown saying as much.  There are some cases where older devices have older bouncy castle crypto libs used for their crypto provider, which do not recognize `GCMParameterSpec`.  In these cases, `IvParameterSpec` should work instead, so when we encounter the parameter exception, we should try as a last effort to use `IvParameterSpec` instead.
2018-04-18 12:04:40 -04:00
Jonathan Dick eb91fd34d0
[SecureStorage] don't test always use asymmetric key
This was a copy paste error, we don't care about `alwaysUseAsymmetricKey` here
2018-04-17 14:36:57 -04:00
Matthew Leibowitz e0790a5778
Added missing docs and removed todos 2018-04-17 19:12:07 +02:00
Matthew Leibowitz 5ca9ebb3c9
Make sure the API docs are up to date 2018-04-17 18:18:25 +02:00
Jonathan Dick 52af8b908f
[SecureStorage] Use GCMParameterSpec on newer api levels 2018-04-17 11:47:46 -04:00
Jonathan Dick 63141398f5
[SecureStorage] Use IvParameterSpec instead of GCM
Seeing some older devices have issues with `GCMParameterSpec` not being supported in older BouncyCastle library versions.  We are hitting the exception here: https://github.com/bcgit/bc-java/blob/r1rv49/prov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/BaseBlockCipher.java#L533

If you look at the code, it's clear that `GCMParameterSpec` is not recognized as a valid parameter type yet in that commit, however newer commits of this library do recognize it.

It seems like switching to `IvParameterSpec` should be harmless and make this work on older implementations.  It looks like the only difference is the ability to specify the GCM Tag size, but we are using the default 128 size anyway.
2018-04-17 11:28:30 -04: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 c2dcc5982b
Merge pull request #175 from mattleibow/no-modifiers
Remove Default Accessibility Modifiers
2018-04-11 22:52:03 +02:00
Matthew Leibowitz a2294858bb
woops! 2018-04-11 19:50:40 +02: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 92a6780480
Merge pull request #171 from mattleibow/pretty-samples
Making the samples pretty again!
2018-04-11 01:40:02 +02:00
Matthew Leibowitz 56a24823f4
Merge branch 'master' into pretty-samples 2018-04-11 01:26:39 +02:00
Matthew Leibowitz bb458393ec
Removed redundant "private" and "internal" modifiers 2018-04-11 01:25:43 +02:00
Matthew Leibowitz 770f17e32a
The samples are almost too beautiful 2018-04-11 01:21:25 +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
Jonathan Dick af199636f9
[DeviceTests] UWP: Don't uninstall first 2018-04-10 17:23:37 -04:00
James Montemagno 45d2ed6063 GH-166 Fix UWP tests and Cleanup Battery API (#169)
* Only run sensor tests when they exist on UWP. Add new not present on UWP for batter

* Ensure no divide by 0 issues

* Fix up docs
2018-04-10 17:12:39 -04:00
Matthew Leibowitz 083d1f65a7
Merge pull request #170 from xamarin/marj-docs-monikers
changed mdoc frameworks to match OPS monikers
2018-04-10 22:08:07 +02:00