Skip to content

Commit

Permalink
[CoreLocationUI] Add new framework for Xcode13 beta1. (#11979)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel-macaque authored Jun 21, 2021
1 parent 6b78a86 commit c778e6b
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 13 deletions.
49 changes: 49 additions & 0 deletions src/corelocationui.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
using CoreGraphics;
using ObjCRuntime;
using Foundation;
using UIKit;

using System;

namespace CoreLocationUI {

[NoTV, NoMac, NoWatch, iOS (15,0), MacCatalyst (15,0)]
[Native]
public enum CLLocationButtonIcon : long {
None = 0,
ArrowFilled,
ArrowOutline,
}

[NoTV, NoMac, NoWatch, iOS (15,0), MacCatalyst (15,0)]
[Native]
public enum CLLocationButtonLabel : long {
None = 0,
CurrentLocation,
SendCurrentLocation,
SendMyCurrentLocation,
ShareCurrentLocation,
ShareMyCurrentLocation,
}

[NoTV, NoMac, NoWatch, iOS (15,0), MacCatalyst (15,0)]
[BaseType (typeof (UIControl))]
interface CLLocationButton : NSSecureCoding {

[Export ("initWithFrame:")]
[DesignatedInitializer]
IntPtr Constructor (CGRect frame);

[Export ("icon", ArgumentSemantic.Assign)]
CLLocationButtonIcon Icon { get; set; }

[Export ("label", ArgumentSemantic.Assign)]
CLLocationButtonLabel Label { get; set; }

[Export ("fontSize")]
nfloat FontSize { get; set; }

[Export ("cornerRadius")]
nfloat CornerRadius { get; set; }
}
}
1 change: 1 addition & 0 deletions src/frameworks.sources
Original file line number Diff line number Diff line change
Expand Up @@ -2034,6 +2034,7 @@ IOS_FRAMEWORKS = \
CoreHaptics \
CoreImage \
CoreLocation \
CoreLocationUI \
CoreMIDI \
CoreMotion \
CoreNFC \
Expand Down
1 change: 1 addition & 0 deletions tests/mtouch/RegistrarTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ public void MT4134 ()
new { Framework = "BackgroundTasks", Version = "13.0" },
new { Framework = "QuickLookThumbnailing", Version = "13.0" },
new { Framework = "AutomaticAssessmentConfiguration", Version = "13.4" },
new { Framework = "CoreLocationUI", Version = "15.0" },
};
foreach (var framework in invalidFrameworks)
mtouch.AssertError (4134, $"Your application is using the '{framework.Framework}' framework, which isn't included in the iOS SDK you're using to build your app (this framework was introduced in iOS {framework.Version}, while you're building with the iOS {mtouch.Sdk} SDK.) Please select a newer SDK in your app's iOS Build options.");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# no need to be added
!missing-field! CoreLocationUIVersionNumber not bound
!missing-field! CoreLocationUIVersionString not bound
13 changes: 0 additions & 13 deletions tests/xtro-sharpie/iOS-CoreLocationUI.todo

This file was deleted.

3 changes: 3 additions & 0 deletions tools/common/Frameworks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ public static Frameworks CreateiOSFrameworks (bool is_simulator_build)

{ "AdServices", "AdServices", 14,3 },

{ "CoreLocationUI", "CoreLocationUI", 15,0 },

// the above MUST be kept in sync with simlauncher
// see tools/mtouch/Makefile
// please also keep it sorted to ease comparison
Expand Down Expand Up @@ -484,6 +486,7 @@ public static Frameworks GetwatchOSFrameworks (bool is_simulator_build)

{ "Accessibility", "Accessibility", 7,0 },
{ "UniformTypeIdentifiers", "UniformTypeIdentifiers", 7,0 },

};
}
return watch_frameworks;
Expand Down
2 changes: 2 additions & 0 deletions tools/mtouch/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ SIMLAUNCHER_FRAMEWORKS = \
-weak_framework NearbyInteraction \
\
-weak_framework AdServices \
\
-weak_framework CoreLocationUI \

# keep the above list of weak_framework
# 1. grouped by iOS versions;
Expand Down

8 comments on commit c778e6b

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ [CI Build] Tests passed on Build. ✅

Tests passed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

Packages generated

View packages

🎉 All 221 tests passed 🎉

Pipeline on Agent XAMBOT-1038.BigSur'
[CoreLocationUI] Add new framework for Xcode13 beta1. (#11979)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 Tests failed catastrophically on VSTS: device tests tvOS 🔥

Not enough free space in the host.

Pipeline on Agent
[CoreLocationUI] Add new framework for Xcode13 beta1. (#11979)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Tests were not ran (VSTS: device tests tvOS). ⚠️

Results were skipped for this run due to provisioning problems Azure Devops. Please contact the bot administrator.

Pipeline on Agent
[CoreLocationUI] Add new framework for Xcode13 beta1. (#11979)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Tests were not ran (VSTS: device tests iOS). ⚠️

Results were skipped for this run due to provisioning problems Azure Devops. Please contact the bot administrator.

Pipeline on Agent
[CoreLocationUI] Add new framework for Xcode13 beta1. (#11979)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Tests passed on macOS Mac Catalina (10.15) ✅

Tests passed

All tests on macOS X Mac Catalina (10.15) passed.

Pipeline on Agent
[CoreLocationUI] Add new framework for Xcode13 beta1. (#11979)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Tests passed on macOS Mac Mojave (10.14) ✅

Tests passed

All tests on macOS X Mac Mojave (10.14) passed.

Pipeline on Agent
[CoreLocationUI] Add new framework for Xcode13 beta1. (#11979)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Tests passed on macOS Mac High Sierra (10.13) ✅

Tests passed

All tests on macOS X Mac High Sierra (10.13) passed.

Pipeline on Agent
[CoreLocationUI] Add new framework for Xcode13 beta1. (#11979)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Tests were not ran (VSTS: device tests iOS32b). ⚠️

Results were skipped for this run due to provisioning problems Azure Devops. Please contact the bot administrator.

Pipeline on Agent
[CoreLocationUI] Add new framework for Xcode13 beta1. (#11979)

Please sign in to comment.