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

185 Коммитов

Автор SHA1 Сообщение Дата
Shane Neuville 1cb0656489
Ios 2017 compatible Xamarin.Forms.Platform.iOS (#9760)
* if def out xcode10

* - setup ios targets

* - fix ios 13 inclusion

* - fix cake

* - fix ArtifactStagingDirectory

* - remove restore

* - name the task

* - fix cast

* - fix cast

* - fix cast

* - fix cast

* Update Xamarin.Forms.Platform.iOS/Xamarin.Forms.Platform.iOS.csproj

* - add 2017 lane for osx validation

* - fix cake

* - 2017 netstandard

* - remove build tasks for 2017 compatibility build

* - more conditions

* - apply swapping to mac target

* - macos nuspec

* - provisioning

* - add macos 2017 build

* - add cert back in

* - type redirector

* - fix platform dll nuspec location
2020-03-02 14:50:09 +00:00
Shane Neuville cc544ccb90
Add non androidx classes back into Proguard File (#9715) 2020-02-25 16:38:44 -07:00
Michael S. Scherotter d55ada424f
Added check for null hinge in GetHinge() (#9678)
* Added check for null hinge in GetHinge()

* - updating duo sdk version
- change to using GetHingeBoundsDip

* - update duo library and call update on config changes

Co-authored-by: Shane Neuville <shane94@hotmail.com>
2020-02-24 13:32:48 -07:00
Shane Neuville 8774f8b198
Androidx bump to stable release packages (#9594)
* Android x stable bump

* - add support to maps nuget

* - related androidx packages

* Update .nuspec/Xamarin.Forms.AppLinks.nuspec
2020-02-18 15:26:41 -07:00
Shane Neuville cfcf8169e8
TPV Initial Project Setup (#9418)
* TPV Initial Setup

* Update Xamarin.Forms.ControlGallery.WindowsUniversal/Xamarin.Forms.ControlGallery.WindowsUniversal.csproj

* - project fixes

* - partial

* code cleanup

* - nuspec updates

* - uitest fixes for mac

* - project fixes

* netcore app tests

* - tests

* mac fixes

* - yaml search filter

* - yaml

* - yaml

* - pane priority fixes

* - tall and wide mode config tests

* - add files back in

* - spacing fixes
2020-02-04 09:35:39 -08:00
Shane Neuville e9358642b3
Fix nuspec to copy xaml files from obj directory (#9395)
* copy xaml files from obj

* reference 14393

* - nuget
2020-02-02 01:42:15 -07:00
Shane Neuville ed6bc42777 Merge branch '4.4.0' into 4.5.0 2020-02-01 18:43:06 -07:00
Shane Neuville 5af5f57155
Fix UWP Nuspec to copy correct NS version (#9388)
* fix ns references

* disable layout files

* - preserve

* - 2017 workarounds

* - winui
2020-02-01 18:42:07 -07:00
Shane Neuville 7c37cf9a52
Disable generate library layouts on maps project (#9393)
* disable generate library layouts

* - vs2017 fix

* - xaml files
2020-02-01 18:41:19 -07:00
Shane Neuville ffe398b9ff Add Alert Dialog Classes to Proguard (#9318) fixes #9031 2020-01-28 20:07:18 +00:00
Shane Neuville 3f90ad1b4e Bump WinUI Nuget version if you are using Min target >= 16299 (#9132)
* bump winui when using high enough targeting

* - fix galleries

* - fix design and cake parameters
2020-01-23 11:14:33 +00:00
Gerald Versluis b0c6c02ee8 Disable XamlC task for VS Live Unit Testing (#7925)
- fixes #7862

* Update Xamarin.Forms.targets

* Update Xamarin.Forms.targets

* Update Xamarin.Forms.targets

* rename variable

Co-authored-by: Stephane Delcroix <stephane@delcroix.org>
2020-01-17 10:49:13 +01:00
Shane Neuville 5f4f4dd06c
The great Androidx IF Def'ing of 2019 (#8898)
* AndroidX API updates

* - merge fixes

* - 2017 fixes

* - extra lines added to cs proj files

* - menu element fix

* - androidx bump

* - cleanup

* - remove extra using

* - missed one

* - fix material version

* - one more TapOverflowMenuButton
2020-01-10 13:35:41 -07:00
Shane Neuville 1cf7a4bf71 Merge branch '4.4.0' 2019-12-19 10:33:17 -07:00
Shane Neuville 44dd779647
Package up everything into the PRI file for debug and release builds (#8926)
* Copy files everywhere

* - release test

* - remove from csproj

* - copy more files

* - xaml

* - disable embeddedxbf

* - fix nuget paths

* - move embed property outside of csproj

* - fix nuspec

* - remove extra files

* - fix typo

* - rebuild

* - build uwp on 2019

* - yaaaaaaml typo

* - taaaaaaabs

* - fix what copies

* - cleanup
2019-12-19 10:32:37 -07:00
Shane Neuville ab9fabf04b
Change build output on 2017 to match 2019 (#8923)
* Change output on 2017 to match 2019

* - missed one
2019-12-16 20:50:37 -07:00
Shane Neuville 006ebe996b Merge branch '4.4.0'
# Conflicts:
#	Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
#	Xamarin.Forms.Controls/Xamarin.Forms.Controls.csproj
#	Xamarin.Forms.Platform.UAP/Xamarin.Forms.Platform.UAP.csproj
2019-12-16 19:36:46 -07:00
Shane Neuville 9d096f68a4
Setup UWP Platform projects to use multi targeting (#8750)
* - fix multi target

* - 619

* - nuspec

* - fix nuspec

* - consolidate

* - fix Isolated Storage for 16299 target

* - increment

* - configurations

* - always

* - library layout workaround

* - global json for sdk extras

* -fix spelling

* - fix maps spelling

* - 16299

* - nuspec

* - simplify csproj
2019-12-16 19:26:09 -07:00
Shane Neuville b62dbb41f3
Setup android to be properly multi targeted (#7660)
* first steps

* - convert a few more

* - fix forwarders

* - update sdk extras

* - fix nuspecs

* - fix rebase

* - fix sdk extras for vs2017

* - remove forms fixes for 2019

* - Property based TFs

* - update cake

* - remove monoandroid81

* - library updates

* - fix applink nugets

* - 2019 test

* - try 2017
2019-12-13 12:22:24 -07:00
Rui Marinho ef2eac8a7c
Merge branch '4.3.0' into 4.4.0 2019-12-12 22:45:16 +00:00
Rui Marinho d8a6daf0f5
[Build] Some updates to VS2017 (#8855)
* [Build] Update vstest

* [Nuget] Add repository metadada

Allow to push to GitHub pacakge registry

* [Build] Update cake provisioning variable

* [Build] Remove extra steps

* [Build] Update yaml tasks

* [Build] Fix yaml

* [Build] Don0t install dotnet on windows
2019-12-12 22:34:14 +00:00
Jiarui Guo c0bb38c7fa #3533 Bring back uap10.0/netstandard1.4 support (#7079) fixes #3533
* target netstandard 1.4 for supporting rs2

* multi targeting

* initial tests

* - set a couple libraries to NS1.0

* - ns1.4

* - fix gallery project

* - fix min targets

* - fix target

* - remove sdk

* - buildControlsPath

* - nuget restore

* - controls path

* - uwp version

* - add generic

* - fix xbf

* - add tuple nuget

* - set max target to 16299

* - proj fixes
2019-11-22 16:57:21 +00:00
E.Z. Hart ccd4145e5b Make character spacing work for UWP Picker without breaking ItemsSource (#8356)
* Make character spacing work for UWP Picker without breaking ItemsSource
Fixes #8177

* Add test instructions
2019-11-08 12:44:08 -07:00
Rui Marinho 970c9bafc0
Merge branch '4.2.0' into 4.3.0 2019-09-17 23:30:30 +01:00
Morten Nielsen aeafec9ff6 Adds UWP support to Shell (#6015)
* Some basics to get started

* more renderers

* Fix titlebar color

* More shell stuff working

* Hacked some more UI in

* Fix null ref issue

* Move renderer registration outside common code (for now)

* Re-write of the renderers to better use a cleaner UWP approach

* Moved functionality around, bug fixesetc

* Added null check

* Added null-check on appearance and use default colors as fallback

* Handle change in flyout behavior to correctly turn the flyout on/off

* Handle the TabBarIsVisible property

* code formatting

* Ensure FlyoutHeader isn't show if the app starts up with a minimal pane

*  Throw if used on versions lower than Windows 10 1809

* Added null-check for when ShellContent isn't set

* Support tabs in FlyoutItems with Display AsMultipleItems by using the generated FlyoutGroupings instead

* Improve pane behavior and styling

* Undo Android change used during testing

* Fix platform support check

* Use FileImageSourcePathConverter on NavigationViewItem instead of a custom control (so I deleted ShellNavigationViewItemRenderer which is no longer needed).
Ensure `FileImageSourcePathConverter` won't throw if it didn't get a FileImageSource.
Move the flyout data templates into a resource so they can be overridden and compiled.

* Delete renamed file

* Use a resource instead of parsing a string template

* Handle search box property changes

* Update page title on property change

* Update bottombar when shellitems change

* Guard against API usage not present

* Platform check comments

* Fix problem running in release mode (use Bindable to generate XamlMetadata

* Trigger rebind of menu items source when collection changes

* Added support for Toolbar

* Fix searchbox behavior (still lacks expand/collapse feature)

* Add overload for defining the navigation transition

* Use different navigation transitions based on navigatin direction

* Hides header with show / hide nav command

* collapses header area on hide nav

* Move to use WinUI

* Fix runtime issues after merge.

* - rebase fixes

* - rebase fixes

* - fix spaces/tabs

* - flags, hide apis, delete assembly info

* - set flag on UWP CG

* - expose renderer creations and make them all public

* - formatting fixes

* - address PR comments

* - fix header so it's full width and swappable
2019-09-17 23:26:56 +01:00
Shane Neuville e44bfb8d01 Additional proguard classes (#7527) fixes #5742 2019-09-17 23:12:16 +01:00
Jonathan Peppers 7efca8efb3 [xamlc] new <XFXamlCValidateOnly> MSBuild property for Debug builds (#7407)
XamlC is currently enabled for most Xamarin.Forms projects in `Debug`
and `Release` configurations. It enables faster startup/runtime
performance, XAML-syntax checking at build time--both quiet useful!

However, there is a build-time cost to using XamlC: each assembly is
loaded via Mono.Cecil, IL generated, and saved back to disk as an
additional step after Rosyln has compiled the assembly.

The proposal would be to add a new experimental MSBuild property, that
can be enabled for `Debug` mode such as:

    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
      <!-- ... -->
      <XFXamlCValidateOnly>True</XFXamlCValidateOnly>
    </PropertyGroup>

This would do the following:

* `OptimizeIL` is skipped.
* Assemblies are analyzed, but no changes written to disk.
* No symbols are loaded via Mono.Cecil, we don't need them if we
  aren't writing back to disk!

This will improve build performance, and we don't lose the build-time
error checking for XAML.

Down the road, we could consider moving the MSBuild property to be the
default for `Debug` builds or change the Xamarin templates. I think it
would be wise to require developers to opt-in to try this out.

~~ Results ~~

I tested this change by building the ControlGallery after changing one
line of XAML:

    msbuild Xamarin.Forms.ControlGallery.Android\Xamarin.Forms.ControlGallery.Android.csproj /clp:performancesummary /p:XFXamlCValidateOnly=True

    Before:
    1979 ms  XamlCTask                                  1 calls
    After:
     923 ms  XamlCTask                                  1 calls

I *only* tested `Debug` builds.

Right, so it's faster. But let's keep the entire developer loop in
mind, how much slower is startup?

    Before:
    09-05 14:37:32.274  1169  1192 I ActivityManager: Displayed AndroidControlGallery.AndroidControlGallery/md546303760447087909496d02dc7b17ae8.Activity1: +3s890ms
    09-05 14:38:30.178  1169  1192 I ActivityManager: Displayed AndroidControlGallery.AndroidControlGallery/md546303760447087909496d02dc7b17ae8.Activity1: +3s848ms
    09-05 14:38:40.300  1169  1192 I ActivityManager: Displayed AndroidControlGallery.AndroidControlGallery/md546303760447087909496d02dc7b17ae8.Activity1: +3s848ms
    After:
    09-05 14:40:38.512  1169  1192 I ActivityManager: Displayed AndroidControlGallery.AndroidControlGallery/md546303760447087909496d02dc7b17ae8.Activity1: +3s894ms
    09-05 14:40:55.497  1169  1192 I ActivityManager: Displayed AndroidControlGallery.AndroidControlGallery/md546303760447087909496d02dc7b17ae8.Activity1: +3s856ms
    09-05 14:41:03.754  1169  1192 I ActivityManager: Displayed AndroidControlGallery.AndroidControlGallery/md546303760447087909496d02dc7b17ae8.Activity1: +3s897ms

After three runs, it seems this app suffers 25-50ms slowdown to
startup, and gains 1 second of build time improvement. A good net-win!

Other apps that have significantly more XAML will have different
results. I suspect the build time improvement will be even better, but
the hit to startup could be worse. With this setting opt-in, we can
experiment and find out.
2019-09-12 15:36:35 -07:00
ShaneN 3603550ab6 Merge 4.2.0 into 4.3.0 2019-09-10 15:32:39 -06:00
Shane Neuville 9c4909cdee
Update support libraries from 28.0.0.1 to 28.0.0.3 (#7389)
* update support to 28.0.0.3

* - bump sandbox support versions

* - update nuspecs
2019-09-10 15:25:17 -06:00
Shane Neuville f51099c382
[UWP] RefreshView (#7319)
* UWP Swipe Refresh implementation

* - target platform warnings for UWP

* - move dictionary registration to code

* - remove SkipMicrosoftUIXamlCheckTargetPlatformVersion
2019-09-07 01:11:41 -06:00
Samantha Houts f17fac7b9e Merge branch '4.2.0' 2019-08-16 17:54:38 -07:00
Gerald Versluis 421c24dc67 Update Xamarin.Forms.nuspec (#7189)
fixes #7184
2019-08-16 10:28:51 -07:00
Gerald Versluis 7e9c60edad Reinstated Xamarin icon for NuGets (#7101) 2019-08-08 17:49:45 -07:00
Stephane Delcroix 857ec92860 Merge branch '4.1.0' into 4.2.0 2019-07-30 16:32:14 +02:00
E.Z. Hart 880f368dda UWP CollectionView cleanup (#6928)
* Move files to CollectionView folder for consistency with other platforms
Move SelectableItemsViewRenderer to Setup/Teardown pattern
Fix event handler naming
Use Is method for property changed check

* Rebase cleanup
2019-07-29 16:50:11 -07:00
Pavel Yakovlev a1ef050d00 fixes .create-nuget script (#6913) 2019-07-29 14:11:38 -07:00
Shane Neuville ec1e16c16a add checkbox style to nuspec (#6504)
fixes #6501
2019-06-13 13:29:38 -07:00
shmin 6b17b4570f [Tizen]Add Material Style Renderers (#6204) 2019-05-31 18:42:15 -07:00
ShaneN b3927b617f merge 4.0.0 in master 2019-04-29 14:14:19 -06:00
Shane Neuville 8fe0abc165 additional proguard rules for shell (#6032)
* additional proguard rules for shell

* add property to disable file

fixes #5799
2019-04-27 12:21:30 -07:00
Kangho Hur eaeffc4e54 [Material] [Tizen] Adds Xamarin.Forms.Material.Tizen for Visual (#5453)
* [Tizen] Adds Xamarin.Forms.Material.Tizen for Visual

* Update Tizen.NET.MaterialComponent for applying color scheme

* Don't build XF.Material.Tzien on iPhone and iPhoneSimulator

* Fix MCanvas build issue

* Update build-windows.yml for XF.Material.Tizen
2019-04-25 12:01:54 -07:00
Jonathan Peppers 78d662ee7d Remove Xamarin.Android.Support.v7.MediaRouter (#5941)
Context: https://github.com/xamarin/xamarin-android/issues/2982

The Blank Xamarin.Forms app template in VS 2019 takes longer to build
than in VS 2017. A little research is showing that this is due to use
of the 28.x support libraries... For example, the build includes ~20
*more* jar files in the template from 2019 than 2017. The
`_CompileDex` step alone goes from ~15.2s to ~18.2s.

This lead me down the road of investigating if we can remove any
support libraries by default in Xamarin.Forms apps. I am also seeing
if there is more we can do in Xamarin.Android for this problem, in
general.

It looks like we can remove:

* Xamarin.Android.Support.v7.MediaRouter
* Xamarin.Android.Support.Media.Compat

Neither of these appear to be used, but have been listed as
dependencies of Xamarin.Forms for a long time.

~~ Results ~~

I made these changes, then did a `Debug` build of
`Xamarin.Forms.ControlGallery.Android.csproj` for comparison.

Comparing dex file sizes (in bytes):

    Before:
    3428092 classes.dex
    3265616 classes2.dex
    6693708 total
    After:
    4938000 classes.dex
    1098772 classes2.dex
    6036772 total

This looks like it could potentially save ~600KB of compiled dex code
on every Xamarin.Forms app.

Comparing methods:

    Before:
    classes.dex  11,492 methods
    classes2.dex 19,451 methods
    total        30,943 methods
    After:
    classes.dex  22,171 methods
    classes2.dex  7,635 methods
    total        29,806 methods

~1,137 methods removed, which should help with the dex limit.

Comparing APK sizes (in bytes):

    Before:
    26442597 AndroidControlGallery.AndroidControlGallery-Signed.apk
    After:
    25741701 AndroidControlGallery.AndroidControlGallery-Signed.apk

~700KB smaller APK, due to less .NET assemblies & dex code.

Comparing build time (this was using dx):

    Before:
    19785 ms  CompileToDalvik                            1 calls
    After:
    18532 ms  CompileToDalvik                            1 calls

Looks like it saved over a second of build time for this project.

Seems like an "easy win", let's do this!
2019-04-23 13:21:21 -06:00
Samantha Houts 5aa469f755 Merge branch '4.0.0' 2019-04-15 14:54:48 -07:00
Kangho Hur fda800ca4c [Material] [Tizen] Adds Xamarin.Forms.Material.Tizen for Visual (#5453)
* [Tizen] Adds Xamarin.Forms.Material.Tizen for Visual

* Update Tizen.NET.MaterialComponent for applying color scheme

* Don't build XF.Material.Tzien on iPhone and iPhoneSimulator

* Fix MCanvas build issue

* Update build-windows.yml for XF.Material.Tizen
2019-04-15 10:55:56 -06:00
Samantha Houts d15c2d8475 Merge branch '3.6.0' into 4.0.0 2019-04-12 18:28:49 -07:00
Shane Neuville 4ab075f469 - add explicit references back into nuspec (#5902) 2019-04-12 16:25:54 -07:00
Rui Marinho e822046427 Merge branch '3.6.0' into 4.0.0 2019-04-02 18:28:23 +01:00
Matthew Leibowitz 6950db8bfe [nuspec] Start using the 28.x versions of Android support (#5512) 2019-04-02 16:06:59 +01:00
Andrei Nitescu 7c27de2592 Removed dependency on modernhttpclient (#5390)
fixes #1886
2019-03-27 16:38:45 -07:00
E.Z. Hart dd6cd3305e Add translated Intellisense files to NuGet package (#5672)
* WIP Experimenting with getting the translated Intellisense in the right places

* Set up nuspec to include Intellisense translations

* Use languages branch of submodule for now

* Update submodule

* Update submodule

* Updated submodule

* Update submodule

* Pull in translated docs from all the languages
2019-03-24 20:05:01 +00:00