Skip to content

Commit

Permalink
[LocalAuthentication] Added framework to watchOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Israel Soto committed Sep 6, 2022
1 parent 1974c67 commit ab9c247
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/LocalAuthentication/LAEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public enum LAPolicy : long {
[Mac (10,12,2), NoWatch]
DeviceOwnerAuthenticationWithBiometrics = 1,
DeviceOwnerAuthentication = 2,
[NoiOS][Mac (10,15)]
[NoiOS][Mac (10,15)][NoWatch]
DeviceOwnerAuthenticationWithWatch = 3,
[NoiOS][Mac (10,15)]
[NoiOS][Mac (10,15)][NoWatch]
DeviceOwnerAuthenticationWithBiometricsOrWatch = 4,
[Obsolete ("Use DeviceOwnerAuthenticationWithBiometricsOrWatch enum value instead.")]
[NoiOS][Mac (10,15)]
Expand Down
1 change: 1 addition & 0 deletions src/frameworks.sources
Original file line number Diff line number Diff line change
Expand Up @@ -2220,6 +2220,7 @@ WATCHOS_FRAMEWORKS = \
HomeKit \
ImageIO \
Intents \
LocalAuthentication \
MapKit \
MediaPlayer \
MobileCoreServices \
Expand Down
2 changes: 1 addition & 1 deletion src/localauthentication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ interface LAContext {
[NullAllowed, Export ("localizedCancelTitle")]
string LocalizedCancelTitle { get; set; }

[iOS (9,0)][Mac (10,12,4)]
[iOS (9,0)][Mac (10,12,4)][NoWatch]
[Field ("LATouchIDAuthenticationMaximumAllowableReuseDuration")]
double /* NSTimeInterval */ TouchIdAuthenticationMaximumAllowableReuseDuration { get; }

Expand Down
1 change: 1 addition & 0 deletions tools/common/Frameworks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ public static Frameworks GetwatchOSFrameworks (bool is_simulator_build)

{ "DeviceCheck", "DeviceCheck", 9,0 },
{ "CallKit", "CallKit", 9,0 },
{ "LocalAuthentication", "LocalAuthentication", 9,0 },
};
}
return watch_frameworks;
Expand Down

0 comments on commit ab9c247

Please sign in to comment.