Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Switch to local_auth_darwin
  • Loading branch information
stuartmorgan-g committed Feb 12, 2024
commit fa5aca02ae57d0e3c942a3a99751dc072450c2ed
3 changes: 3 additions & 0 deletions packages/local_auth/local_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## NEXT

* Switches endorsed iOS implementation to `local_auth_darwin`.
* Clients directly importing `local_auth_ios` for auth strings should switch
dependencies and imports to `local_auth_darwin`. No other change is necessary.
* Updates support matrix in README to indicate that iOS 11 is no longer supported.
* Clients on versions of Flutter that still support iOS 11 can continue to use this
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed this because it no longer makes sense; with 3.16.6 as the minimum, nobody supporting iOS 11 can use this version of local_auth anyway.

package with iOS 11, but will not receive any further updates to the iOS implementation.
Expand Down
4 changes: 2 additions & 2 deletions packages/local_auth/local_auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ instance, to customize Android and iOS:
<?code-excerpt "readme_excerpts.dart (CustomMessages)"?>
```dart
import 'package:local_auth_android/local_auth_android.dart';
import 'package:local_auth_ios/local_auth_ios.dart';
import 'package:local_auth_darwin/local_auth_darwin.dart';
// ···
final bool didAuthenticate = await auth.authenticate(
localizedReason: 'Please authenticate to show account balance',
Expand Down Expand Up @@ -281,7 +281,7 @@ the Android theme directly in `android/app/src/main/AndroidManifest.xml`:
<activity
...
android:theme="@style/Theme.AppCompat.DayNight"
...
...
>
</activity>
</application>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import 'package:local_auth/local_auth.dart';

// #docregion CustomMessages
import 'package:local_auth_android/local_auth_android.dart';
import 'package:local_auth_ios/local_auth_ios.dart';
import 'package:local_auth_darwin/local_auth_darwin.dart';
// #enddocregion CustomMessages

void main() {
Expand Down
2 changes: 1 addition & 1 deletion packages/local_auth/local_auth/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
# the parent directory to use the current plugin's version.
path: ../
local_auth_android: ^1.0.0
local_auth_ios: ^1.0.1
local_auth_darwin: ^1.2.0

dev_dependencies:
build_runner: ^2.1.10
Expand Down
4 changes: 2 additions & 2 deletions packages/local_auth/local_auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ flutter:
android:
default_package: local_auth_android
ios:
default_package: local_auth_ios
default_package: local_auth_darwin
windows:
default_package: local_auth_windows

dependencies:
flutter:
sdk: flutter
local_auth_android: ^1.0.0
local_auth_ios: ^1.0.1
local_auth_darwin: ^1.2.0
local_auth_platform_interface: ^1.0.1
local_auth_windows: ^1.0.0

Expand Down
2 changes: 1 addition & 1 deletion packages/local_auth/local_auth/test/local_auth_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:local_auth/local_auth.dart';
import 'package:local_auth_android/local_auth_android.dart';
import 'package:local_auth_ios/local_auth_ios.dart';
import 'package:local_auth_darwin/local_auth_darwin.dart';
import 'package:local_auth_platform_interface/local_auth_platform_interface.dart';
import 'package:local_auth_windows/local_auth_windows.dart';
import 'package:mockito/mockito.dart';
Expand Down