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

7284 Коммитов

Автор SHA1 Сообщение Дата
Shane Neuville d1bea3a664
Add Accessibility Notes to PR (#586) 2021-03-25 10:28:57 +00:00
Rui Marinho d619ad5fd8
Bump GitInfo 2021-03-25 08:44:20 +00:00
github-actions[bot] 46562843a2
Automated dotnet-format update (#588)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-03-25 08:40:33 +00:00
Matthew Leibowitz 7b180c69c8
Update Templates to use Startup (#587) 2021-03-25 03:18:54 +02:00
Javier Suárez 55922dcaed
Implement Font properties in TimePickerHandlers (#583)
* Implement Font properties in TimePickerHandlers

* Fix build error
2021-03-24 18:28:41 -06:00
Javier Suárez 69eaa116ce
Implement IsReadOnly property in EditorHandlers (#551)
* Implement IsReadOnly property in EditorHandlers

* Added PortHandler attributes

* Post-rebase cleanup

Co-authored-by: E.Z. Hart <hartez@gmail.com>
2021-03-24 18:13:53 -06:00
Burak Kaan Köse 14fbdce843
Entry ClearButtonVisibility Handler (#564)
* Basic implementation for Standard and iOS handler.

* Property comment.

* Sample Entry controls added to sample project.

* PortHandler attributes added.

* Implemented Android handler with OnTouch and OnFocus listeners.

* Removed redundant check for clear button visibility on touch for Android handler.

* EntryStub implementation.

* Device tests for iOS and Android.

* Merge from main

Co-authored-by: E.Z. Hart <hartez@gmail.com>
2021-03-24 16:05:11 -06:00
E.Z. Hart 613dbc0072
Implement LayoutAlignment for Core layouts (#505)
* Implement LayoutAlignment in Core

* Fix parameter name
2021-03-24 14:40:40 -06:00
Brian Runck b7012dbdb2
Port Editor Placeholder text and color properties (#573)
* Editor placeholder in progress

* mostly iOS changes

* Placholder text and color properties; added tests

* Added more [PortHandler]

* cleanup

* cleanup

* cleanup

* Fix merge

* Changes after code review

* Fix merge issues

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: E.Z. Hart <hartez@gmail.com>
2021-03-24 14:09:29 -06:00
Pedro Jesus 6dffa9bb79
[GH-473] Port Font to Editor (#503)
* implemented font in editor

* Added PortHandler attribute

* added tests

* Added font size test

* added editor into MainPage

* code review

* fixed merge conflicts

* Fix rebase

* Fix tests

* Fix message when getting handler.Services

Co-authored-by: Rui Marinho <me@ruimarinho.net>
2021-03-24 11:54:37 -06:00
E.Z. Hart fccf7cc07f
GridLayout with absolute and auto (#513)
* Grid stuff, in progress

* Clean up after rebase; fix arrange call in layout manager

* Adding some notes

* Update ArrangeChildren method calls

* Add missing TypeConverters

* Update test values in light of new Arrange call

* Formatting fix

Co-authored-by: Rui Marinho <me@ruimarinho.net>
2021-03-24 10:06:54 +01:00
github-actions[bot] 05ba6f7df0
Automated dotnet-format update (#580)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-03-24 08:21:27 +00:00
Rui Marinho ef26e75a92
[UITests] Fix more paths for iOS tests 2021-03-23 15:32:23 +00:00
Rui Marinho cb7370ab95
[UITests] Fix path to iOS app 2021-03-23 15:15:18 +00:00
Rui Marinho 02f337e6a7
[UITests] Fix some naming and path on cake 2021-03-23 14:42:49 +00:00
Javier Suárez faff612872
Implement MaxLength property in EditorHandlers (#552)
* Implement MaxLength property in EditorHandlers

* Fixes and things
- Reduce a vast amount of copy paste between label, entry and editor
- Add tests for text changes
- Text properly trimmed on iOS

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-03-23 14:15:05 +02:00
Matthew Leibowitz a47b35d6d3
Using the Controls Application (#550)
* Implement IStartup

* Clean up code

* Move the static Current into MauiApp

* Add missing SearchBar handler mapping

* Don't need this anymore

* Pass the handler along on iOS

* Lots more perf fixes

* Remove App.SetHandlerContext

* Fix tests

* Fix catalyst

* revert

* Using the Controls Application

* Use the XamlApp

* This is no more!

* Fixed build errors

* Fix the updated SearchBar

* rename ns

* gone!

* reverts

* Fix iOS

* :|

* sp

Co-authored-by: Javier Suárez Ruiz <javiersuarezruiz@hotmail.com>
2021-03-23 12:03:36 +00:00
github-actions[bot] 2ec4f0f017
Automated dotnet-format update (#574)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-03-23 12:02:24 +00:00
Almir Vuk 1768c24f50
Implement CharacterSpacing property in EntryHandlers (#566)
* CharacterSpacing  added in Entry

* PortHandled attribute added.
2021-03-22 22:48:58 -06:00
Javier Suárez 837d97d515
DatePicker Handlers (#543)
* Add DatePickerHandlers

* Add DatePicker handler tests

* Fix device test project build

* Fix nullability issue

Co-authored-by: E.Z. Hart <hartez@gmail.com>
2021-03-22 21:54:34 -06:00
Javier Suárez 62373cf235
Implement CharacterSpacing property in TimePickerHandlers (#555) 2021-03-22 16:18:23 -06:00
Javier Suárez dcdd5c122b
Implement CharacterSpacing property in PickerHandlers (#568)
* Add CharacterSpacing property to PickerHandler

* Added Android CharacterSpacing handler tests
2021-03-22 15:50:39 -06:00
Javier Suárez 4a9d309514
Implement MaxLength property in EntryHandlers (#541)
* Implement MaxLength property in EntryHandlers

* Fix broken test

* Fix iOS not updating related properties

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-03-22 22:24:50 +02:00
Jonathan Peppers 70a6fbefb3
[android] remove EmbedAssembliesIntoApk from .NET 6 projects (#559)
This was a workaround for a problem in .NET 6 Preview 1, it should be fixed in .NET 6 Preview 2 (and newer).

This setting also only applies to Android "app" projects, so I'm not sure if these were actually doing anything.
2021-03-22 12:00:07 -05:00
Javier Suárez d4a3de27fc
Include Startup class (#436)
* Implement IStartup

* Clean up code

* Move the static Current into MauiApp

* Add missing SearchBar handler mapping

* Don't need this anymore

* Pass the handler along on iOS

* Lots more perf fixes

* Remove App.SetHandlerContext

* Fix tests

* Fix catalyst

* revert

* Fixed build errors

* Fix the updated SearchBar

* Fix net6 single project

* Add IHostBuilderStartup

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-03-22 14:45:42 +00:00
Rui Marinho 4cfc221d5c
[UITests] Make sure to push Xamarin.UITests dll (#569)
* Make sure to push Xamarin.UITests

* [Build] Copy Controls.CustomAttributes

* [Build] Remove extra references on UITests projects

* [Build] Make sure to just publish as artifacts the Microsoft.Maui nupkg

* Try fix ios build

* Fix uitest projoject
2021-03-22 14:45:13 +00:00
Jonathan Peppers bb20b25e35
[build] bootstrap a local .\bin\dotnet\ with .NET Workloads (#514)
Based on: https://github.com/jonathanpeppers/maui-workload

This adds a new `DotNet.csproj` that provisions a local .NET 6 install
into `.\bin\dotnet\`.

Next, it uses versions defined in `eng/Versions.props` as required by
.NET version bumping infrastructure (called Darc):

    <Project>
      <PropertyGroup>
        <MicrosoftNETSdkPackageVersion>6.0.100-preview.2.21155.3</MicrosoftNETSdkPackageVersion>
        <MicrosoftAndroidSdkPackageVersion>11.0.200-ci.main.148</MicrosoftAndroidSdkPackageVersion>
        <MicrosoftMacCatalystSdkPackageVersion>14.3.100-ci.main.337</MicrosoftMacCatalystSdkPackageVersion>
        <MicrosoftiOSSdkPackageVersion>14.4.100-ci.main.1192</MicrosoftiOSSdkPackageVersion>
      </PropertyGroup>
    </Project>

Next, we can use these versions to consume NuGet packages for workloads:

    <PackageDownload Include="Microsoft.NET.Workload.Android"     Version="[$(MicrosoftAndroidSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.NET.Workload.MacCatalyst" Version="[$(MicrosoftMacCatalystSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.NET.Workload.iOS"         Version="[$(MicrosoftiOSSdkPackageVersion)]" />

Then the other packs they depend on:

    <PackageDownload Include="Microsoft.Android.Ref"            Version="[$(MicrosoftAndroidSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.Android.Sdk.win-x64"    Version="[$(MicrosoftAndroidSdkPackageVersion)]" Condition="$([MSBuild]::IsOSPlatform('windows'))" />
    <PackageDownload Include="Microsoft.Android.Sdk.osx-x64"    Version="[$(MicrosoftAndroidSdkPackageVersion)]" Condition="$([MSBuild]::IsOSPlatform('osx'))" />
    <PackageDownload Include="Microsoft.Android.Sdk.BundleTool" Version="[$(MicrosoftAndroidSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.MacCatalyst.Ref"        Version="[$(MicrosoftMacCatalystSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.MacCatalyst.Sdk"        Version="[$(MicrosoftMacCatalystSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.iOS.Ref"                Version="[$(MicrosoftiOSSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.iOS.Sdk"                Version="[$(MicrosoftiOSSdkPackageVersion)]" />

After doing this, I can build .NET 6 projects with:

    > .\bin\dotnet\dotnet.exe build .\src\Controls\samples\Controls.Sample.SingleProject\Maui.Controls.Sample.SingleProject.csproj

I can even build MacCatalyst apps on Windows!

I updated `build.cake` so the following builds for .NET 6 and opens
Visual Studio:

    > dotnet cake --target=VS-NET6

This is the equivalent of these commands if you want to run them
individually:

    dotnet build src\DotNet\DotNet.csproj
    .\bin\dotnet\dotnet build Microsoft.Maui.BuildTasks-net6.sln
    .\bin\dotnet\dotnet build Microsoft.Maui-net6.sln
    .\eng\dogfood.ps1

~~ Other Changes ~~

* Rework CI setup to use .\bin\dotnet\dotnet
* We don't need boots or URLs anymore
* Fixed `MSBuildTests` to use .\bin\dotnet\dotnet if found and fall
  back to the system `dotnet`
* Moved `.nuspec\package.ps1` to `eng\package.ps1`

~~ What problems does this solve? ~~

* MacCatalyst builds on Windows! (offline build that checks C#)
* Building Maui always gets you the right things installed.
* Maui becoming a .NET workload will be a breeze. We can copy files
  into `.\bin\dotnet\sdk-manifests` and `.\bin\dotnet\packs`.
* We can use Darc to bump dependencies within .NET:

https://github.com/dotnet/arcade/blob/main/Documentation/Darc.md
2021-03-22 10:16:06 +00:00
github-actions[bot] 53024b9f3c
Automated dotnet-format update (#560)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-03-22 10:11:22 +00:00
E.Z. Hart 6402f5c21c
Naming cleanup (#557)
* Add category name for ActivityIndicator tests

* Minimize RectangleF allocations in NoCaretField

* Rename NativeActivityIndicator to MauiActivityIndicator

* Apply ISearchBar to Controls.SearchBar

* Add missing SearchBar registrations

* NativeCheckBox -> CheckBox

* Step -> Interval

* Back to MauiCheckBox :(
2021-03-19 19:35:10 +01:00
E.Z. Hart 045903cc89
Add FlowDirection to IFrameworkElement (#415)
* Add FlowDirection to IFrameworkElement; implement RTL layout for horizontal StackLayout;
Make LayoutExtensions RTL-aware for margins

* Update IFrameworkElement.cs

* Update IFrameworkElement.cs

* Add docs comments

* Remove extra class

Co-authored-by: Rui Marinho <me@ruimarinho.net>
2021-03-19 17:31:13 +00:00
github-actions[bot] 4c4db6d17c
Automated dotnet-format update (#549)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-03-19 15:28:40 +00:00
E.Z. Hart 25e6476bec
Handler staging (#547)
* TimePicker Handlers (#454)

* TimePickerHandlers

* Undo changes in sample

* Add some nullability fixes

* Fix build error

* Changes from PR feedback

* Fixed build error

* Updated tests

* Roll time picker and popup into one control

* Move 24 hour view check to handler

* Pull NSLocale -> CultureInfo code out to common property

Co-authored-by: E.Z. Hart <hartez@users.noreply.github.com>
Co-authored-by: E.Z. Hart <hartez@gmail.com>

* CheckBoxHandlers (#432)

* Rename ICheck -> ICheckBox, remove Color stuff (to be replaced with Brush
later), fix DeviceTests

* Implement CharacterSpacing property in EditorHandlers (#516)

* Fix broken test and incorrect CharacterSpacing on iOS

* Implement HorizontalTextAlignment property in EntryHandlers (#524)

* Better text on example

* Remove IView from ITextAlignment

* Remove IView from IPlaceholder

* Implement IsTextPredictionEnabled property on Editor (#515)

* Initial implementation

* Added Tests

* Added PortHandler Attributes

* Added Tests

* Handle turning text prediction back on

Co-authored-by: E.Z. Hart <hartez@gmail.com>

* Implement ReturnType property in EntryHandlers (#518)

* Implement CharacterSpacing property in SearchBarHandlers (#494)

* Implement CharacterSpacing in SearchBarHandlers

* Tests failing because of static

* Rounding for Android

* Fix iOS test

* There! No magic numbers!

* Fix rebase issuse and make SearchBar stuff work on iOS

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: E.Z. Hart <hartez@gmail.com>

* Stepper Handlers (#517)

* StepperHandlers

* Fixed Stepper handler broken tests

* Remove duplicate searchbar

* Add IStepper interface

Co-authored-by: E.Z. Hart <hartez@gmail.com>

* IStepper.Increment -> IStepper.Step

* Picker Handlers (#433)

* PickerHandlers

* Nullability fixes

* Updated Picker device tests

* New things in the tests!

* Removed unnecessary Android Api level validation

* Added Picker Items null validation in iOS PickerHandler

* Moved Picker Handler tests between different classes

* Renamed NativePicker to MauiPicker

* Removed unused code from iOS PickerExtensions

* Fix build error

* Fix build error

* Remove duplicate class

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: E.Z. Hart <hartez@gmail.com>

* ActivityIndicator Handlers (#417)

* ActivityIndicatorHandler

* Register IActivityIndicator

* Add comments to IActivityIndicator

* Fix build error

* Implement Font properties in SearchBarHandlers (#533)

* Speed up PR builds (#510)

Reduce the jobs and use the new pools

* implement Font properties in SearchBarHandlers

* Fix rebase issues

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: E.Z. Hart <hartez@gmail.com>

* Implemented LineHeight on Label (#538)

* Implemented LineHeight on Label (#368)

* Fix-up after rebase

Co-authored-by: E.Z. Hart <hartez@gmail.com>

* Fix broken label tests; add some missing label tests; attributed string cleanup

* Consolidate and rename extension method classes

* Fix class names and de-duplicate methods

* Centralize time extensions

* Fix mapping

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Glenn Hevey <glenn.hevey@gmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: Amr <hassaninamr@yahoo.com>
2021-03-18 17:36:54 -06:00
Rui Marinho 29225213e6
[Housekeeping] Update variables for ios certs and profiles and small cleanup (#544)
* Remove not used targets and props

* Update to MAUI certs and provisioning profile
2021-03-18 14:52:08 +00:00
Rui Marinho 88cce3970b
[Build] Fix UITests push the right dlls 2021-03-18 14:42:56 +00:00
Matthew Leibowitz 25ea670648
Clean up iOS simulators (#545) 2021-03-18 15:13:30 +02:00
Juan Marcelo Tondato 16ff68a62b
Update maui-mobile template: Sets the msbuild property _KeepLaunchProfiles to true and adds the MauiSingleProject project capability (#527)
To enable the switch between target frameworks on VisualStudio the LaunchProfiles capability need to be enabled.

By default, it is enabled but this capability is removed by our SDKs because the HEAD projects (Android and iOS) does not use this IDE feature to display devices on the start button.

The _KeepLaunchProfiles property avoids that removal in order to have LaunchProfiles enabled on VisualStudio.

The MauiSingleProject project capability is required to identify single projects and when VisualStudio loads a project with this capability the initialization required for Android and iOS is executed, starting the services for both platforms.
The Android and iOS project capabilities cannot be used to do that because only one set of these capabilities (related to the current TargetFramework) is available at this moment.

These values need to be available when the project is loaded and if we set them on the targets for the MAUI NuGet package the first time after creating the project there are not recognized because we need a Nuget restore.
2021-03-17 19:00:48 +00:00
Javier Suárez cfe81ea03b
Remove CodesignEntitlements from Core DeviceTests using Simulator in Debug mode (#534) 2021-03-17 19:00:03 +00:00
Rui Marinho d74a03a0b7
Try build ControlGallery Android on CI (#525)
* Try build ControlGallery

Try build android controlgallery new path

Fix

Fix android uitests reference

Don't build iOS for now

* - only set content description for UI Test build

* Add Environment.Build.props back

* Update boots version

* Fix LinkDescription.xml

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2021-03-17 18:59:35 +00:00
Youssef Victor 24485eba55
Fix link that doesn't work locally (#506)
* Create markdown-links-verifier.yml

* Update README.md

* Address feedback
2021-03-17 18:33:54 +00:00
Javier Suárez 7cf46a2f7e
Fix iOS broken Handler Test (#536) 2021-03-17 12:14:49 -06:00
Shane Neuville 7477a8678f
Add iOS Gallery (#530)
* Add iOS Gallery

* - linker fixes

* - fix ios gallery

* - Enable CI

* - fix typo

* - add gallery

* - fix xaml tests
2021-03-17 16:27:38 +00:00
github-actions[bot] 7115ced27c
Automated dotnet-format update (#528)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-03-17 12:03:10 +00:00
Matthew Leibowitz cb4c802a35
Speed up PR builds (#510)
Reduce the jobs and use the new pools
2021-03-17 04:35:08 +02:00
E.Z. Hart 9c5cc253a3
Fix Label HorizontalAlignment device tests 2021-03-16 10:11:36 -06:00
Matthew Leibowitz 8037319967
Try to get the Android Control Gallery running again (#489)
* [Build] Remove old steps

* Fix reference of unit tests cspro

* Enable xaml unit tests

* [Build] Add build of xaml unit tests

* Try fix targets

* Fix Forms naming

* More naming fixes

* Revert versions

* Remove .Core

* More .Core removals and Fix Platform references

* Add RootNamespace to Build.Tasks

* Fix more Xamarin.Forms old usage

* Fix dll on build.targets

* Fix _XFBuildTasksLocation

* More fixes to _MauiBuildTasksLocation

* More fixes _MauiBuildTasksLocation

* Fix _MauiBuildTasksLocation

* remove debug info

* Remove issues for now

* Rename maps namespace

* Fix Assembly tests

* Fix more targets

* More map rename fixes

* Fix xaml reference on unit tests

* Fix MauiXamlCValidateOnly naming

* More MauiXamlCValidateOnly

* Add xaml page to sample

* Fix namespace on sample page

* oh, yeah

* Fix sample references

* Try run on release the xaml unit tests

* Try continueOnerror

* Update build-windows.yml

* added via the directory props

* ws

* We mights need this

* I think I did this

* This can be reused

* 🤦‍♀️

* this as well after the peppers PR

* Fix some bad renames

* i see

* Fix merge

* Fix sample

* Remove FromSource

* Add the packages

* this

* Yaysies!

* Fix all the non-msbuild tests

* Adding things back and gallery

* this

* Build the tasks first

* Got the Android control gallery running

* Fix diff after merge

* - move gallery to compatibility

* - namespaces updates

* - rename compatibility

* - another name

* - keepass path

* - wire up content description to AutomationID

* - fix path

* - fix ui tests path

* - sln fixed

* - xaml tests

* - fix

Co-authored-by: Rui Marinho <me@ruimarinho.net>
Co-authored-by: Stephane Delcroix <stephane@delcroix.org>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2021-03-16 14:21:44 +00:00
Javier Suárez 4e01228c45
Implement HorizontalTextAlignment in SearchBarHandlers (#508)
* Implement HorizontalTextAlignment in SearchBarHandlers

* Clean up, add comments, verify things work with and without RTL support on Android

Co-authored-by: E.Z. Hart <hartez@gmail.com>
2021-03-15 18:05:13 -06:00
James Clancey 667eb0391b
Added .DS_Store to the gitignore (#512) 2021-03-15 15:29:51 -06:00
github-actions[bot] cb6a33eb6b
Automated dotnet-format update (#502)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-03-15 12:19:55 +00:00
E.Z. Hart c70c9a8f40
Add support for Font to Button and Entry (#500)
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-03-14 08:42:16 +02:00
Javier Suárez e31d37010c
Implement HorizontalTextAlignment property in LabelHandlers (#456) 2021-03-14 08:41:45 +02:00