Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
541 commits
Select commit Hold shift + click to select a range
46c37fb
Merge pull request #1200 from xamarin/dev/should-show-rationale
Redth Apr 17, 2020
ff75418
Merge pull request #1213 from xamarin/xcode-114-mono-680
Redth Apr 17, 2020
887f8aa
added macOS FilePicker implementation
vividos Apr 15, 2020
a21b247
renamed file to .macos.cs to get picked up by MacOS build
vividos Apr 20, 2020
f42ba86
added macOS custom file picker file type to sample
vividos Apr 20, 2020
8b28a87
use PickerTitle when set
vividos Apr 20, 2020
f2a730d
fixed checking return code from RunModal()
vividos Apr 20, 2020
4f65766
fixed passing allowed file types to NSOpenPanel
vividos Apr 20, 2020
17a99e8
Merge pull request #1226 from vividos/dev/file-picker
Redth Apr 20, 2020
0dcef37
Merge branch '1.6.0' into dev/file-picker
Redth Apr 20, 2020
a371697
Merge branch 'develop' into featureHapticFeedback
Redth Apr 20, 2020
6c22354
Merge branch 'develop' into dev/android-dep-fixes
jamesmontemagno Apr 20, 2020
419f360
Merge branch '1.6.0' into dev/android-dep-fixes
Redth Apr 21, 2020
3b5a9da
Merge branch 'develop' into 1.6.0
Redth Apr 21, 2020
dfaabfa
Merge branch '1.6.0' into dev/android-dep-fixes
Redth Apr 21, 2020
892cd22
Merge branch '1.6.0' into dev/app-actions
Redth Apr 21, 2020
69c6de7
Merge branch 'develop' into featureHapticFeedback
dimonovdd Apr 21, 2020
afc8408
Fix build for permissions
jamesmontemagno Apr 23, 2020
0ae7809
Merge branch 'develop' into featureHapticFeedback
dimonovdd Apr 24, 2020
f30a865
Merge pull request #1231 from xamarin/dev/android-dep-fixes
Redth Apr 24, 2020
f57a79e
added Test
dimonovdd Apr 24, 2020
ded8826
Convert Type Enums
dimonovdd Apr 26, 2020
c46cd71
added Sample
dimonovdd Apr 26, 2020
c71f710
change modifiers
dimonovdd Apr 27, 2020
914e190
Create HapticFeedback.xml
BitooBit Apr 27, 2020
205dad6
Create HapticFeedbackType.xml
BitooBit Apr 27, 2020
760672d
changed docs
dimonovdd Apr 27, 2020
a798f7e
Merge branch '1.6.0' into dev/app-actions
Redth Apr 28, 2020
bd91c08
changed Haptic feedback for review
dimonovdd Apr 28, 2020
866f145
removed Task.CompletedTask
dimonovdd Apr 28, 2020
9ed3a1f
Update Samples/Samples/View/HaptickFeadbackPage.xaml.cs
dimonovdd Apr 29, 2020
fa43cdf
fixed typos
dimonovdd Apr 29, 2020
0e2ca05
fixed typos #2
dimonovdd Apr 29, 2020
857390b
added HapticFeedback Tizen
dimonovdd Apr 29, 2020
6bdbc61
Cleaned up supported platform logic
Redth Apr 29, 2020
feb9abd
Add tests
Redth Apr 29, 2020
51db2a4
Merge branch 'develop' into featureHapticFeedback
dimonovdd Apr 29, 2020
bc62cc3
Update Samples/Samples/Samples.csproj
dimonovdd Apr 30, 2020
9bb438c
fixed typos #3
dimonovdd Apr 30, 2020
777cd29
Merge branch 'develop' into featureHapticFeedback
dimonovdd Apr 30, 2020
aab9c3b
Added AuthenticationCode and State properties to the WebAuthenticatio…
magoolation Apr 30, 2020
5db832b
Apply suggestions from code review
mattleibow Apr 30, 2020
ae5a19a
Merge branch 'develop' into featureHapticFeedback
dimonovdd May 2, 2020
053d854
Fixed mimetypes null object refs #1225
flish May 5, 2020
404dd60
defaults to application/octet-stream if can’t identify mimetype close…
flish May 5, 2020
ead0e8f
Removed comments #1225
flish May 6, 2020
2412b0f
Shortened null check expression as per review #1225 #1262
flish May 6, 2020
bc62e1a
added null checks when setting URIs
edsnider May 6, 2020
e7989d6
Merge branch 'develop' into flish/#1225-default-mime-type-for-attachm…
jamesmontemagno May 6, 2020
19de600
Drop system ref and add nuget.
jamesmontemagno May 6, 2020
b5c749f
added app actions samples
edsnider May 6, 2020
e744ddd
Add comment to Startup.cs
solomonfried May 11, 2020
dd4559d
Merge branch 'develop' into featureHapticFeedback
dimonovdd May 17, 2020
87af296
Fixed bug in UWP where when the user cancel operation, an exception w…
IlGalvo May 17, 2020
e171100
Update Placemark.xml (#1273)
Brucepimenta May 18, 2020
8520a6d
Merge branch 'develop' into develop
newky2k May 19, 2020
07c586f
Merge branch 'develop' into patch-1
newky2k May 19, 2020
e0a9706
Merge branch 'develop' into Apple-AuthCode
Redth May 19, 2020
79f8fb6
Merge branch 'develop' into featureHapticFeedback
dimonovdd May 20, 2020
05ec4b8
Return user's email as part of the properties.
solomonfried May 22, 2020
4de7726
Update CONTRIBUTING.md (#1297)
jfversluis Jun 2, 2020
2cb2fe9
Merge branch 'develop' into featureHapticFeedback
dimonovdd Jun 3, 2020
1d52e15
ASWebAuthenticationSession and SFAuthenticationSession won't leak whe…
MKuckert Jun 8, 2020
2333ff9
Remove MSDN zip xref config from existing .NET repos (#1294)
Jun 9, 2020
bdcf5c0
Updated Location.Course documentation to show that GetLastKnowLocatio…
Jun 10, 2020
c82fa2e
Merge branch 'develop' into featureHapticFeedback
dimonovdd Jun 11, 2020
1a09192
Merge branch 'develop' into bugfix/webauthenticator-leakoncancel
Redth Jun 11, 2020
a1b9e73
Update Xamarin.Essentials/WebAuthenticator/WebAuthenticator.uwp.cs
IlGalvo Jun 11, 2020
b3758aa
Merge branch 'develop' into develop
IlGalvo Jun 11, 2020
62eda15
Merge pull request #1306 from davehump/develop
Redth Jun 15, 2020
f836184
Merge pull request #1281 from IlGalvo/develop
Redth Jun 15, 2020
90e4f1d
Merge pull request #1296 from MKuckert/bugfix/webauthenticator-leakon…
Redth Jun 15, 2020
60e2090
Update Samples/Sample.Server.WebAuthenticator/Controllers/MobileAuthC…
solomonfried Jun 16, 2020
14c6d1a
Merge branch 'develop' into featureHapticFeedback
dimonovdd Jun 18, 2020
0c77c28
Merge branch 'develop' into patch-2
Redth Jun 22, 2020
282d131
Merge pull request #1269 from solomonfried/patch-1
Redth Jun 22, 2020
ad0c74c
Merge pull request #1287 from solomonfried/patch-2
Redth Jun 22, 2020
dc1626c
Merge branch 'develop' into flish/#1225-default-mime-type-for-attachm…
Redth Jun 22, 2020
086f7ec
Merge branch 'develop' into featureHapticFeedback
dimonovdd Jun 25, 2020
8b216ca
Audio will stop immediately when the Task is cancelled.
sreerajPR Jun 29, 2020
f166be5
Merge pull request #1265 from xamarin/dev/vector-nuget
Redth Jul 16, 2020
f6dd837
Merge pull request #1254 from magoolation/Apple-AuthCode
Redth Jul 16, 2020
464d885
Merge branch 'develop' into featureHapticFeedback
Redth Jul 16, 2020
86240aa
Merge pull request #1319 from sreerajPR/patch-1
Redth Jul 16, 2020
85c8ccd
Fix up some android api deprecations
Redth Jul 16, 2020
219b585
Renamed Execute to Perform
Redth Jul 16, 2020
96fc823
Code cleanup
Redth Jul 16, 2020
7416c2a
Switched LongPress on iOS to be more impactful
Redth Jul 16, 2020
f1e4c85
Fix up spacing
Redth Jul 16, 2020
54f2253
Switch to r8 from proguard
Redth Jul 16, 2020
a79fd07
Merge branch 'develop' into featureHapticFeedback
Redth Jul 16, 2020
e39b750
Fix whitespace
Redth Jul 16, 2020
ca78b80
Fix up whitespace
Redth Jul 16, 2020
0e6d0f7
Merge branch 'develop' into featureHapticFeedback
Redth Jul 16, 2020
c77a6d8
Cleanup
Redth Jul 16, 2020
1e94663
Clean up modifiers
Redth Jul 16, 2020
15f553d
Fix up android deprecations
Redth Jul 16, 2020
7fda3e5
Merge branch 'develop' into featureHapticFeedback
Redth Jul 16, 2020
2246656
Add AnswerPhoneCalls permission if exists in manifest
dogukandemir Jul 18, 2020
d5bb005
Update docs
Redth Jul 20, 2020
94717ca
Merge pull request #1138 from dimonovdd/featureHapticFeedback
Redth Jul 20, 2020
8ea8518
Merge branch 'develop' into flish/#1225-default-mime-type-for-attachm…
Redth Jul 20, 2020
85af246
Merge branch 'develop' into 1.6.0
Redth Jul 20, 2020
4766655
Merge pull request #1262 from flish/flish/#1225-default-mime-type-for…
Redth Jul 20, 2020
228c2e4
Merge branch 'develop' into 1.6.0
Redth Jul 20, 2020
099993c
Fix bad merge
Redth Jul 20, 2020
61f66aa
Make hapticfeedback not supported on macos
Redth Jul 20, 2020
3ab48b9
Merge pull request #1206 from xamarin/1.6.0
Redth Jul 20, 2020
3bc0007
Refactor File picker api
Redth Jul 20, 2020
cd72ff5
Merge branch 'develop' into dev/file-picker
Redth Jul 20, 2020
9d11cb6
More filepicker api refactoring
Redth Jul 20, 2020
5506287
Fix multiple pick
Redth Jul 20, 2020
fa64565
Merge pull request #5 from xamarin/1.6.0
dimonovdd Jul 20, 2020
b36203f
Refactor iOS file picker impl
Redth Jul 20, 2020
aee3603
added hapticFeedback macOS
dimonovdd Jul 20, 2020
057ec26
Merge branch 'develop' into featureHapticFeedback
dimonovdd Jul 20, 2020
727841f
reseted changes Samples.Android.csproj
dimonovdd Jul 20, 2020
117e1ff
Fix up tests
Redth Jul 20, 2020
3624ecd
Fix permissions on tizen
Redth Jul 21, 2020
ed1281b
Allow multiple file picking on Tizen
Redth Jul 21, 2020
fe97934
Update api docs
Redth Jul 21, 2020
2078a1e
Fix some missing api docs for macos
Redth Jul 21, 2020
8ca5ddf
Fix duplicate docs
Redth Jul 21, 2020
1e265f8
Merge pull request #975 from xamarin/dev/file-picker
Redth Jul 21, 2020
3eb1043
Merge branch 'develop' into featureHapticFeedback
Redth Jul 21, 2020
416e4ee
Merge branch 'develop' into feature/check-answerphonecalls-permission…
Redth Jul 21, 2020
174a204
Merge pull request #1329 from dogukandemir/feature/check-answerphonec…
Redth Jul 21, 2020
30c81ee
Merge branch 'develop' into featureHapticFeedback
dimonovdd Jul 21, 2020
f8045e0
[Tizen] Update the FilePicker implementation
rookiejava Jul 22, 2020
a028e21
Clean up tizen file picker code
Redth Jul 22, 2020
1547d64
Fix up await usage
Redth Jul 22, 2020
71cea30
Merge branch 'develop' into dev/add-media-picker
Redth Jul 22, 2020
a2c4ddf
Merge pull request #1335 from rookiejava/update-filepicker-tizen
Redth Jul 23, 2020
efce8e5
Improve media picker to work with file picker
Redth Jul 23, 2020
2e04ccd
Merge branch 'develop' into dev/add-media-picker
Redth Jul 23, 2020
9bc017d
More refactor/rebase fixups
Redth Jul 23, 2020
579dc8f
Merge branch 'develop' into featureHapticFeedback
dimonovdd Jul 23, 2020
b95012c
Rename MediaFile to MediaPickerResult
Redth Jul 23, 2020
d7c5c56
Re-implement ios media picker
Redth Jul 23, 2020
5255428
Fix up formatting
Redth Jul 23, 2020
7bfc309
Fix crash of clipboard sample when text is null
bares43 Aug 2, 2020
aeebd9f
replaced hapticFeedbackPattern "alignment" with " generic" on MacOS
dimonovdd Aug 4, 2020
6423e10
Update dependencies
Redth Aug 5, 2020
2f95349
Add file types for videos
Redth Aug 5, 2020
c4d7ce6
Allow IntermediateActivity to specify file output extra
Redth Aug 5, 2020
a1d58bb
Add media picker support
Redth Aug 5, 2020
9548628
Add video pick/capture in sample
Redth Aug 5, 2020
37fd1ee
Add manifest declarations
Redth Aug 5, 2020
8dd48e8
Add null check in NSDictionary result
Redth Aug 6, 2020
572e001
Clean up IsCaptureAvailable
Redth Aug 6, 2020
eec4589
Fix copy paste name oops
Redth Aug 6, 2020
ba8d0d8
Merge pull request #1333 from dimonovdd/featureHapticFeedback
Redth Aug 6, 2020
037ff30
If picking/captureing video, might be MediaURL
Redth Aug 6, 2020
e09d051
Change permissions and camera capture mode for video on iOS
Redth Aug 6, 2020
5391c8a
Add microphone permission for iOS sample
Redth Aug 6, 2020
1fcb7dc
Rework android request codes
Redth Aug 10, 2020
c8eb2d2
Merge pull request #1340 from bares43/fix/ClipboardSample
Redth Aug 10, 2020
4c4f238
Clipboard: set string.Empty when value is null
bares43 Aug 12, 2020
de3b6eb
Merge branch 'develop' into feature/ClipboadNullValue
mattleibow Aug 12, 2020
7cb1a23
Remove no longer used method
Redth Aug 13, 2020
d77379c
Merge branch 'develop' into dev/add-media-picker
Redth Aug 13, 2020
9354892
Update chat link to switch to discord
Redth Aug 14, 2020
61aa26b
Added Contact API
pictos Aug 15, 2020
badf6ed
Added sample
pictos Aug 15, 2020
f99d80a
Android implementation
pictos Aug 15, 2020
67a1244
Implemented Android ContactAPI
pictos Aug 15, 2020
7c1cf3c
Added ContactAPI to iOS
pictos Aug 16, 2020
0c08940
simplified iOS implementation
pictos Aug 16, 2020
8d4059c
Merge the picker result types
mattleibow Aug 17, 2020
5d6c0db
Update the docs
mattleibow Aug 17, 2020
843c2e5
Merge branch 'develop' into feature/ClipboadNullValue
jamesmontemagno Aug 17, 2020
ba6f9cf
Clipboard: set string.Empty when value is null - change if to null-co…
bares43 Aug 18, 2020
4fe009c
[GH-1353] - Put null checks in file path provider on Essentials.
jamesmontemagno Aug 19, 2020
435d149
Rework AppActions
Redth Aug 20, 2020
5dc3309
Add icon support to UWP app actions
Redth Aug 20, 2020
c4faf5b
Merge pull request #1354 from xamarin/gh-1353
Redth Aug 20, 2020
9af1723
Merge branch 'dev/add-media-picker' into dev/screenshots
mattleibow Aug 20, 2020
72b770c
Screenshots are not files, but in memory
mattleibow Aug 20, 2020
0882a6e
move back
mattleibow Aug 20, 2020
538bab9
not needed
mattleibow Aug 20, 2020
2524e04
back
mattleibow Aug 20, 2020
697df9a
Update docs
mattleibow Aug 20, 2020
66d3629
This may be null
mattleibow Aug 20, 2020
0aa1935
Merge branch 'dev/add-media-picker' into dev/screenshots
mattleibow Aug 20, 2020
6fd2a6a
ConfigureAwait(false) everything!
mattleibow Aug 20, 2020
93c0cf2
Tweaks
mattleibow Aug 21, 2020
b23682b
var name and slashes
mattleibow Aug 21, 2020
25ec669
Allow UWP icon extension to be changed
Redth Aug 24, 2020
250e6f4
Update Xamarin.Essentials/AppActions/AppActions.uwp.cs
Aug 25, 2020
a4ac76e
Merge branch 'develop' into dev/app-actions
Redth Aug 25, 2020
bbec9bc
Use the cached image width/height
Redth Aug 25, 2020
5e7d533
Merge pull request #1356 from xamarin/dev/screenshots
mattleibow Aug 25, 2020
6308f88
Adding an IsSupported property
mattleibow Aug 25, 2020
6147e6c
Change structs to classes
Redth Aug 26, 2020
57b552c
Return null without permissions
Redth Aug 26, 2020
845c0ae
Improve sample formatting
Redth Aug 26, 2020
87d26b2
Fix birthdays returning null instead of mindate
Redth Aug 26, 2020
0068c1b
Return nul on UWP if none returned from picker
Redth Aug 26, 2020
17afcb7
Formatting fixes
Redth Aug 26, 2020
ef1a8a2
Rework static callbacks on iOS
Redth Aug 26, 2020
525cbbb
Tizen support
Redth Aug 26, 2020
640a453
Fixed contact type on android
pictos Aug 27, 2020
b8b6956
Merge branch 'develop' into pj/contact-api
pictos Aug 27, 2020
df51fea
Update Samples.csproj
mattleibow Aug 27, 2020
3c34b71
Update Xamarin.Essentials.csproj
mattleibow Aug 27, 2020
ad59fbf
Merge pull request #1364 from xamarin/mattleibow-patch-1
Redth Aug 27, 2020
7bc288a
Use request code from Platform on android
Redth Aug 27, 2020
ebcd5bd
Improvements based on PR comments
Redth Aug 27, 2020
f52cd7c
Remove unnecessary contactmanager usage on uwp
Redth Aug 27, 2020
45139c5
Update Accelerometer.xml
jfversluis Aug 27, 2020
247998b
Implemented local methods in Android
pictos Aug 27, 2020
aeccb32
Removed Birthday from ContactsAPI
pictos Aug 27, 2020
bee2935
Fixed duplicated values on Android
pictos Aug 28, 2020
7b8468b
Update config to enable docfx v3
Aug 28, 2020
7f48258
Merge pull request #1365 from jfversluis/patch-1
mattleibow Aug 28, 2020
35a948f
Merge pull request #1366 from xamarin/docs-build-v3-migration
Redth Aug 28, 2020
9765b0d
Update Screenshot.android.cs
mattleibow Aug 28, 2020
aebcf59
Merge pull request #1349 from pictos/pj/contact-api
Redth Aug 28, 2020
dadeb41
Merge pull request #1362 from xamarin/dev/media-shot
Redth Sep 1, 2020
536c6ee
Clean up lifecycle events on android
Redth Sep 1, 2020
0aef25d
Ensure we don't subscribe to multiple app instances
Redth Sep 1, 2020
0dc595d
Merge branch 'develop' into dev/add-media-picker
Redth Sep 1, 2020
dc4c3c9
Merge pull request #613 from xamarin/dev/add-media-picker
Redth Sep 1, 2020
689d642
Merge branch 'develop' into dev/app-actions
Redth Sep 1, 2020
48eed37
Merge pull request #1190 from edsnider/dev/app-actions
Redth Sep 1, 2020
5361e0b
Make forms app static
Redth Sep 1, 2020
d9e38a3
Update the working version to 1.6.0
mattleibow Sep 2, 2020
8d3ee8d
Tweak the AppAction param order
mattleibow Sep 2, 2020
9abbd37
Some fixes
mattleibow Sep 2, 2020
7c8a59b
Merge pull request #1369 from xamarin/dev/aa
Redth Sep 2, 2020
696928b
Merge pull request #1367 from xamarin/sample-static-app
Redth Sep 3, 2020
6e9be02
Use the build template and yaml
mattleibow Sep 4, 2020
ccf215e
Get binlogs
mattleibow Sep 4, 2020
010bd6a
Merge pull request #1370 from xamarin/dev/ci
mattleibow Sep 8, 2020
81c6ae2
Use the version of Xcode that matches the macOS
mattleibow Sep 8, 2020
4be08ff
Merge pull request #1345 from bares43/feature/ClipboadNullValue
Redth Sep 11, 2020
4842efc
Testing contact permission requires info plist
Redth Sep 14, 2020
cff4c81
Keep ABAddressBook instance
Redth Sep 14, 2020
165a6e3
Keep UIDocumentInteractionController instance
Redth Sep 14, 2020
68a4b0a
Clean up the contacts page
mattleibow Sep 14, 2020
0b27981
Update build.cake
mattleibow Sep 14, 2020
53a4a10
Fix duplicate doc entry
Redth Sep 14, 2020
31c9899
Remove duplicate doc entries
Redth Sep 14, 2020
d9c0453
Remove doc for internal ctor
Redth Sep 14, 2020
8d8a7e1
Fixed FileNotFoundException thrown when canceled and internet is turn…
IlGalvo Sep 14, 2020
6b1458c
Merge pull request #1380 from xamarin/ios-memory-scope
Redth Sep 14, 2020
a0b12b4
Regenerate the docs
mattleibow Sep 14, 2020
e1719f4
Fix the docs
mattleibow Sep 14, 2020
62e1085
Merge pull request #1381 from xamarin/dev/docs
Redth Sep 14, 2020
b8c56c7
Merge branch 'origin/main' into develop
mattleibow Sep 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .openpublishing.publish.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,8 @@
"target_framework": "net45",
"version": "latest"
}
]
],
"docs_build_engine": {
"name": "docfx_v3"
}
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Every pull request which affects public types or members should include correspo

If you're looking for something to fix, please browse [open issues](https://github.com/xamarin/Essentials/issues).

Follow the style used by the [.NET Foundation](https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/coding-style.md), with two primary exceptions:
Follow the style used by the [.NET Foundation](https://github.com/dotnet/runtime/blob/master/docs/coding-guidelines/coding-style.md), with two primary exceptions:

- We do not use the `private` keyword as it is the default accessibility level in C#.
- We will **not** use `_` or `s_` as a prefix for internal or private field names
Expand Down
14 changes: 2 additions & 12 deletions DeviceTests/DeviceTests.Android/DeviceTests.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,12 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.2.0.848062" />
<PackageReference Include="Xamarin.Android.Support.Design" Version="28.0.0.3" />
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="28.0.0.3" />
<PackageReference Include="Xamarin.Android.Support.v4" Version="28.0.0.3" />
<PackageReference Include="Xamarin.Android.Support.v7.CardView" Version="28.0.0.3" />
<PackageReference Include="Xamarin.Android.Support.v7.MediaRouter" Version="28.0.0.3" />
<PackageReference Include="Xamarin.Android.Support.CustomTabs" Version="28.0.0.3" />
<PackageReference Include="Xamarin.Android.Support.Core.Utils" Version="28.0.0.3" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.1.0" />
<PackageReference Include="Xamarin.Google.Android.Material" Version="1.0.0" />
<PackageReference Include="Xamarin.AndroidX.Legacy.Support.V4" Version="1.0.0" />
<PackageReference Include="Xamarin.AndroidX.MediaRouter" Version="1.1.0" />
<PackageReference Include="Xamarin.Forms" Version="4.7.0.1239" />
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.devices" Version="2.5.25" />
<PackageReference Include="UnitTests.HeadlessRunner" Version="2.0.0" />
<PackageReference Include="Xamarin.AndroidX.MediaRouter" Version="1.1.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Xamarin.Essentials\Xamarin.Essentials.csproj">
Expand Down
2 changes: 1 addition & 1 deletion DeviceTests/DeviceTests.Android/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected override void OnCreate(Bundle bundle)
Xamarin.Essentials.Platform.Init(this, bundle);

var hostIp = Intent.Extras?.GetString("HOST_IP", null);
var hostPort = Intent.Extras?.GetInt("HOST_PORT", 10578) ?? 10578;
var hostPort = Intent.Extras?.GetInt("HOST_PORT", 63559) ?? 63559;

if (!string.IsNullOrEmpty(hostIp))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
Expand Down
4 changes: 2 additions & 2 deletions DeviceTests/DeviceTests.Android/Tests/FileProvider_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void Share_Simple_Text_File_Test()
Assert.False(FileProvider.IsFileInPublicLocation(file));

// Actually get a safe shareable file uri
var shareableUri = Platform.GetShareableFileUri(file);
var shareableUri = Platform.GetShareableFileUri(new ReadOnlyFile(file));

// Launch an intent to let tye user pick where to open this content
var intent = new Android.Content.Intent(Android.Content.Intent.ActionSend);
Expand Down Expand Up @@ -232,7 +232,7 @@ static Android.Net.Uri GetShareableUri(string file, FileProviderLocation locatio
FileProvider.TemporaryLocation = location;

// get the uri
return Platform.GetShareableFileUri(file);
return Platform.GetShareableFileUri(new ReadOnlyFile(file));
}
finally
{
Expand Down
48 changes: 48 additions & 0 deletions DeviceTests/DeviceTests.Shared/AppActions_Tests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Xamarin.Essentials;
using Xamarin.Forms;
using Xunit;

namespace DeviceTests
{
public class AppActions_Tests
{
[Fact]
public void IsSupported()
{
var expectSupported = false;

#if __ANDROID_25__
expectSupported = true;
#endif

#if __IOS__
if (Platform.HasOSVersion(9, 0))
expectSupported = true;
#endif
Assert.Equal(expectSupported, AppActions.IsSupported);
}

#if __ANDROID_25__ || __IOS__
[Fact]
public async Task GetSetItems()
{
if (!AppActions.IsSupported)
return;

var actions = new List<AppAction>
{
new AppAction("TEST1", "Test 1", "This is a test", "myapp://test1"),
new AppAction("TEST2", "Test 2", "This is a test 2", "myapp://test2"),
};

await AppActions.SetAsync(actions);

var get = await AppActions.GetAsync();

Assert.Contains(get, a => a.Id == "TEST1");
}
#endif
}
}
2 changes: 1 addition & 1 deletion DeviceTests/DeviceTests.Shared/DeviceTests.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
<PackageReference Include="Xamarin.Forms" Version="4.2.0.848062" />
<PackageReference Include="Xamarin.Forms" Version="4.7.0.1239" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.devices" Version="2.5.25" />
<PackageReference Include="UnitTests.HeadlessRunner" Version="2.0.0" />
Expand Down
15 changes: 15 additions & 0 deletions DeviceTests/DeviceTests.Shared/HapticFeedback_Tests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using Xamarin.Essentials;
using Xunit;

namespace DeviceTests
{
public class HapticFeedback_Tests
{
[Fact]
public void Click() => HapticFeedback.Perform(HapticFeedbackType.Click);

[Fact]
public void LongPress() => HapticFeedback.Perform(HapticFeedbackType.LongPress);
}
}
2 changes: 1 addition & 1 deletion DeviceTests/DeviceTests.UWP/DeviceTests.UWP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="UnitTests.HeadlessRunner" Version="2.0.0" />
<PackageReference Include="Xamarin.Forms" Version="4.2.0.848062" />
<PackageReference Include="Xamarin.Forms" Version="4.7.0.1239" />
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.9" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.devices" Version="2.5.25" />
Expand Down
2 changes: 1 addition & 1 deletion DeviceTests/DeviceTests.iOS/DeviceTests.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<Reference Include="Xamarin.iOS" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.2.0.848062" />
<PackageReference Include="Xamarin.Forms" Version="4.7.0.1239" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.devices" Version="2.5.25" />
<PackageReference Include="UnitTests.HeadlessRunner" Version="2.0.0" />
Expand Down
Loading