rhymelph / r_scan

📷🖨Flutter二维码&条形码扫描插件,支持相机、文件、链接、Uint8List类型扫描
https://juejin.im/post/5dd8efb1e51d452314438515
BSD 3-Clause "New" or "Revised" License
119 stars 79 forks source link

Some input files use or override a deprecated API #46

Closed Sheharyar566 closed 3 years ago

Sheharyar566 commented 3 years ago

I'm getting this warning while trying to run the app.

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

This issue only occured when I tried running the app after installing this package.

rhymelph commented 3 years ago

You can add this to your build.gradle

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