Skip to content

Commit 316d8d1

Browse files
authored
Merge branch 'main' into dev/mcumming/merge-mtouch-dialog
2 parents 4112f25 + b34595e commit 316d8d1

File tree

15 files changed

+71
-7
lines changed

15 files changed

+71
-7
lines changed

Make.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,10 @@ MACOS_X64_SWIFTFLAGS=$(MACOS_COMMON_SWIFTFLAGS) -target x86_64-apple-macos$(MIN_
500500
# things in other places if they absolutely must.
501501
MONO_PATH=$(TOP)/external/mono
502502
XAMARIN_MACDEV_PATH=$(TOP)/external/Xamarin.MacDev
503+
MONOTOUCH_DIALOG_PATH=$(TOP)/external/MonoTouch.Dialog
504+
API_TOOLS_PATH=$(TOP)/external/api-tools
503505
MACCORE_PATH=$(TOP)/../maccore
504-
506+
ADR_PATH=$(TOP)/../macios-adr
505507

506508
MONO_PREFIX ?= /Library/Frameworks/Mono.framework/Versions/Current
507509
SYSTEM_MCS=$(MONO_PREFIX)/bin/mcs

mk/xamarin-reset.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ if [[ $DEPENDENCY_MODULE =~ git@github.com ]]; then
99
# git@ url
1010
DEPENDENCY_REMOTE=${DEPENDENCY_MODULE/git@github.com:/}
1111
DEPENDENCY_REMOTE=${DEPENDENCY_REMOTE%%/*}
12-
else
12+
elif [[ $DEPENDENCY_MODULE =~ https://github.com ]]; then
1313
# https:// url
1414
DEPENDENCY_REMOTE=${DEPENDENCY_MODULE/https:\/\/github.com\//}
1515
DEPENDENCY_REMOTE=${DEPENDENCY_REMOTE%%/*}
16+
elif [[ $DEPENDENCY_MODULE =~ devdiv@dev.azure.com ]]; then
17+
DEPENDENCY_REMOTE=${DEPENDENCY_MODULE/https:\/\/devdiv@dev.azure.com\/devdiv\/}
18+
DEPENDENCY_REMOTE=${DEPENDENCY_REMOTE%%/_git*}
1619
fi
1720

1821
if test -d "$DEPENDENCY_PATH"; then

mk/xamarin.mk

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,22 @@ MONO_BRANCH := $(shell cd $(MONO_PATH) 2> /dev/null && git symbolic-ref --sho
77
endif
88

99
ifdef ENABLE_XAMARIN
10-
NEEDED_MACCORE_VERSION := 4ebacfa6fcb3737c9fcdd516501fc95582928fbe
10+
NEEDED_MACCORE_VERSION := 5805eb9adacd8f2aeb2852ffbc78b24fb4a43866
1111
NEEDED_MACCORE_BRANCH := main
1212

1313
MACCORE_DIRECTORY := maccore
1414
MACCORE_MODULE := git@github.com:xamarin/maccore.git
1515
MACCORE_VERSION := $(shell cd $(MACCORE_PATH) 2> /dev/null && git rev-parse HEAD 2> /dev/null)
1616
MACCORE_BRANCH := $(shell cd $(MACCORE_PATH) 2> /dev/null && git symbolic-ref --short HEAD 2> /dev/null)
17+
18+
19+
NEEDED_ADR_VERSION := d466eac70a9b1bba94c18c63e34e590c66f6d044
20+
NEEDED_ADR_BRANCH := main
21+
22+
ADR_DIRECTORY := macios-adr
23+
ADR_MODULE := https://devdiv@dev.azure.com/devdiv/DevDiv/_git/macios-adr
24+
ADR_VERSION := $(shell cd $(ADR_PATH) 2> /dev/null && git rev-parse HEAD 2> /dev/null)
25+
ADR_BRANCH := $(shell cd $(ADR_PATH) 2> /dev/null && git symbolic-ref --short HEAD 2> /dev/null)
1726
endif
1827

1928
# Available versions can be seen here:
@@ -103,5 +112,10 @@ $(MACCORE_PATH):
103112
$(Q) git clone --recursive $(MACCORE_MODULE) $(MACCORE_PATH)
104113
$(Q) $(MAKE) reset-maccore
105114

115+
$(ADR_PATH):
116+
$(Q) git clone --recursive $(ADR_MODULE) $(ADR_PATH)
117+
$(Q) $(MAKE) reset-adr
118+
106119
$(eval $(call CheckVersionTemplate,maccore,MACCORE))
120+
$(eval $(call CheckVersionTemplate,macios-adr,ADR))
107121
endif

src/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,16 +408,16 @@ $(DOTNET_DESTDIR)/$($(2)_NUGET_REF_NAME)/ref/$(DOTNET_TFM)/Microsoft.$(1).xml: $
408408

409409
$($(2)_DOTNET_BUILD_DIR)/doc/Microsoft.$(1).xml: $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).xml $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).dll build/.build-adr-stamp | $($(2)_DOTNET_BUILD_DIR)/doc
410410
ifdef ENABLE_XAMARIN
411-
$(Q) $(MAKE) run -C $(MACCORE_PATH)/tools/apple-doc-reader ASSEMBLY="$(abspath $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).dll)" INPUT="$(abspath $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).xml)" OUTPUT="$(abspath $$@)"
411+
$(Q) $(MAKE) run -C $(ADR_PATH) ASSEMBLY="$(abspath $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).dll)" INPUT="$(abspath $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).xml)" OUTPUT="$(abspath $$@)"
412412
else
413413
$$(Q) $$(CP) $($(2)_DOTNET_BUILD_DIR)/ref/Microsoft.$(1).xml $$@
414414
endif
415415
endef
416416

417417
build/.build-adr-stamp:
418418
ifdef ENABLE_XAMARIN
419-
$(Q) $(MAKE) build -C $(MACCORE_PATH)/tools/apple-doc-reader
420-
$(Q) $(MAKE) create -C $(MACCORE_PATH)/tools/apple-doc-reader
419+
$(Q) $(MAKE) build -C $(ADR_PATH)
420+
$(Q) $(MAKE) create -C $(ADR_PATH)
421421
endif
422422
$(Q) touch $@
423423

tests/monotouch-test/SystemConfiguration/NetworkReachabilityTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public void CtorNameAddress ()
3131
NetworkReachabilityFlags flags;
3232

3333
Assert.IsTrue (nr.TryGetFlags (out flags));
34+
flags &= ~NetworkReachabilityFlags.TransientConnection; // Remove the TransientConnection flag if it's set
3435
Assert.That (flags, Is.EqualTo (NetworkReachabilityFlags.Reachable), "Reachable");
3536
}
3637
}

tests/rgen/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ build-generator-tests:
1717
run-generator-tests:
1818
$(Q) $(DOTNET) test Microsoft.Macios.Generator.Tests/Microsoft.Macios.Generator.Tests.csproj $(TEST_FILTER)
1919

20-
build-all: build-bindings-analyzer-tests build-generator-tests
20+
build build-all: build-bindings-analyzer-tests build-generator-tests
2121

2222
run-tests run test: run-bindings-analyzer-tests run-generator-tests

tools/devops/automation/build-pipeline.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ resources:
150150
ref: refs/heads/main
151151
endpoint: xamarin
152152

153+
- repository: macios-adr
154+
type: git
155+
name: macios-adr
156+
ref: refs/heads/main
157+
153158
- repository: CustomPipelineTemplates
154159
type: git
155160
name: 1ESPipelineTemplates/MicroBuildTemplate
@@ -220,6 +225,7 @@ extends:
220225
exclude:
221226
- repository: yaml-templates
222227
- repository: sdk-insertions
228+
- repository: macios-adr # macios-adr has it's own build pipeline and should not be included in the source analysis
223229
stages:
224230
- template: templates/main-stage.yml
225231
parameters:

tools/devops/automation/build-pull-request.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ resources:
141141
ref: refs/heads/main
142142
endpoint: xamarin
143143

144+
- repository: macios-adr
145+
type: git
146+
name: macios-adr
147+
ref: refs/heads/main
148+
144149
- repository: CustomPipelineTemplates
145150
type: git
146151
name: 1ESPipelineTemplates/MicroBuildTemplate
@@ -205,6 +210,7 @@ extends:
205210
exclude:
206211
- repository: yaml-templates
207212
- repository: sdk-insertions
213+
- repository: macios-adr # macios-adr has it's own build pipeline and should not be included in the source analysis
208214
stages:
209215
- template: templates/main-stage.yml
210216
parameters:

tools/devops/automation/run-post-ci-build-vs-insertion.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ extends:
7676
exclude:
7777
- repository: yaml-templates
7878
- repository: sdk-insertions
79+
- repository: macios-adr # macios-adr has it's own build pipeline and should not be included in the source analysis
7980
stages:
8081
- template: templates/release/vs-insertion-prep.yml
8182
parameters:

tools/devops/automation/templates/common/checkout.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ steps:
3535
persistCredentials: true # hugely important, else there are some scripts that check a single file from maccore that will fail
3636
fetchTags: false
3737

38+
- checkout: macios-adr
39+
clean: true
40+
fetchDepth: 0
41+
persistCredentials: true
42+
fetchTags: false
43+
3844
- checkout: yaml-templates
3945
clean: true
4046
fetchTags: false

0 commit comments

Comments
 (0)