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

546 Коммитов

Автор SHA1 Сообщение Дата
Matthew Leibowitz 181c01d13e GH-70: Add Flashlight API (#104)
* Initial commit

* Refactored the Flashlight API

* Removing this...

* Added method to throw if permission is !granted

This makes it easy for other api’s to implement with one line of code where we know they want a granted status, and should throw an exception otherwise.

* Added new permissions

* Flashlight fixes for android/ios

* Added flashlight permission to manifest for Sample

* Use ContextCompat to check permissions

So that older API levels still work…

* Fixed Android flashlight

* Refactored shared flashlight class -> platform*

* Added flashlight device tests

* Added docs

* Do not run flashlight tests on iOS
2018-03-28 15:25:50 -04:00
Jonathan Dick 766bb12fec
GH-18: Permissions Internal implementation (#117)
* Initial pass at permissions

* Don’t need async on EnsureDeclared

* Fix BOM that StyleCop was not happy about

* Use correct support lib package

* Added device tests for permissions

* Track android permission requests

This keeps a dictionary of permission requests so as to not duplicate existing requests for permissions, as well as to track their status when the results come in.

* Pass permission results call to Caboodle

* Check platform target, not runtime version

* New tuples!

* Add missing using

* iOS: return granted for irrelevant permissions

* Fix tests around LocationWhenInUse

* Permissions Device Tests check throws on some

* Get battery permission for android device tests

* Android permission requests should be runtime only

* Fix requestCode scope on android permissions

* Use inner method instead of delegate

* Refactor permission declaration check on iOS

* Only check Info.plist permissions on iOS 8.0+

* Always be making stylecop happy

* Permissions are internal only for v1
2018-03-28 09:12:07 -04:00
Jonathan Dick ac7c161476
Make Device Test results specify platform in names (#121)
One drawback to a shared test project is that the namespace and class names aren’t descriptive of the platform they are running on.  When merging all the test results in CI systems, we lose the ability to easily identify where a test case was ran (especially if it failed).

This will quickly replace some text in the test results file to be specific about the platform each test was run on.
2018-03-27 15:27:02 -04:00
Jonathan Dick 2347b5f531
Chkd more boxes, dotted more i's, crossed more t's 2018-03-26 21:10:37 -04:00
Jonathan Dick 3850bbb3fe
GH-66: SecureStorage Implementation (#102)
* styles

* library inital commit

* sample initial commit

* Simplify UWP code for Secure Storage

* Remove unnecessary class file

* Refactored Secure Storage

 - Renamed to SecureStorage
 - Renamed to GetSync/SetAsync
 - Implicit filenames and storage locations on platforms requiring it
 - Reimplemented android - based on common best practices
 - Added Device tests

* Fix build for secure storage

* Code cleanup

* Make compiler happy with enabled stylecop

* Added MD5Hash util function

* SecureStorage: Make UWP use settings to store vals

* SecureStorage: Clean up shared impl

* SecureStorage: Android improvements

 - Use more secure AES/GCM/NoPadding for encrypting data
 - Store encrypted data (and wrapped key for < API 23) in preferences instead of files

* SecureStorage: iOS use alias as service id

* SecureStorage: Fixes for Android impl

* Added InternalsToVisible assembly attributes

Device Tests can now access internals from main lib.

* SecureStorage: different test data for android

This lets us test the both the API23+ and the < API23 implementations.

* Drop debug entitlements on ios device testr runner

* Undo generated csproj addition

* Use a different prefs key on android for enc key

* SecureStorage: Sample refactoring

* Remove SMS device tests (bad rebase)

* Fix param names in test

* Added Secure Storage docs

* Don’t run securestorage dev tests on iOS simulator

* Revert entitlements usage to template defaults

* Revert entitlements to default

* Use Platform API Level detection

* Cleanup tests
2018-03-26 20:23:07 -04:00
James Montemagno 567514759a
Bind to an int instead of string so selection works. (#115) 2018-03-26 12:14:46 -07:00
James Montemagno b6cffffe3e GH-8: Add Connectivity API (#6)
* Add base connectivity

* Update naming and put in Caboodle folder

* Add: NetworkAccess and Profiles instead of simple bools

* update sample and test device runner

* Implement Connection profiles and connection change events.

* Additional cleanup for compile

* Add tests and samples

* Fix saving list to not be reference type.

Ensures that when profiles change an event is triggered.

* Android dont' show non-connected profiles

* Refactor some code

Local functions!!!!!!!!

* Update exception names for compile

* Add connectivity documentation

* Add docs

* Fix build

* Delete unit test 1 from build

* Fix tests! woops

* Cleanup connectivity API checks and add remarks for exceptions on Android
2018-03-26 14:51:50 -04:00
James Montemagno f64844c5c0 Fix Sms to user proper API. Tested on device. Updated api level helpers (#114) 2018-03-26 14:21:55 -04:00
Matthew Leibowitz a7c095df31 GH-25: Add PhoneDialer API (#109)
* GH-25: Add PhoneDialer API (#37)

* added phone dialer api

* fixes according to comments

* Merge branch 'master' into feature/phone-dialer

* Added the UWP SDK references and fix the Android intent logic as StartNewActivity does not exist.

* fixed style errors

* added phone dialer sample

* added phone dialer tests

* Cleanup exceptions from merge

* Cleanup dial API and is supported

* Cleanup dialers is supported

* Cleanup tests and samples.

* Add phone dialer docs.

* Cleanup UWP

* Add remarks

* Changes based on feedback to cleanup samples.

* Add platform helpers.
2018-03-26 10:40:45 -07:00
James Montemagno 66c275a285 Update README.md (#108) 2018-03-23 21:10:13 +02:00
moljac 9db695aaad GH-13: Browser API (#68)
* browser launch url implementation (no file scheme)

* Refactor code and upgrade nugets!

Added documentation.

* Add browser tests

* Refactor code

* refactor a bit more.

* Add 1G to Android samples

* Update java heap on device tests

* Rename enums and cleanup based on feedback.

* Fix typos in docs.

* One set of docs got missed.

* Add a check to see if intent is supported before calling it.
2018-03-22 18:46:17 -07:00
James Montemagno 72b83cf3f3 Fixes for Share (#107)
* Initial Support for Data Transfer aka Share
* Add samples for Data Transfer
* Add Tests for DataTransfer
* Add documentation
* Rename to RequestAsync, Cleanup UWP, and update docs
* Update to use AppInfo
* Cleanup event handler in UWP
* Ensure we request data after
2018-03-23 03:15:52 +02:00
Matthew Leibowitz d9c866ea34
Added more docs (#103) 2018-03-22 21:18:43 +02:00
Matthew Leibowitz 31b6b399be
Merge pull request #106 from mattleibow/fix-build
Fix the tests which are failing the build
2018-03-22 20:40:03 +02:00
Matthew Leibowitz 1f43e5f519
Removing the SMS tests as this switches the app 2018-03-22 20:33:15 +02:00
Matthew Leibowitz d659f723c1 Add ScreenLock API (#101)
* Add a wake lock API.

* Rename WakeLock to ScreenLock
2018-03-22 09:33:30 -07:00
James Montemagno 2990784c43
GH-22: Initial Support for Data Transfer aka Share (#97)
* Initial Support for Data Transfer aka Share

* Add samples for Data Transfer

* Add Tests for DataTransfer

* Add documentation

* Rename to RequestAsync, Cleanup UWP, and update docs

* Update to use AppInfo

* Cleanup event handler in UWP
2018-03-21 19:33:46 -07:00
James Montemagno f7d2cff0d2 Update and finalize documentation. (#96) 2018-03-21 18:35:19 +02:00
Jonathan Dick 10f985da4b
Updated docs mdoc version 2018-03-21 11:16:37 -04:00
Jonathan Dick c4bedff74b
Update mdoc version 2018-03-21 11:16:09 -04:00
Matthew Leibowitz 13bb42cd8a GH-26: Add SMS API (#91)
* Adding SMS API

* Added tests

* Added docs

* Made some changes to the way SMS works

* Fix the tests
2018-03-20 21:55:52 -07:00
Matthew Leibowitz 608c70d7cd Only generate docs for current assembly (#100) 2018-03-20 21:42:48 -07:00
James Montemagno 491a400c27
Update contributing based on feedback. (#93)
* Update contributing based on feedback.

* Adding more APIs to the readme
2018-03-20 18:19:52 -07:00
Matthew Leibowitz b0f4f40fe2
Update README.md 2018-03-21 00:46:41 +02:00
Matthew Leibowitz cb371b2c4e GH-95: Moved app info into AppInfo (#98)
* Moved app info into AppInfo

* Added docs for #95
2018-03-20 10:46:09 -07:00
James Montemagno 532a4b7382 Fix for UWP battery when fully charged (#89) 2018-03-16 13:38:31 -04:00
Matthew Leibowitz 20ce34e7a2 Changed the project/NuGet author. Fixes #90 (#92) 2018-03-16 10:02:13 -07:00
Matthew Leibowitz 9d5fb3e2b9 GH-14: Add FileSystem (#42)
* Initial work to add a FileSystem API

* Added some FileSystem API tests

* Use "Package" instead of "Bundle"

* Using NSSearchPath instead of NSFileManager

* We are using spaces instead of tabs

* Added the FileSystem sample

* Fixing styles

* We cache NOTHING

* Added docs

* removing UserDataDirectory as this is just an iOS thing

* Use char not string for the replace

* iOS should always have a path, but if it doesn't, don't throw, just return null

* Using the new exceptions

* Fixing the exceptions for the tests
2018-03-15 15:26:33 -04:00
James Montemagno 27c8463d3d Fix type and add Exception for NotImplementedInReference (#86) 2018-03-15 13:43:30 -04:00
Matthew Leibowitz ff78f0e771 Added "warnings" for missing docs. (#87)
* Added "warnings" for missing docs.

* added clipboard docs #11 #24

* added device type docs

* added screen metrics docs
2018-03-14 20:14:30 -04:00
Matthew Leibowitz eca04c4174
Merge pull request #85 from mattleibow/docs-fix
Fix the docs generator
2018-03-15 00:23:51 +02:00
Matthew Leibowitz 2df2a5f7fa
Fix the docs generator 2018-03-15 00:17:29 +02:00
James Montemagno 12e2bbcc0b GH-15: Add FAQ, moved GH templates, and updated PR template (#67)
* Add FAQ, moved GH templates, and updated PR template

* Update PULL_REQUEST_TEMPLATE.md

* Update README.md
2018-03-14 16:37:03 -04:00
Jonathan Dick e0ee532241
GH-73: Added docs for Preferences (#72)
* Added docs for Preferences

* Fixes doc typos
2018-03-14 16:36:37 -04:00
James Montemagno 980d4f9cd4 GH-73: Add Battery Documentation (#79)
* Add back battery sample

* Add battery documentation

* Revert back sample, woops

* More cleanup
2018-03-14 16:36:20 -04:00
James Montemagno 75042de817 Add geocoding documentation (#83)
Made methods internal where necessary.
2018-03-14 16:35:51 -04:00
Alfred Myers d0def58a5a Minor text fix (#84)
changed `s_` to `_s`
2018-03-14 13:20:03 -07:00
Matthew Leibowitz cfe4d2d574
Merge pull request #78 from xamarin/marj-docs-ci
CI changes for api docs
2018-03-14 17:17:56 +02:00
Daniel Cazzulino f532523bee Remove unnecessary MSBuilld snippets that already ship with XF (#80)
The referenced version of XF already provides targets for both removed snippets, see 
https://github.com/xamarin/Xamarin.Forms/blob/2.5.0/.nuspec/Xamarin.Forms.DefaultItems.targets#L11 and 
https://github.com/xamarin/Xamarin.Forms/blob/2.5.0/.nuspec/Xamarin.Forms.DefaultItems.props#L4.
2018-03-13 21:29:31 -07:00
Joel Martinez 48b9bfffec
packages.config for docs 2018-03-13 16:41:06 -04:00
Matthew Leibowitz fa98d24223
Fixing the tests with the new threading model 2018-03-13 20:03:19 +02:00
Matthew Leibowitz ec4fffcf83
Merge branch 'master' into pr/24 2018-03-13 19:34:40 +02:00
Matthew Leibowitz 0052a1a7f9
Response to threading changes 2018-03-13 19:33:53 +02:00
Matthew Leibowitz 52b3bac271
Merge pull request #76 from mattleibow/fix-threading-again
Change Threading
2018-03-13 19:32:21 +02:00
Matthew Leibowitz 813b86e787
Merge branch 'master' into pr/24 2018-03-13 19:18:59 +02:00
Matthew Leibowitz 77c82442af
Tweak the battery API to share some code 2018-03-13 19:13:34 +02:00
Matthew Leibowitz 64e46f91bf
The library shouldn't manage all the threads, just when necessary 2018-03-13 19:06:05 +02:00
Konstantin Chuvilyov af130501a0 SetTextAsync is for UI-thread now 2018-03-13 19:29:56 +07:00
James Montemagno 0663d98d6c
Merge pull request #74 from xamarin/contributing-mdoc
GH-69: Updated CONTRIBUTING.md with mdoc information
2018-03-12 22:22:51 -07:00
Konstantin Chuvilyov 1c09fa0edf fixed problems with UI thread 2018-03-13 10:58:42 +07:00