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

7 Коммитов

Автор SHA1 Сообщение Дата
Matthew Leibowitz e708567eb2
Renamed the project because macOS uses .app (#23223)
* Renamed the project because macOS uses .app

* And the folder

* merge first

* ns
2024-06-25 11:36:25 +02:00
Javier Suárez 2d769c4091
[Testing] Split up current appium tests into separate projects (#21908)
* Split up current appium tests into separate projects

* Updated samples sln

* More updates on slns

* More changes

* More fixes

* More changes

* More changes

* More changes

* More changes

* Trying to fix Windows project build

* not needed

* revert

* this

* undo

* this

* add it all back

* fixes

* eventually

* huh?

* this

* builds at least

* this

* ui tests

* this

* More changes

* Added uitest project by platform

* Remove IgnoreIfPlatforms

* Changes in the uitests yml

* Updated slnfs

* Fix format errors

* Added samples slnf

* Recover UITest single project

* Updated solutions

* Updated project references in uitests yml

* Added removed UITests comments

* Removed unnecesary changes

* Revert more unneccesary changes

* Fixed build error on macOS

* More changes

* Fix wrong namespace

* Fix deploy issues

* Fix wrong test app path

* Fixed test project paths

* Moved snapshots

* Fix merge issues

* Remove more IgnoreIfPlatforms methods

* Fix merge issue

* Fix build errors

* hmmm

* Maybe this?

* unifi

* Update Microsoft.Maui-vscode.sln

* Updated test

* More fixes

* More fixes

* Updated projects

* Update cake scripts

* More changes

* Fixes in project tests path

* More fixes

* Moved snapshots

* Updated snapshots tests used path

* More changes

* More pending changes

* Fixes the golden tests

* More changes in tests

* Renamed test projects

* More changes

* Updated test

* Fix build error

* More updates

* Renamed projects

* More changes

* Move more projects

* More changes

* Fixed build errors

* Fixed error on mac sln

* More changes

* Updated App path

* - move testcases app into tests folder

* - fix project references

* - add missing targets file

* - fix tizen manifest

* - additional props

* Updated UITesting md

* Updated Development md

* More docs updates

---------

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2024-05-16 13:20:07 +02:00
Rui Marinho dec8b249fb
[uitests] Work for get appium uitests with CI (#14488)
* More stuff with query

* Update to Appium 2.0

* Cleanup

* Fix tests

* Add mac tests

* Multiple testcase

* Fixes for  windows

* Deploy as unpackaged app

* Fixes for run UITests on windows

* Cleanup and move to TestUtils projects for Appium and Xamarin.UITest

* Fix references

* Add to mac sln

* Fix sln

* Add uitest yaml

* Fix sln

* Update yml

* more fixes

* again powershell

* fix ident

* Add path and try call cake

* Fix

* Start background

* Start appium on the background

* Just run android for now

* try install app

* try again

* if it fails continue

* fix paths

* appium

* try again

* try again

* fix

* again

* try again

* location of samples

* build samples

* do not skip xcode

* more debug info

* Publish test results

* nUnit tests for now

* try any file

* no retry

* try vstest

* FIX PATH

* install more drivers

* usenuget when building samples

* Move to helpers

* Try run iOS tests

* try build both

* Add ALLTests

* Android folder

* fixes

* try again

* Fix path

* Cleanup android cake

* cleanup iOS cake

* add mac cake

* fix version

* try again

* try again

* upDATE TOOLS

* try again

* fix again

* again

* again

* again

* rollback xharness

* increase timeout

* run with dotnet path

* Fix dir

* Try again

* fix

* Fix

* build and then run tests

* fix platformVersion passed to APPIUM

* Don t do verbosity

* Log for appium

* Try 16.2

* Add platform to appium logs

* Fix

* Start test server

* Wait for server to start

* Fix typo

* Add windows cake

* Set uitests windows yaml

* provision on macos only

* Fix path for app windows

* Rename winui

* Try again

* Make sure to stop and dispose the server

* fix template

* Install windows driver too

* Better appium install drivers

* specify device

* Fix binlog android

* Run device tests in release

* Try no path

* Try with debug configuration

* try build samples just for that platform

* Release

* rename to match platform

* try cleanup

* Add mac uitests

* Build only for catalyst

* Add information

* Version mac

* Fix folder path

* Try build and run windows tests

* more stuff on install script

* Add retry for ios

* run always on xamarin pool

* Fix windows

* Allow to pass configuration to catalyst

* Add bindir info

* Try fix windows build

* Try set env variables before

* [Sample] Clean fields when tapping login button

* Take screenshot before querying text element

* Enable automationmode-without-authentication

* Try using action instead

* Use same machine pool as ios/android for mac

* Change entry to not get autocorrect pop-up and add delay before click

* Disable keyboard completion for catalyst runs

* Auto-format source code

* Update sln

* Fix csproj

* Add Sample UITests

* Fix yaml

* Use the new app uitest sandbox project

* Remove old code

* Cleanup

* Fix Android manifest

* Fix build for tizen

* Rename projects

* Some more renames

* Fix ios for PR's

* Update MainPageTests.cs

* Add to mac slnf

* Try more stuff for the mac

* Try run before

* don t set automation mode

* Try Xcode select and move to ventura

* Fix script

* Dont xcode select

* Bool and not string

* try old appium

* Fix version

* Can we skip provisioning

* We can't skip provisioning

* Dont provision on windows

* Update sln and packages

* Update node

* Configure the windows path to the exe

* Auto-format source code

---------

Co-authored-by: Scott Banning <scoban@microsoft.com>
Co-authored-by: GitHub Actions Autoformatter <autoformat@example.com>
2023-05-16 16:34:25 -05:00
Craig Dunn a8ac748d34
[foldable] Package reference instead of project reference (#6514)
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2022-08-11 17:28:55 +02:00
Matthew Leibowitz 9aeaa32dbd
Merge the app and library sample projects (#6549)
* Merge the app and library sample projects

* Fixed namespaces and removed old platform projects

* flip order for ease

* fix this page
2022-04-27 15:08:08 -05:00
Craig Dunn bef74cc559
[dualscreen] project/nuget for Surface Duo and other Android foldables (#5020)
* initial commit

* seems to build?

* add page to sample

Other > Dual Screen

* sample screen tweaks

* trying to wire up the hinge angle

* correct port of visualElement

* - fix up measure calls

* correct configChanges in Android sample

* - remeasure if mode changed

* add AndroidX.Window.WindowJava with log output

* kinda measuring but not really

* - hostbuilder extension

* - include file

* basic hostbuilder test

* most debug lines to figure out why it's not working

* kinda works except on first span :|

* add testing features on TwoPaneViewPage

* remove un-used UpdateMetrics interface method

* remove commented FoldEventArgs

* remove un-used UpdateMetrics interface method

* deleting code

* - remove extra code

* [dualscreen] rebase

based on changes in #3213 where APIs moved to Essentials

* wire up hostbuilder

untested

* [dualscreen] progress check-in - work not complete

* update fixes

* [dualscreen] wire up twopaneview properties

* [dualscreen] Jetpack Window Manager 1.0 stable

via Xamarin.AndroidX.Window.WindowJava NuGet  1.0.0.7

* [dualscreen] add test properties to XAML

* [dualscreen] remove MainActivity hardcoding, use HostBuilderExtension

Note that this de-coupling broke the hinge sensor reading - to be fixed

* [dualscreen] fix hinge sensor

requires reference to Activity context

* [dualscreen] tweak activity context

* [dualscreen] correct for Samsung Galaxy Fold

Use the hinge orientation rather than portrait/landscape of the outer window

* [dualscreen] refactor project name (remove -net6)

* [dualscreen] remove prototyping code from sample project

hardcoding in mainactivity helped to get the dualscreen refactoring done, now removed and enabled via HostBuilderExtensions

* [dualscreen] add comments

* [dualscreen] fix bug: hinge not recognized when spanned on open

* [dualscreen] address some of the PR feedback

* [dualscreen] rebase fixes

mostly Rectangle -> Rect and removing Device.BeginInvokeOnMainThread

* [foldable] namespace refactor from DualScreen to Foldable

also removed `Controls` from non-UI namespaces

* [foldable] refactor project name from DualScreen to Foldable

did NOT yet change the project's filesystem/folder name

* [foldable] refactor DualScreenService -> FoldableService

including IDualScreenService -> IFoldableService

* [foldable] refactor filenames DualScreenService -> FoldableService

* [foldable] address PR feedback

- remove LINQ
- use C# 8 feature ??=

* - workloads

* - cleanup

* - delete commented out code

* [foldable] remove debug log and commented-out code

minor refactor isSeparating -> IsSeparating

* [foldable] rename project folder

and delete unused sample project/folder

* [foldable] remove commented code (PR feedback)

* - organize the code a bit and switch to using services

* - fix dualscreen service to pull correctly

* - cleanup

* - fix update calls

* - fix some measures

* - add some additional checks

* - remove screen check

* - fix height passed in for mode updates

* - remove watch for changes

* - remove code that checks

* - fix workloads

* - workloads

* - fix paths

* - fix nuget.config

* Update Microsoft.Maui.Controls.Foldable.Runtime.csproj

* Update Microsoft.Maui.Controls.Ref.csproj

* - change controls workloads back

* - remove from workloads

* - add foldable to build.tasks

* Update Microsoft.Maui.Samples.slnf

* - leave foldables

* [foldable] update namespaces after Essentials

* [foldable] add Devices where Essentials was removed

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2022-04-05 14:07:22 -05:00
Jonathan Dick 553b69bc5c
Remove legacy TFMs (#4403)
* Remove legacy TFM projects

* Rename solution files

* Remove old sln files

* Help omnisharp

Adds an omnisharp.json config file to help ignore some projects that don't load well.

But also add an _omnisharp.sln since Omnisharp basically finds the first solution it can regardless of the config file excludes and will try and load those projects.  This puts it high in the list and is generally convenient to work on the main projects from the repo within omnisharp.

* Ignore .csx in omnisharp

* Fix android api level warning

* Fix up tfm logic

This will make net7.0 easier to start building against too.

* Make TFM runtime value dynamic

* Fix closing tag

* Add another project to omnisharp exclude

* Fix some logic

* Fix msbuild property function call

* Clean up resizetizer

These targets actually ship so they need to not just _use_ the Maui properties from directory build props

* Fix bad copy paste

* Another copy paste fix

* More fixes

* Add Controls.Xaml (missing) back to sln

* Drop S.N.Vectors version in csproj

It gets updated from other targets

* Don't set versions for WPF

* Bring back IsBindingProject

* Fix bad copy paste

* Make GetTfm static

* Fix missing namespace prefix

* Properly replace the TFM in BundledVersions

* Second replace should update the file the first one output

* Fix input for second replace

* Update the templates with the correct TFM

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2022-01-30 19:09:26 +00:00