Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[net10.0] Merge main into net10.0. #21917

Merged
merged 143 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
cef329f
[xharness] Fix running multiple xharness servers simultaneously. (#21…
rolfbjarne Dec 18, 2024
c06fba6
[API Diff] Fix xamarin-reset.sh. (#21827)
mandel-macaque Dec 18, 2024
aa3ac14
[xma] Updated Xamarin.Messaging to 3.0.13 (#21767)
mauroa Dec 19, 2024
8528c90
[xtro] Don't treat APIs that are deprecated far in the future as actu…
rolfbjarne Dec 19, 2024
c80a942
[tests] Fix all compiler warnings in all test suites and make sure we…
rolfbjarne Dec 19, 2024
a702a73
[main] Update dependencies from dotnet/xharness (#21815)
dotnet-maestro[bot] Dec 20, 2024
0937cff
[src] Fix duplicate availability attributes. (#21819)
rolfbjarne Dec 20, 2024
37963c3
[tests] Apple fixed audio recording in the simulator, so remove corre…
rolfbjarne Dec 20, 2024
2943ab0
[msbuild] Add support for bundling original resources in libraries. F…
rolfbjarne Dec 20, 2024
874ee22
[mk] Fix adr checkout. (#21835)
rolfbjarne Dec 20, 2024
b16e40b
[introspection] Ignore a few protocol conformances for ScreenCaptureK…
rolfbjarne Dec 20, 2024
ba733fb
[xharness] Add a monotouch-test variation with the interpreter enable…
rolfbjarne Dec 20, 2024
9853fef
[dotnet] Create and ship a WorkloadDependencies.json file. Fixes #217…
rolfbjarne Dec 20, 2024
648eb5d
[tests] Don't run 'make' in 'tests/tests-libraries' as part of test s…
rolfbjarne Dec 20, 2024
c9d052a
[AVKit] Add missing APIs and fix all xtro issues. (#21836)
rolfbjarne Dec 20, 2024
4af3d21
[Rgen] Add the platform availability as part of the enum field change…
mandel-macaque Dec 20, 2024
5c76b9a
[RGen] Add the platform availability as part of the constructor data …
mandel-macaque Dec 23, 2024
84de7cd
[RGen] Add the platform availabiltiy to the method data model. (#21851)
mandel-macaque Dec 23, 2024
c4b9628
[RGen] Add the platform availability as part of the property data mod…
mandel-macaque Dec 24, 2024
f6d86a2
[RGen] Add the platform availability as part of the event data model.…
mandel-macaque Dec 27, 2024
0bedb2c
[RGent] Add name and namespace to the codechanges struct. (#21857)
mandel-macaque Dec 27, 2024
6286034
[RGen] Add the field data to the enum values structure. (#21856)
mandel-macaque Dec 27, 2024
2b49db1
[RGen] Add the named type symbol platform availability to the code ch…
mandel-macaque Dec 27, 2024
db218ca
[RGen] Make availability ToString more readable. (#21859)
mandel-macaque Dec 28, 2024
670d933
[RGen] Remove the need to explicitly pass a name for the compilation …
mandel-macaque Dec 28, 2024
bc9d390
[RGen] Reduce the memory pressure of reference objects. (#21861)
mandel-macaque Dec 28, 2024
619a8ea
[Foundation] Document and slightly simplify the NSObject.Dangerous[Re…
rolfbjarne Dec 30, 2024
dd3b2e3
[compare-commits] Clone macios-adr from our existing clone instead of…
rolfbjarne Dec 30, 2024
42d14e2
[dotnet] Disable dedup optimization if we're interpreting every assem…
rolfbjarne Dec 30, 2024
c9dfc0e
[RGen] Fix failing tests after a PR merge race. (#21864)
mandel-macaque Dec 30, 2024
07ac4a3
[xharness] Simplify, simplify, simplify. (#21796)
rolfbjarne Dec 30, 2024
31dd037
[Foundation] Fix/improve a few more NSAttributedString constructors. …
rolfbjarne Dec 30, 2024
913ffab
[registrar] Fix registration of stub Objective-C classes. Fixes #2154…
rolfbjarne Dec 30, 2024
4b67ffd
[src/tools] Remove code for frameworks that don't exist anymore. (#21…
rolfbjarne Dec 30, 2024
5d4144c
[CoreMedia] Add some of the new APIs in recent Xcode versions. (#21830)
rolfbjarne Dec 30, 2024
729b805
[CoreMedia] Make OSStatus = System.Int32 a global using directive. (#…
rolfbjarne Dec 30, 2024
9b0362a
[tests] Improve a test assertion to get better output in case of asse…
rolfbjarne Dec 30, 2024
05311a2
[apidiff] Bump reference API to Xcode 16.2 support release. (#21833)
rolfbjarne Dec 30, 2024
8cf9598
[Rgen] Provide a way to parse the generic BindingTypeAttribute and an…
mandel-macaque Dec 30, 2024
22a9021
[Rgen] Add the named type modifiers to the code change struct. (#21865)
mandel-macaque Dec 30, 2024
1e729bf
[RGen] Add ExportData as part of the property data model. (#21863)
mandel-macaque Dec 31, 2024
5974821
[Rgen] Add helper properties to determine if a code change was for a …
mandel-macaque Dec 31, 2024
b195d91
Bump Xamarin.MacDev. (#21872)
rolfbjarne Dec 31, 2024
d00bf5b
[rgen] Fix concurrent build problem with rgen. (#21871)
rolfbjarne Dec 31, 2024
b01bfc0
[tools] Enable the register-protocols optimization when the interpret…
rolfbjarne Dec 31, 2024
859dd99
[tools] Fix computing the product version for Mac Catalyst. (#21868)
rolfbjarne Dec 31, 2024
570dd82
[Rgen] Add the BindingData struct as part as the code struct. (#21874)
mandel-macaque Dec 31, 2024
84423cc
[Rgen] Add the using directives to the code change struct. (#21862)
mandel-macaque Dec 31, 2024
a0ac2c8
[Rgen] Keep track of properties/methods/ctrs that use smart enums. (#…
mandel-macaque Dec 31, 2024
52975e3
[CI] Make the API diff be triggered as soon as the config of the buil…
mandel-macaque Jan 1, 2025
90a0a60
[Rgen] Do not create an emitter per code change. (#21883)
mandel-macaque Jan 2, 2025
b98b822
[Rgen] Add extra data in the parameter struct to know if a parameter …
mandel-macaque Jan 2, 2025
c1fa3c3
[ObjCRuntime] Ensure all assemblies' module constructors have execute…
rolfbjarne Jan 3, 2025
eb0919f
[Rgen] Do not create a string builder per binding. (#21889)
mandel-macaque Jan 3, 2025
264a8a4
[Rgen] Provide extension methods that will return a member declaratio…
mandel-macaque Jan 3, 2025
22f45b3
[Rgen] Keep track of the base class and implemented interfaces in a c…
mandel-macaque Jan 3, 2025
a896086
[Rgen] Start emitting the default constructors for classes. (#21890)
mandel-macaque Jan 3, 2025
03b2ec4
[Rgen] Add a property that states if a param or property is of a blit…
mandel-macaque Jan 4, 2025
880f39a
[Rgen] Add the export attribute data in the method data model. (#21896)
mandel-macaque Jan 5, 2025
ae05285
[Rgen] Allow to add a export attribute to an accessor. (#21895)
mandel-macaque Jan 6, 2025
d150e11
[Rgen] Provide a property that will return the name of the backing fi…
mandel-macaque Jan 6, 2025
2149632
[Rgen] Keep track in the property struct if the returned type is a re…
mandel-macaque Jan 6, 2025
b472b63
[Rgen] Establish transformer tool setup (#21784)
haritha-mohan Jan 6, 2025
d2219f9
[net10.0] Merge main into net10.0.
rolfbjarne Jan 7, 2025
3139e9e
[CI] Move away from automatic pool selector and allow builds on dev/*…
mandel-macaque Jan 7, 2025
9ad2ef7
[CI] Batch developer builds in the CI to use resources better. (#21920)
mandel-macaque Jan 7, 2025
661f2f2
[Rgen] Fix tests after some messy merge broke them. (#21919)
mandel-macaque Jan 7, 2025
be851fe
[API] Add a space aroud the emojis. (#21914)
mandel-macaque Jan 7, 2025
3359149
[tests] Ignore AcceptSslCertificatesWithCustomValidationCallbackNSUrl…
rolfbjarne Jan 8, 2025
b27c03d
[msbuild] Show an error if an app tries to link with a static library…
rolfbjarne Jan 8, 2025
01779bb
Bump IOS_PACKAGE_VERSION and MAC_PACKAGE_VERSION to reset the commit …
rolfbjarne Jan 8, 2025
d9fe64a
[tests] Delete a legacy-only test that's causing build problems now.
rolfbjarne Jan 8, 2025
cb30c4d
[msbuild] Validate entitlements in CompileEntitlements. (#21771)
rolfbjarne Jan 8, 2025
061c5c2
[tests] Ignore trimmer warnings in our linker tests.
rolfbjarne Jan 8, 2025
29ca1ae
[msbuild] Capture any logging from Xamarin.MacDev in DetectSdkLocatio…
rolfbjarne Jan 8, 2025
d1c8f7a
[tests] Fix parallel build of test libraries. (#21907)
rolfbjarne Jan 8, 2025
4beb2fc
[tests] Improve assert to show status code in case of failure. (#21910)
rolfbjarne Jan 8, 2025
1e8749f
[dotnet] Add templates for Notification Content extensions and Notifi…
rolfbjarne Jan 8, 2025
15b8d64
[CI] Allow the comments to be written in PRs that were started with a…
mandel-macaque Jan 8, 2025
acc22a0
[msbuild] Don't use 'TRACE' to enable verbose tracing. (#21909)
rolfbjarne Jan 8, 2025
d70ad7f
[Rgen] Add support to mark a field as a notification. (#21897)
mandel-macaque Jan 8, 2025
3b2e631
[Rgen] Add extra data about the return type of a method. (#21901)
mandel-macaque Jan 8, 2025
1e11836
[Rgen] Refactor BindingData to BindingInfo and add some extra tests. …
mandel-macaque Jan 8, 2025
7ba89c1
[UIKit] Fix inexact stream read in UIImage. (#21916)
rolfbjarne Jan 9, 2025
47560d4
[tests] Tweak assert messages a little bit to improve diagnosing test…
rolfbjarne Jan 9, 2025
544516d
[msbuild/dotnet/src] Misc exception marshalling improvements. (#21892)
rolfbjarne Jan 9, 2025
605b1b7
[Rgen] Use the formatter pattern for the SmartEnum extension class de…
mandel-macaque Jan 9, 2025
3d038b7
[build/src] Remove numerous legacy build variables. (#21922)
rolfbjarne Jan 9, 2025
b495e7b
Merge remote-tracking branch 'origin/main' into dev/rolf/bump-main-in…
rolfbjarne Jan 9, 2025
1edd8e3
[CI] Only undo the merge when is a pull branch. (#21933)
mandel-macaque Jan 9, 2025
10bdde3
[src] Fix xml doc comments to actually be xml. (#21930)
rolfbjarne Jan 9, 2025
c2d60b5
[CI] Update the configuration scripts to retrieve PRs when a PR build…
mandel-macaque Jan 9, 2025
34d2286
[Rgen] Add support for delegates in the data model. (#21902)
mandel-macaque Jan 9, 2025
49ebbf5
[Rgen] Move the property struct to use the return type one. (#21928)
mandel-macaque Jan 9, 2025
7cdc70a
[RGen] Add license header to files. (#21936)
mandel-macaque Jan 9, 2025
2814e55
[xharness] There's no need to check platform/configuration when setti…
rolfbjarne Jan 10, 2025
770dc84
[docs] Fix a few issues with the api docs. (#21932)
rolfbjarne Jan 10, 2025
d57af51
Make our .editorconfig a root editor config. (#21931)
rolfbjarne Jan 10, 2025
b5b41b1
[src] Create a rsp file for all the arguments to the C# compiler when…
rolfbjarne Jan 10, 2025
f3ab91a
[tools] Update the resource removal step to take into account '__mono…
rolfbjarne Jan 9, 2025
e7f4ff5
Merge Touch.Unit and MonoTouch.Dialog into repository (#21766)
mcumming Jan 10, 2025
e88e17b
[tools] Fix computing api diff from a PR in the compare-commits.sh. (…
rolfbjarne Jan 13, 2025
3832a47
[src] Fix verbosity when building bgen.csproj.inc. (#21940)
rolfbjarne Jan 13, 2025
d0c520e
[AVFoundation] Add missing APIs up to Xcode 16.2. (#21878)
rolfbjarne Jan 13, 2025
2c7759a
[Rgen] Complete the BindingTypeAttribute analyzer. (#21946)
mandel-macaque Jan 13, 2025
aedb52a
[src] Remove all watchOS attributes + watchOS-specific code from our …
rolfbjarne Jan 13, 2025
76324ed
[UIKit] Make UIApplication implement UIAccessibility. Fixes #21925. (…
rolfbjarne Jan 13, 2025
5e14fe9
[xharness] Simplify a fix monotouch-test test variations a bit. (#21950)
rolfbjarne Jan 13, 2025
5b2e265
[RGen] Do not pass the root binding context around. (#21945)
mandel-macaque Jan 13, 2025
3f2cae0
[CI] Improve the IsPR method to account for other trigger types. (#21…
mandel-macaque Jan 13, 2025
b5bc116
[Rgen] Track inheritance and add a special case for INativeObject and…
mandel-macaque Jan 13, 2025
d596ac0
[Rgen] Add missing test data for tvOS and MacCatalyst. (#21955)
mandel-macaque Jan 13, 2025
783ba3b
[tests] Only run tests that require iOS test libraries if the iOS pla…
rolfbjarne Jan 13, 2025
5148eda
[tests] Ignore overeager SM02184 warning. (#21952)
rolfbjarne Jan 13, 2025
bf4934b
[src] Fix make dependencies when creating apidefinition.rsp. (#21942)
rolfbjarne Jan 13, 2025
6b14df4
[PassKit] Fix typo in parameter name. (#21935)
rolfbjarne Jan 13, 2025
4995633
[src] Ignore CS1573 in certain cases. (#21941)
rolfbjarne Jan 13, 2025
ed69a5f
[src] Unify enum formatting. (#21934)
rolfbjarne Jan 14, 2025
1c16bfd
[UIKit] Fix some nullability issues. Fixes #21957. (#21961)
rolfbjarne Jan 14, 2025
3ffc1da
[tests] Validate input when serving files in ProxyTest. (#21951)
rolfbjarne Jan 14, 2025
6416719
[xharness] Validate input when serving files in the web view. (#21949)
rolfbjarne Jan 14, 2025
9de395d
[RGen] Use the correct attribute for field properties. (#21959)
mandel-macaque Jan 14, 2025
b47cbd2
[xtro] Skip native enum values that aren't available on the current p…
rolfbjarne Jan 14, 2025
1607852
[MLCompute] Fix all xtro todo's for this framework. (#21968)
rolfbjarne Jan 14, 2025
24c7d28
[ReplayKit] Fix all xtro todo's for this framework. (#21962)
rolfbjarne Jan 14, 2025
3a88e59
[xtro] Ignore all of Matter. (#21967)
rolfbjarne Jan 14, 2025
70676be
[monotouch-test] Ignore a few audio-related tests if the screen is lo…
rolfbjarne Jan 14, 2025
4ef7b1d
[RGent] Rename ReturnType to TypeInfo. (#21970)
mandel-macaque Jan 14, 2025
9094be7
[RGen] Keep track of the libs needed for enums and fields. (#21969)
mandel-macaque Jan 14, 2025
31f5a88
[RGen] Keep track of the SpecialType and the MetadataName in the Type…
mandel-macaque Jan 14, 2025
799ef97
[tools] Update the resource removal step to take into account '__mono…
rolfbjarne Jan 15, 2025
17c62d6
Merge remote-tracking branch 'origin/main' into dev/rolf/bump-main-in…
rolfbjarne Jan 15, 2025
63e42c1
Merge remote-tracking branch 'origin/net10.0' into dev/rolf/bump-main…
rolfbjarne Jan 15, 2025
3eb9920
[bgen] Propagate more xml docs. (#21972)
rolfbjarne Jan 15, 2025
2a49847
[main] Update dependencies from dotnet/arcade (#21882)
dotnet-maestro[bot] Jan 15, 2025
1cc3910
[Rgen] If a type is an enum, keep track of its underlying type. (#21977)
mandel-macaque Jan 15, 2025
51b9315
[src] Create a csproj for each of the assemblies built during the bui…
rolfbjarne Jan 15, 2025
5959c11
[CoreHaptics] Add to macOS. (#21963)
rolfbjarne Jan 15, 2025
2009c57
[bgen] Accumulate BI1118 errors instead of bailing out on the first o…
rolfbjarne Jan 15, 2025
1048ca7
[Rgen] Add a binding syntax factory that will generate C# expressions…
mandel-macaque Jan 15, 2025
0e6a5b5
[xharness] Adjust .NET unit test timeout to 2h45m: to avoid having CI…
rolfbjarne Jan 16, 2025
8e7b6dc
[tests] Ignore trimmer warnings in our linker tests.
rolfbjarne Jan 8, 2025
f21a0cc
Merge remote-tracking branch 'origin/main' into dev/rolf/bump-main-in…
rolfbjarne Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# EditorConfig is awesome: https://editorconfig.org

# top-most EditorConfig file
root = true

[*.{props,targets}]
indent_style = tab
indent_size = 4
Expand Down
9 changes: 1 addition & 8 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
[submodule "external/Touch.Unit"]
path = external/Touch.Unit
url = ../../xamarin/Touch.Unit.git
branch = main
[submodule "external/Xamarin.MacDev"]
path = external/Xamarin.MacDev
url = ../../xamarin/Xamarin.MacDev
branch = main
[submodule "external/MonoTouch.Dialog"]
path = external/MonoTouch.Dialog
url = ../../xamarin/MonoTouch.Dialog
branch = dotnet

3 changes: 0 additions & 3 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
/src/HomeKit
/src/homekit.cs
/src/iad.cs
/src/iAd.framework
/src/identitylookup.cs @dalexsoto
/src/identitylookupui.cs @dalexsoto
/src/ituneslibrary.cs @mandel-macaque
Expand Down Expand Up @@ -184,8 +183,6 @@
/src/vision.cs @dalexsoto
/src/WatchConnectivity @rolfbjarne
/src/watchconnectivity.cs @rolfbjarne
/src/WatchKit @rolfbjarne
/src/watchkit.cs @rolfbjarne
/src/WebKit
/src/webkit.cs

Expand Down
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<MicrosoftBuildFrameworkPackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildFrameworkPackageVersion>
<MicrosoftBuildTasksCorePackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildTasksCorePackageVersion>
<MicrosoftBuildUtilitiesCorePackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildUtilitiesCorePackageVersion>
<NUnitXmlTestLoggerPackageVersion>3.1.15</NUnitXmlTestLoggerPackageVersion>
</PropertyGroup>
<Import Project="Build.props" Condition="Exists('Build.props')" />
</Project>
77 changes: 25 additions & 52 deletions Make.config
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ include $(TOP)/Make.versions
# The value is taken from the name + version of the Ref pack.
# Example: given the Ref pack "Microsoft.iOS.Ref.net8.0_17.5" with the version "17.5.8030", the value
# to write here would be the part after "Microsoft.iOS.Ref." + "/" + version: "net8.0_17.5/17.5.8030"
STABLE_NUGET_VERSION_iOS=net9.0_18.0/18.0.9617
STABLE_NUGET_VERSION_tvOS=net9.0_18.0/18.0.9617
STABLE_NUGET_VERSION_MacCatalyst=net9.0_18.0/18.0.9617
STABLE_NUGET_VERSION_macOS=net9.0_15.0/15.0.9617
STABLE_NUGET_VERSION_iOS=net9.0_18.2/18.2.9170
STABLE_NUGET_VERSION_tvOS=net9.0_18.2/18.2.9170
STABLE_NUGET_VERSION_MacCatalyst=net9.0_18.2/18.2.9170
STABLE_NUGET_VERSION_macOS=net9.0_15.2/15.2.9170

PACKAGE_HEAD_REV=$(shell git rev-parse HEAD)

Expand Down Expand Up @@ -169,15 +169,6 @@ endif

NUGET_BUILD_METADATA=

IOS_PRODUCT=Xamarin.iOS
IOS_PACKAGE_NAME=Xamarin.iOS
IOS_PACKAGE_NAME_LOWER=$(shell echo $(IOS_PACKAGE_NAME) | tr "[:upper:]" "[:lower:]")
IOS_PACKAGE_VERSION_MAJOR=$(word 1, $(subst ., ,$(IOS_PACKAGE_VERSION)))
IOS_PACKAGE_VERSION_MINOR=$(word 2, $(subst ., ,$(IOS_PACKAGE_VERSION)))
IOS_PACKAGE_VERSION_REV:=$(word 3, $(subst ., ,$(IOS_PACKAGE_VERSION)))
IOS_PACKAGE_VERSION_BUILD=$(IOS_COMMIT_DISTANCE)
IOS_PACKAGE_UPDATE_ID=$(shell printf "2%02d%02d%02d%03d" $(IOS_PACKAGE_VERSION_MAJOR) $(IOS_PACKAGE_VERSION_MINOR) $(IOS_PACKAGE_VERSION_REV) $(IOS_PACKAGE_VERSION_BUILD))

IOS_NUGET=Microsoft.iOS
IOS_NUGET_VERSION=$(IOS_NUGET_OS_VERSION).$(IOS_NUGET_COMMIT_DISTANCE)
IOS_NUGET_VERSION_MAJOR=$(word 1, $(subst ., ,$(IOS_NUGET_VERSION)))
Expand Down Expand Up @@ -312,31 +303,18 @@ RANLIB=$(XCODE_DEVELOPER_ROOT)/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranli
# paths to the modules we depend on, as variables, so people can put
# things in other places if they absolutely must.
MONO_PATH=$(TOP)/external/mono
TOUCH_UNIT_PATH=$(TOP)/external/Touch.Unit
XAMARIN_MACDEV_PATH=$(TOP)/external/Xamarin.MacDev
MONOTOUCH_DIALOG_PATH=$(TOP)/external/MonoTouch.Dialog
API_TOOLS_PATH=$(TOP)/external/api-tools
MACCORE_PATH=$(TOP)/../maccore
ADR_PATH=$(TOP)/../macios-adr
ADR_PATH:=$(abspath $(TOP)/../macios-adr)

MONO_PREFIX ?= /Library/Frameworks/Mono.framework/Versions/Current
SYSTEM_MONO=$(MONO_PREFIX)/bin/mono
SYSTEM_MSBUILD=unset MSBuildExtensionsPath && $(MONO_PREFIX)/bin/msbuild /p:Features=strict /m

PKG_CONFIG=$(MONO_PREFIX)/bin/pkg-config

MAC_PRODUCT=Xamarin.Mac
MAC_PACKAGE_NAME=xamarin.mac
MAC_PACKAGE_NAME_LOWER=$(shell echo $(MAC_PACKAGE_NAME) | tr "[:upper:]" "[:lower:]")

MAC_PACKAGE_VERSION_MAJOR=$(word 1, $(subst ., ,$(MAC_PACKAGE_VERSION)))
MAC_PACKAGE_VERSION_MINOR=$(word 2, $(subst ., ,$(MAC_PACKAGE_VERSION)))
MAC_PACKAGE_VERSION_REV=$(word 3, $(subst ., ,$(MAC_PACKAGE_VERSION)))
MAC_PACKAGE_VERSION_BUILD=$(word 4, $(subst ., ,$(MAC_PACKAGE_VERSION)))
MAC_PACKAGE_VERSION_MAJOR_MINOR=$(MAC_PACKAGE_VERSION_MAJOR).$(MAC_PACKAGE_VERSION_MINOR)
MAC_PACKAGE_UPDATE_ID=$(shell echo $(subst ., ,$(MAC_PACKAGE_VERSION).$(MAC_PACKAGE_VERSION_BUILD)) | awk '{printf "2%02d%02d%02d%03d",$$1,$$2,$$3,$$4}')
MAC_PACKAGE_TITLE=Xamarin $(MAC_PACKAGE_NAME) $(MAC_PACKAGE_VERSION)

MACOS_NUGET=Microsoft.macOS
MACOS_NUGET_VERSION=$(MACOS_NUGET_OS_VERSION).$(MACOS_NUGET_COMMIT_DISTANCE)
MACOS_NUGET_VERSION_MAJOR=$(word 1, $(subst ., ,$(MACOS_NUGET_VERSION)))
Expand All @@ -345,11 +323,6 @@ MACOS_NUGET_VERSION_PATCH=$(word 3, $(subst ., ,$(MACOS_NUGET_VERSION)))
MACOS_NUGET_VERSION_NO_METADATA=$(MACOS_NUGET_VERSION)$(NUGET_PRERELEASE_IDENTIFIER)
MACOS_NUGET_VERSION_FULL=$(MACOS_NUGET_VERSION_NO_METADATA)$(NUGET_BUILD_METADATA)

MAC_PACKAGE_FILENAME=$(MAC_PACKAGE_NAME_LOWER)-$(MAC_PACKAGE_VERSION).pkg
MAC_PACKAGE_DMG_FILENAME=$(MAC_PACKAGE_NAME_LOWER)-$(MAC_PACKAGE_VERSION).dmg
MAC_PACKAGE_DMG_DIRNAME="$(MAC_PACKAGE_TITLE)"
MAC_PACKAGE_UTI=com.$(MAC_PACKAGE_NAME_LOWER).pkg

TT = $(DOTNET) tool restore && $(DOTNET) t4

PRODUCT_KEY_PATH?=$(TOP)/product.snk
Expand Down Expand Up @@ -600,28 +573,28 @@ DOTNET_maccatalyst_PLATFORM=maccatalyst
DOTNET_macos_PLATFORM=macos

# XCFRAMEWORK -> clang argument for min OS version
CLANG_iossimulator-x64_VERSION_MIN=-mios-simulator-version-min=$(MIN_IOS_SDK_VERSION)
CLANG_iossimulator-arm64_VERSION_MIN=-mios-simulator-version-min=$(MIN_IOS_SDK_VERSION)
CLANG_ios-arm64_VERSION_MIN=-miphoneos-version-min=$(MIN_IOS_SDK_VERSION)
CLANG_tvossimulator-x64_VERSION_MIN=-mtvos-simulator-version-min=$(MIN_TVOS_SDK_VERSION)
CLANG_tvossimulator-arm64_VERSION_MIN=-mtvos-simulator-version-min=$(MIN_TVOS_SDK_VERSION)
CLANG_tvos-arm64_VERSION_MIN=-mtvos-version-min=$(MIN_TVOS_SDK_VERSION)
CLANG_maccatalyst-x64_VERSION_MIN=-target x86_64-apple-ios$(MIN_MACCATALYST_SDK_VERSION)-macabi -arch x86_64
CLANG_maccatalyst-arm64_VERSION_MIN=-target arm64-apple-ios$(MIN_MACCATALYST_SDK_VERSION)-macabi -arch arm64
CLANG_osx-x64_VERSION_MIN=-mmacosx-version-min=$(MIN_MACOS_SDK_VERSION)
CLANG_osx-arm64_VERSION_MIN=-mmacosx-version-min=$(MIN_MACOS_SDK_VERSION)
CLANG_iossimulator-x64_VERSION_MIN=-mios-simulator-version-min=$(DOTNET_MIN_IOS_SDK_VERSION)
CLANG_iossimulator-arm64_VERSION_MIN=-mios-simulator-version-min=$(DOTNET_MIN_IOS_SDK_VERSION)
CLANG_ios-arm64_VERSION_MIN=-miphoneos-version-min=$(DOTNET_MIN_IOS_SDK_VERSION)
CLANG_tvossimulator-x64_VERSION_MIN=-mtvos-simulator-version-min=$(DOTNET_MIN_TVOS_SDK_VERSION)
CLANG_tvossimulator-arm64_VERSION_MIN=-mtvos-simulator-version-min=$(DOTNET_MIN_TVOS_SDK_VERSION)
CLANG_tvos-arm64_VERSION_MIN=-mtvos-version-min=$(DOTNET_MIN_TVOS_SDK_VERSION)
CLANG_maccatalyst-x64_VERSION_MIN=-target x86_64-apple-ios$(DOTNET_MIN_MACCATALYST_SDK_VERSION)-macabi -arch x86_64
CLANG_maccatalyst-arm64_VERSION_MIN=-target arm64-apple-ios$(DOTNET_MIN_MACCATALYST_SDK_VERSION)-macabi -arch arm64
CLANG_osx-x64_VERSION_MIN=-mmacosx-version-min=$(DOTNET_MIN_MACOS_SDK_VERSION)
CLANG_osx-arm64_VERSION_MIN=-mmacosx-version-min=$(DOTNET_MIN_MACOS_SDK_VERSION)

# RUNTIMEIDENTIFIER -> swiftc argument(s) for min OS version
SWIFTC_iossimulator-arm64_VERSION_MIN=-target arm64-apple-ios$(MIN_IOS_SDK_VERSION)-simulator
SWIFTC_iossimulator-x64_VERSION_MIN=-target x86_64-apple-ios$(MIN_IOS_SDK_VERSION)-simulator
SWIFTC_ios-arm64_VERSION_MIN=-target arm64-apple-ios$(MIN_IOS_SDK_VERSION)
SWIFTC_tvossimulator-x64_VERSION_MIN=-target x86_64-apple-tvos$(MIN_TVOS_SDK_VERSION)-simulator
SWIFTC_tvossimulator-arm64_VERSION_MIN=-target arm64-apple-tvos$(MIN_TVOS_SDK_VERSION)-simulator
SWIFTC_tvos-arm64_VERSION_MIN=-target arm64-apple-tvos$(MIN_TVOS_SDK_VERSION)
SWIFTC_maccatalyst-x64_VERSION_MIN=-target x86_64-apple-ios$(MIN_MACCATALYST_SDK_VERSION)-macabi
SWIFTC_maccatalyst-arm64_VERSION_MIN=-target arm64-apple-ios$(MIN_MACCATALYST_SDK_VERSION)-macabi
SWIFTC_osx-x64_VERSION_MIN=-target x86_64-apple-macos$(MIN_MACOS_SDK_VERSION)
SWIFTC_osx-arm64_VERSION_MIN=-target arm64-apple-macos$(MIN_MACOS_SDK_VERSION)
SWIFTC_iossimulator-arm64_VERSION_MIN=-target arm64-apple-ios$(DOTNET_MIN_IOS_SDK_VERSION)-simulator
SWIFTC_iossimulator-x64_VERSION_MIN=-target x86_64-apple-ios$(DOTNET_MIN_IOS_SDK_VERSION)-simulator
SWIFTC_ios-arm64_VERSION_MIN=-target arm64-apple-ios$(DOTNET_MIN_IOS_SDK_VERSION)
SWIFTC_tvossimulator-x64_VERSION_MIN=-target x86_64-apple-tvos$(DOTNET_MIN_TVOS_SDK_VERSION)-simulator
SWIFTC_tvossimulator-arm64_VERSION_MIN=-target arm64-apple-tvos$(DOTNET_MIN_TVOS_SDK_VERSION)-simulator
SWIFTC_tvos-arm64_VERSION_MIN=-target arm64-apple-tvos$(DOTNET_MIN_TVOS_SDK_VERSION)
SWIFTC_maccatalyst-x64_VERSION_MIN=-target x86_64-apple-ios$(DOTNET_MIN_MACCATALYST_SDK_VERSION)-macabi
SWIFTC_maccatalyst-arm64_VERSION_MIN=-target arm64-apple-ios$(DOTNET_MIN_MACCATALYST_SDK_VERSION)-macabi
SWIFTC_osx-x64_VERSION_MIN=-target x86_64-apple-macos$(DOTNET_MIN_MACOS_SDK_VERSION)
SWIFTC_osx-arm64_VERSION_MIN=-target arm64-apple-macos$(DOTNET_MIN_MACOS_SDK_VERSION)


# Misc other computed variables
Expand Down
46 changes: 1 addition & 45 deletions Make.versions
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#
# A release branch requires updating the following six variables at the bottom of this file:
#
# IOS_PACKAGE_VERSION (major/minor/revision #)
# MAC_PACKAGE_VERSION (major/minor/revision #)
# A release branch requires updating the following four variables further down in this file:
#
# IOS_NUGET_VERSION (major/minor/patch #)
# TVOS_NUGET_VERSION (major/minor/patch #)
Expand All @@ -12,45 +9,6 @@
# Update version numbers on main as well, to the next version
#

#
# ** Version numbers **
#
# Versions are defined as: Major.Minor.Revison.Build
#
# Major/minor (first/second numbers - max 2 digits each):
# - Bump for major/minor releases.
#
# Revision (third number - max 2 digits):
# - Reset to 0 after a major or minor bump (do not use 99 for Xcode preview
# branches (use 0 instead), because otherwise we can't bump it further if
# needed).
# - Bump for service releases and previews.
# - Bump if commit distance becomes > 999.
# - Can also be bumped for other reasons (in particular there's no correlation
# between Preview/Service Release #X and Revision #Y).
# - Bumping revision to a high enough number to make it clear that there's
# no correlation is a valid reason to bump.
# - The revision must be bumped at the same time for both iOS and Mac
# (otherwise the commit distance will differ).
# - Also bump if the [IOS|MAC]_PACKAGE_VERSION lines change for any other
# reason (otherwise we end up with repeating version numbers, since the
# commit distance would restart at 0, while the other numbers wouldn't
# change).
# - Any other problem can also usually be solved by bumping the revision.
# - Do not refactor the revision to a separate variable, because the reason
# bumping the revision is a general solution for many problems is that it
# also resets the commit distance (which wouldn't happen if the revision was
# refactored to a separate variable).
#
# Build (fourth number - max 3 digits):
# - Automatically calculated as the number of commits since the last time any
# of the other three numbers changed (technically since the corresponding
# line changed in git).
#

IOS_PACKAGE_VERSION=17.99.0.$(IOS_COMMIT_DISTANCE)
MAC_PACKAGE_VERSION=9.99.0.$(MAC_COMMIT_DISTANCE)

#
# ** NuGet package version numbers **
#
Expand All @@ -63,8 +21,6 @@ MAC_PACKAGE_VERSION=9.99.0.$(MAC_COMMIT_DISTANCE)
# IMPORTANT: There must be *no* managed API differences unless the two first
# numbers (major.minor) changes.

# WARNING: Do **not** use versions higher than the available Xcode SDK or else we will have issues with mtouch (See https://github.com/xamarin/xamarin-macios/issues/7705)

IOS_NUGET_OS_VERSION=18.2
TVOS_NUGET_OS_VERSION=18.2
MACOS_NUGET_OS_VERSION=15.2
Expand Down
15 changes: 0 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,6 @@ world: check-system

.PHONY: check-system
check-system:
ifdef INCLUDE_MAC
ifdef INCLUDE_IOS
@if [[ "x$(IOS_COMMIT_DISTANCE)" != "x$(MAC_COMMIT_DISTANCE)" ]]; then \
echo "$(COLOR_RED)*** The commit distance for Xamarin.iOS ($(IOS_COMMIT_DISTANCE)) and Xamarin.Mac ($(MAC_COMMIT_DISTANCE)) are different.$(COLOR_CLEAR)"; \
echo "$(COLOR_RED)*** To fix this problem, bump the revision (the third number) for both $(COLOR_GRAY)IOS_PACKAGE_NUMBER$(COLOR_RED) and $(COLOR_GRAY)MAC_PACKAGE_NUMBER$(COLOR_RED) in Make.versions.$(COLOR_CLEAR)"; \
echo "$(COLOR_RED)*** Once fixed, you need to commit the changes for them to pass this check.$(COLOR_CLEAR)"; \
exit 1; \
elif (( $(IOS_COMMIT_DISTANCE) > 999 || $(MAC_COMMIT_DISTANCE) > 999 )); then \
echo "$(COLOR_RED)*** The commit distance for Xamarin.iOS ($(IOS_COMMIT_DISTANCE)) and/or Xamarin.Mac ($(MAC_COMMIT_DISTANCE)) are > 999.$(COLOR_CLEAR)"; \
echo "$(COLOR_RED)*** To fix this problem, bump the revision (the third number) for both $(COLOR_GRAY)IOS_PACKAGE_NUMBER$(COLOR_RED) and $(COLOR_GRAY)MAC_PACKAGE_NUMBER$(COLOR_RED) in Make.versions.$(COLOR_CLEAR)"; \
echo "$(COLOR_RED)*** Once fixed, you need to commit the changes for them to pass this check.$(COLOR_CLEAR)"; \
exit 1; \
fi
endif
endif
@./system-dependencies.sh
$(Q) $(MAKE) show-versions

Expand Down
3 changes: 0 additions & 3 deletions create-make-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ LANG=C
export LANG

# Compute commit distances
printf "IOS_COMMIT_DISTANCE:=$(git log $(git blame -- ./Make.versions HEAD | grep IOS_PACKAGE_VERSION= | sed 's/ .*//' )..HEAD --oneline | wc -l | sed 's/ //g')\n" >> "$OUTPUT_FILE"
printf "MAC_COMMIT_DISTANCE:=$(git log $(git blame -- ./Make.versions HEAD | grep MAC_PACKAGE_VERSION= | sed 's/ .*//' )..HEAD --oneline | wc -l | sed 's/ //g')\n" >> "$OUTPUT_FILE"

for platform in $ALL_DOTNET_PLATFORMS; do
PLATFORM=$(echo "$platform" | tr '[:lower:]' '[:upper:]')
COMMIT=$(git blame -- ./Make.versions HEAD | grep "${PLATFORM}_NUGET_OS_VERSION=" | sed 's/ .*//')
Expand Down
51 changes: 35 additions & 16 deletions docs/api/UIKit/UIAlertView.xml
Original file line number Diff line number Diff line change
@@ -1,36 +1,55 @@
<Documentation>
<Docs DocId="T:UIKit.UIAlertView">
<summary>A <see cref="T:UIKit.UIView" /> that displays a dialog message with one or more buttons. (As of iOS 8, devs should use <see cref="T:UIKit.UIAlertController" /> rather than this class.)</summary>
<summary>
A <see cref="UIView" /> that displays a dialog message with one or more buttons.
(As of iOS 8, devs should use <see cref="UIAlertController" /> rather than this class.)
</summary>
<remarks>
<para>As of iOS 8, app devs should use <see cref="T:UIKit.UIAlertController" /> rather than this class. Extensions may not use this class at all.</para>
<para>
The <see cref="T:UIKit.UIAlertView" /> allows the application user to choose among alternative actions. The following code and image, taken from the "AlertViews" section of the "ios Standard Controls" sample illustrates the simplest use-case:
As of iOS 8, app devs should use <see cref="UIAlertController" /> rather than this class.
Extensions may not use this class at all.
</para>
<para>
The <see cref="UIAlertView" /> allows the application user to choose among alternative actions.
The following code and image, taken from the "AlertViews" section of the "ios Standard Controls"
sample illustrates the simplest use-case:
</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
UIAlertView alert = new UIAlertView () {
Title = "alert title", Message = "this is a simple alert"
var alert = new UIAlertView () {
Title = "alert title",
Message = "this is a simple alert"
};
alert.AddButton("OK");
alert.AddButton ("OK");
alert.Show ();
]]></code>
</example>
<para>
<img href="~/UIKit/_images/UIKit.UIAlertView.png" alt="Screenshot showing the alert view" />
An alternative to the <see cref="UIAlertView" /> is the <see cref="UIActionSheet" />.
</para>
<para>An alternative to the <see cref="T:UIKit.UIAlertView" /> is the <see cref="T:UIKit.UIActionSheet" />.</para>
<para>The application developer can use <see cref="T:UIKit.UIAlertViewStyle" />s such as <see cref="F:UIKit.UIAlertViewStyle.PlainTextInput" /> or <see cref="F:UIKit.UIAlertViewStyle.LoginAndPasswordInput" /> to allow the application user to enter values.</para>
<para>
The Xamarin API supports two styles of event notification: the Objective-C style that uses a delegate class or the C# style using event notifications.
</para>
The application developer can use <see cref="UIAlertViewStyle" />s such as <see cref="UIAlertViewStyle.PlainTextInput" />
or <see cref="UIAlertViewStyle.LoginAndPasswordInput" /> to allow the application user to enter values.
</para>
<para>
The managed API supports two styles of event notification: the Objective-C style that uses a delegate class or the C# style using event notifications.
</para>
<para>
The C# style allows the user to add or remove event handlers at runtime by assigning to the events of properties of this class. Event handlers can be anyone of a method, an anonymous methods or a lambda expression. Using the C# style events or properties will override any manual settings to the Objective-C Delegate or WeakDelegate settings.
</para>
<para>The Objective-C style requires the user to create a new class derived from <see cref="T:UIKit.UIAlertViewDelegate" /> class and assign it to the <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=UIKit%20Delegate&amp;scope=Xamarin" title="P:UIKit.Delegate">P:UIKit.Delegate</a></format> property. Alternatively, for low-level control, by creating a class derived from <see cref="T:Foundation.NSObject" /> which has every entry point properly decorated with an [Export] attribute. The instance of this object can then be assigned to the <see cref="P:UIKit.UIAlertView.WeakDelegate" /> property.
The C# style allows the user to add or remove event handlers at runtime by assigning to the
events of properties of this class. Event handlers can be anyone of a method, an anonymous method
or a lambda expression. Using the C# style events or properties will override any manual settings
to the Objective-C Delegate or WeakDelegate settings.
</para>
<block subset="none" type="overrides">
<para>
The Objective-C style requires the user to create a new class derived from <see cref="UIAlertViewDelegate" />
class and assign it to the <see cref="Delegate" /> property. Alternatively, for low-level control, by creating
a class derived from <see cref="NSObject" /> which has every entry point properly decorated with an
<see cref="ExportAttribute" /> attribute and assigning an instance of this class to the <see cref="WeakDelegate" />
property.
</para>
<para>
<para>This class should not be subclassed.</para>
</block>
</para>
</remarks>
<related type="externalDocumentation" href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertView_Class/index.html">Apple documentation for <c>UIAlertView</c></related>
</Docs>
Expand Down
Loading
Loading