-
Notifications
You must be signed in to change notification settings - Fork 511
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
[CoreLocationUI] Add new framework for Xcode13 beta1. #11979
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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; } | ||
} | ||
} |
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 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -418,6 +418,8 @@ public static Frameworks CreateiOSFrameworks (bool is_simulator_build) | |
|
||
{ "AdServices", "AdServices", 14,3 }, | ||
|
||
{ "CoreLocationUI", "CoreLocationUI", 15,0 }, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When do we do this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When a new framework is added. |
||
|
||
// the above MUST be kept in sync with simlauncher | ||
// see tools/mtouch/Makefile | ||
// please also keep it sorted to ease comparison | ||
|
@@ -484,6 +486,8 @@ public static Frameworks GetwatchOSFrameworks (bool is_simulator_build) | |
|
||
{ "Accessibility", "Accessibility", 7,0 }, | ||
{ "UniformTypeIdentifiers", "UniformTypeIdentifiers", 7,0 }, | ||
|
||
{ "CoreLocationUI", "CoreLocationUI", 8,0 }, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why ? it does not look like it's available for watchOS There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can remove it and add the ignore |
||
}; | ||
} | ||
return watch_frameworks; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,6 +169,8 @@ SIMLAUNCHER_FRAMEWORKS = \ | |
-weak_framework NearbyInteraction \ | ||
\ | ||
-weak_framework AdServices \ | ||
\ | ||
-weak_framework CoreLocationUI \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this for? |
||
|
||
# keep the above list of weak_framework | ||
# 1. grouped by iOS versions; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API_AVAILABLE(ios(15.0),watchos(8.0))
I guess it's not in the watchOS header ?