Skip to content

[loca_auth] LocalAuthPlugin.java uses or overrides a deprecated API. #78137

@nikhilbadyal

Description

@nikhilbadyal

Steps to Reproduce

  1. Use Local Auth with target SDK >= 29 (30 in my case)

My local auth version

local_auth: ^1.1.0

Expected results: There shouldn't be any deprecation error

Actual results: LocalAuthPlugin.java uses or overrides a deprecated API.

After adding to gradle build.

gradle.projectsEvaluated {
        tasks.withType(JavaCompile) {
            options.compilerArgs << "-Xlint:deprecation"
        }
    } 

This is what I got

warning: [deprecation] FingerprintManager in android.hardware.fingerprint has been deprecated
import android.hardware.fingerprint.FingerprintManager;
                                   ^
```myCustomPath```\flutter\.pub-cache\hosted\pub.dartlang.org\local_auth-1.1.0\android\src\main\java\io\flutter\plugins\localauth\LocalAuthPlugin.java:30: warning: [deprecation] Registrar in PluginRegistry has been deprecated
import io.flutter.plugin.common.PluginRegistry.Registrar;
Logs
[√] Flutter (Channel stable, 2.0.2, on Microsoft Windows [Version 10.0.19042.867], locale en-IN)
    • Flutter version 2.0.2 at myCustomPath
    • Framework revision 8962f6dc68 (2 days ago), 2021-03-11 13:22:20 -0800
    • Engine revision 5d8bf811b3
    • Dart version 2.12.1

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at myCustomPath
    • Platform android-S, build-tools 30.0.3
    • ANDROID_HOME =  myCustomPath
    • Java binary at:  myCustomPath
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • CHROME_EXECUTABLE =  myCustomPath

[√] Android Studio (version 4.1.0)
    • Android Studio at myCustomPath
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
    • IntelliJ at  myCustomPath
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.90
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 89.0.774.50

• No issues found!
Process finished with exit code 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectfound in release: 2.0Found to occur in 2.0has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: local_authPlugin for local authentificationpackageflutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions