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

590 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 34d1fca7f6
[StoreKit] Bind AppStore.requestReview. Fixes #21410. (#21441)
The existing Objective-C class to request an App Store review (SKStoreReviewController) is deprecated in Xcode 16+, and it doesn't even work on the corresponding OS versions.

The replacement API is Swift-only, but luckily it's a very simple API (just a static method), so it's possible to bind it manually.

This required a few other changes/improvements:

* Add support for Swift code in our runtime.

* Just to keep the changes to a minimum, bump the min OS version for legacy code to match the .NET min OS versions. This is because our build logic uses the legacy min versions when compiling native code (a more involved fix would be to update all the build logic to build native code to use the .NET min OS versions, but that's not the point of this PR, so I took the easy route). Fixes #10659.

I've tested the method locally, and it seems to work fine, but I've still marked
it as experimental for now. There are no unit tests because calling the method will
put up a dialog, which won't work correctly in unit tests.

Fixes https://github.com/xamarin/xamarin-macios/issues/21410.
Fixes https://github.com/xamarin/xamarin-macios/issues/10659.
2024-10-16 11:06:47 +02:00
Rolf Bjarne Kvinge 569a5d47e6
Remove the opentk submodule. (#21370)
It's only used in legacy Xamarin, so it's no longer needed.
2024-10-10 10:27:00 +02:00
Rolf Bjarne Kvinge 2cc9af4c01
Bump maccore. (#21319)
New commits in xamarin/maccore:

* xamarin/maccore@c1a17a2f80 [mlaunch] Install and launch apps without
using the AMDevice API for devices that devicectl supports.

Diff: ad4af9cde4..c1a17a2f80

Fixes https://github.com/xamarin/xamarin-macios/issues/21274.
2024-09-30 23:55:33 +02:00
Rolf Bjarne Kvinge 9340a371d0
[runtime] Enable C++ standard library hardening. Fixes #20709. (#21230)
Apple recommends the "fast" mode for production code, and "debug" mode for
non-production, so we're mapping this to Release="fast" and Debug="debug".

References:

* https://developer.apple.com/xcode/cpp/#library-hardening
* https://libcxx.llvm.org/Hardening.html

Fixes https://github.com/xamarin/xamarin-macios/issues/20709.
2024-09-13 10:35:54 +02:00
Rolf Bjarne Kvinge 6ba3c7893d
[xcode16] Merge main into xcode16. (#21158) 2024-09-02 19:31:36 +02:00
Rolf Bjarne Kvinge bfbfa708d9
[xcode16] Bump mlaunch to a newer version with fix for xamarin/maccore#20710. (#21153)
New commits in xamarin/maccore:

* xamarin/maccore@ad4af9cde4 [mlaunch] Add support for the --console
argument to devicectl when launching on device.

Diff: eb95ebf480..ad4af9cde4
2024-09-02 13:32:07 +02:00
Rolf Bjarne Kvinge a26a7fd231 [xcode16] Merge main into xcode16. 2024-08-31 02:49:11 +02:00
Rolf Bjarne Kvinge b1205ce8e5
[dotnet] Increase verbosity when doing 'dotnet workload install' in CI. (#21122)
We're seeing random failures during workload installations in CI, so increase
the default verbosity to see if we can get an idea of what's happening.
2024-08-29 11:30:38 +02:00
Rolf Bjarne Kvinge 2dc0efef4d [xcode16] Merge main into xcode16. 2024-08-06 19:53:09 +02:00
Rolf Bjarne Kvinge 3cdedfd712
Bump maccore. (#20960)
This is mainly to update the suppression files, we don't need any of the
changes in maccore.

Diff:
05609a3441..d3ed4b343e
2024-08-04 11:06:39 -04:00
Rolf Bjarne Kvinge d19f9508c2
[xcode16] Bump to Xcode 16 beta 3. (#20850) 2024-07-13 09:43:49 -04:00
Rolf Bjarne Kvinge 7bc2ce830a Bump maccore to get ADR fix.
New commits in xamarin/maccore:

* xamarin/maccore@be56c3f82e [apple-doc-reader] Add support for Xcode 16.

Diff: 05609a3441..be56c3f82e
2024-07-09 10:22:36 +02:00
Rolf Bjarne Kvinge 6dc1f4c69b
[msbuild/dotnet] Automatically link with Swift's system libraries if a binding project has the IsSwift=true property. (#20546)
Add support for the LinkWithSwiftSystemLibraries metadata to specify whether a native library is a Swift library, in which case we'll automatically set the `LinkWithSwiftSystemLibraries` MSBuild property to `true`.

Also add a test.
2024-05-20 20:17:29 +02:00
Rolf Bjarne Kvinge cf4df83ea5
Bump mlaunch. (#20572)
New commits in xamarin/maccore:

* xamarin/maccore@7dbab91212 [mlaunch] Bump to .NET 8.
* xamarin/maccore@79ae2e4e7e [Mlaunch] Create Vulcan ready files of mlaunch.
* xamarin/maccore@f8f70b23a4 [mlaunch] List devices as they're found in --listdev.

Diff: 39a7e52166..7dbab91212
2024-05-07 19:48:37 +02:00
Haritha Mohan ac22d6f3c6
[ADR] Bump maccore to get property docs fix (#20517)
Ref: https://github.com/xamarin/maccore/pull/2788

---------

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2024-04-29 21:04:45 -07:00
Rolf Bjarne Kvinge a5fc5c1a88
[runtime] Fix min OS versions in various compiler and linker arguments. (#20275)
Once upon a time we needed to special case a higher min OS version that the
min OS version we supported for certain compiler/linker arguments, because we
used features not supported in the min OS version we supported.

That time has passed; in all cases our min OS version is now higher than the
special-cased min OS versions passed to native compilers/linkers, so we can
just use the actual min OS version we support.
2024-03-08 07:26:41 +01:00
Manuel de la Pena 38eb5b5808
[CI] Complete support for APIScan in the CI (#20138)
At the moment even with issues the build will be successful so that we
have green builds while we identify and fix several issues.

---------

Co-authored-by: Alex Soto <alex@alexsoto.me>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2024-02-23 08:13:57 -05:00
Haritha Mohan b0c3ae5fec
[ADR] Fix verbosity (#20055)
Reduce noise during build..
2024-02-09 09:47:27 -08:00
Haritha Mohan 48d0a7f0e7
[ADR] Add support for Intellisense (#19506)
Fixes https://github.com/xamarin/xamarin-macios/issues/17398

Need to land https://github.com/xamarin/maccore/pull/2733 first and make
a maccore bump here.

Opted to keep the tool's invocation inline to keep things more
straightforward. Since the tool is running in parallel for all
platforms, it can (and needs to) only build once- this is what the
.build-adr-stamp target aims to ensure.
2024-01-02 11:29:06 -05:00
Rolf Bjarne Kvinge eb973ea0d6
Bump mlaunch. (#19585)
Related new commits in xamarin/maccore:

* xamarin/maccore@39a7e52166 [mlaunch] Show all output from a failing devicectl command.
* xamarin/maccore@f29148cb58 [mlaunch] Add support for killing apps on device using devicectl. Fixes #xamarin/xamarin-macios@19577.
* xamarin/maccore@632997797a [mlaunch] Fix launching apps on device using a bundle id when using devicectl.

Diff: 699ed5eaf2..39a7e52166
2023-12-11 08:49:50 +01:00
Haritha Mohan 67327a7ba3
[Maccore] Bump to latest to get ADR updates (#19424) 2023-11-13 07:17:53 -08:00
Rolf Bjarne Kvinge 77451313ed
Bump mlaunch to get resource fix. (#19291)
New commits in xamarin/maccore:

* xamarin/maccore@699ed5eaf2 [mlaunch] Fix the resource name for the
error/warning strings.

Diff: 04b71d98c8..699ed5eaf2
2023-10-23 08:44:07 -04:00
Haritha Mohan da08b89077
[build] Add support for worktree checkouts (#19240)
Was messing around with worktrees but our repo failed to build due to
not identifying the proper git directory.

Fixes #18276
2023-10-19 09:22:37 -07:00
Rolf Bjarne Kvinge 7121efa142
Bump mlaunch to get fix for older devices. (#19249)
New commits in xamarin/maccore:

* xamarin/maccore@753d531872 [mlaunch] Only use devicectl for iOS 17 or
newer devices.
* xamarin/maccore@46ca2f35d3 [mlaunch] Add a null check when detecting
whether a device supports wireless debugging.
* xamarin/maccore@864285310c [mlaunch] Use ExceptionDispatchInfo to
rethrow exceptions.
* xamarin/maccore@1bc6e4bd53 Merge net8.0-xcode15 into main
* xamarin/maccore@76fcfa4ea3 [mlaunch] Automatically update the
codebehind from the resx file during build.

Diff: bfaf53ffa1..753d531872
2023-10-19 07:52:42 +02:00
Rolf Bjarne Kvinge e9eff25a67
Bump mlaunch to get device support for iOS 17. (#19159) 2023-10-12 08:21:21 +02:00
Manuel de la Pena 28cb245b0b
[Maccore] Bump maccore to fix the policheck tests. (#19127) 2023-10-06 12:13:10 -04:00
Rolf Bjarne Kvinge 388bbdfc57 [net8.0] Merge main into net8.0. 2023-09-21 10:56:34 +02:00
Rolf Bjarne Kvinge 9e893d230c
Bump mlaunch to get fix for ARM64 calling convention. (#19068)
Ref: https://github.com/dotnet/xharness/issues/1075
2023-09-20 19:27:16 -04:00
Rolf Bjarne Kvinge c901665f34
[net8.0] [devops] Fix boolean logic + update .NET files to sign (#18988)
* Fix boolean logic to determine whether .NET is enabled or not
* Update mlaunch to get a fix where we trim the project.
* Update the list of files that need to be signed from mlaunch.
2023-09-11 18:56:47 +02:00
Rolf Bjarne Kvinge bf8f54c2f2 [net8.0] Merge main into net8.0. 2023-09-01 15:00:32 +02:00
Haritha Mohan 30bf6db902
[mlaunch] Bump mlaunch to get dotnet support (#18800)
Ref: https://github.com/xamarin/maccore/pull/2695
Will update version without the PR id once build is successful.
2023-08-29 10:24:28 -04:00
Rolf Bjarne Kvinge 339582383b [net8.0] Merge main into net8.0. 2023-08-25 08:26:06 +02:00
Manuel de la Pena 564acb83f9
[Maccore] Bump to the latest main. (#18799)
Bump maccore to bring the changes for governance and some others.

New commits in xamarin/maccore:

* xamarin/maccore@63fd14954c [Governance] Update the false positives
files based on the last runs.
* xamarin/maccore@b1c091dbb3 [certificates] Update la_dev_apple.p12,
la_distr_apple.p12 and la_mac_installer_distr.p12
* xamarin/maccore@cf71695c0b [mlaunch] Refactor project structure
* xamarin/maccore@3a0953b2a9 [XmlDocSync] Remove the XmlDocSync
reference from the project.
* xamarin/maccore@f243acfe79 [Submission] Add NotaryTool Task
* xamarin/maccore@ec9db0a40e Merge 'xcode15' into 'main'.
* xamarin/maccore@dc38700a6d [Governance] Update false positives take 2.

Diff:
fd15821e67...dc38700a6d

---------

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-08-24 11:41:19 -04:00
Rolf Bjarne Kvinge a3e2d48335 [net8.0] Merge main into net8.0. 2023-08-08 16:06:04 +02:00
Rolf Bjarne Kvinge 970a00e8ce
[mlaunch] Bump to a version that works with Xcode 15. (#18651) 2023-08-08 08:32:02 +02:00
Alex Soto 928048d681 Merge remote-tracking branch 'xamarin/main' into net8.0-merge-main 2023-07-22 21:44:02 -04:00
Manuel de la Pena a8d3bda60c
Merge branch 'net8.0' into merge-main-net8 2023-07-11 10:27:22 -04:00
Manuel de la Pena ed13befa6d
[CI] Ignore false positives from policheck and other tools. (#18547) 2023-07-10 17:51:45 -04:00
Manuel de la Pena b05b9e336e
[CI] Onboard to tsa so that policheck exceptions can be added via workitems. (#18504) 2023-07-07 11:11:10 -04:00
Filip Navara 05502d1260
Remove IKVM submodule (#18516) 2023-06-30 10:32:32 +02:00
Rolf Bjarne Kvinge e2c673972b [net8.0] Merge main into net8.0. 2023-06-29 17:05:54 +02:00
Manuel de la Pena c0fa2efaa2
Bump maccore to pick policheck fixes. (#18503) 2023-06-27 16:04:29 -04:00
Rolf Bjarne Kvinge f964b5a157 [runtime] Create a version of our runtime that can be used with NativeAOT.
This contributes towards https://github.com/xamarin/xamarin-macios/issues/17339.
2023-06-21 20:49:49 +02:00
Alex Soto 46eaabc17d [xcode14.3] Update bindings to Xcode 14.3 2023-03-29 14:37:51 -04:00
Rolf Bjarne Kvinge 61ff4277ea
Bump maccore. (#17898)
Bump maccore to get fix for mlaunch:

* 3ce5b1e181
2023-03-28 12:44:03 +02:00
Rolf Bjarne Kvinge a2d9424cf6
Bump mlaunch to get fix for Xcode 14.3 beta 1. (#17586)
Ref: 52cb086032
2023-02-23 09:08:59 +01:00
Rolf Bjarne Kvinge 2b03ac31a6
Bump mlaunch to fix an unneccessary warning. (#17523)
Ref: 645f1813c5
2023-02-14 15:00:01 +01:00
Alex Soto 27b27ee42a
[mono] Bump mono to match android (#16851)
New commits in mono/mono:

* mono/mono@6dd9def57c Change download URL for PCL reference assemblies
* mono/mono@d3f9882f92 Bump llvm to pick up 7424e2ca2f78a3c338fe5b07a2d4eb6dd6574195.
* mono/mono@ca8abcb6bc Bump NuGetSdkResolver in msbuild
* mono/mono@2ab67d5ef2 Bump nuget.exe to v6.3.1
* mono/mono@7cd0b7f82c Fix incorrect version comparison in loader
* mono/mono@a96bde9730 Backport fixes for sharing wrappers when type attributes are involved
* mono/mono@e7c645a340 Backporting https://github.com/dotnet/runtime/pull/59861

Diff: 2a19f878da..6dd9def57c
2022-11-22 07:28:50 +01:00
Rolf Bjarne Kvinge 19f7a168ac
Switch maccore to track main and bump. (#16617)
Also add copy make target to bump the current maccore hash from maccore.

New commits in xamarin/maccore:

* xamarin/maccore@893e01ae00 Update provisionator bootstrap
* xamarin/maccore@7fa40752e4 Merge xcode14 into main.
* xamarin/maccore@140923bddf Merge remote-tracking branch 'xamarin/xcode14' into merge-xcode14-into-main
* xamarin/maccore@4e3eab455c Use Environment.SpecialFolder.UserProfile, not SpecialFolder.Personal.
* xamarin/maccore@9a347bd708 [certificates] Update la_dev_apple.p12, la_distr_apple.p12 and la_mac_installer_distr.p12
* xamarin/maccore@bcdd779e58 [devops] Install Mono too.
* xamarin/maccore@75a03ccbfc [xcode14] Merge main into xcode14
* xamarin/maccore@7690a80a2f [submission] Fix submission test makefile
* xamarin/maccore@813beaf11a Don't build mlaunch from the parent/root makefile anymore.
* xamarin/maccore@695f55471d [analysis] Make sure to create directories before copying files into them.
* xamarin/maccore@29a6536838 [mlaunch] Fix computing the current source branch in CI.
* xamarin/maccore@8c281e0c8f [mlaunch] Build & package without using xamarin-macios.
* xamarin/maccore@3e5c67a1ea [devops] Provision Xcode and Xamarin.Mac on the bots.

Diff: 0837e7caff..893e01ae00
2022-11-08 07:40:02 +01:00
Rolf Bjarne Kvinge c7badeacf1 Merge main into xcode14.1. 2022-10-04 16:21:54 +02:00