Skip to content

Multiple depreciation warnings #228

@pawelel

Description

@pawelel

Problem summary

Multiple depreciation warnings

Steps to reproduce

  1. Build android project under Flutter 3.6.0
Pub\Cache\git\flutter_bluetooth_serial-7f66073872f609056666615c1db3b06e34fb8b6c\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:21: warning: [deprecation] AsyncTask in android.os has been deprecated
import android.os.AsyncTask;
                 ^
Pub\Cache\git\flutter_bluetooth_serial-7f66073872f609056666615c1db3b06e34fb8b6c\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:116: warning: [deprecation] <T>getParcelableExtra(String) in Intent has been deprecated
                        final BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
                                                             ^
  where T is a type-variable:
    T extends Parcelable declared in method <T>getParcelableExtra(String)
Pub\Cache\git\flutter_bluetooth_serial-7f66073872f609056666615c1db3b06e34fb8b6c\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:270: warning: [deprecation] <T>getParcelableExtra(String) in Intent has been deprecated
                        final BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
                                                             ^
  where T is a type-variable:
    T extends Parcelable declared in method <T>getParcelableExtra(String)
Pub\Cache\git\flutter_bluetooth_serial-7f66073872f609056666615c1db3b06e34fb8b6c\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:514: warning: [deprecation] AsyncTask in android.os has been deprecated
                    AsyncTask.execute(() -> {
                    ^
Pub\Cache\git\flutter_bluetooth_serial-7f66073872f609056666615c1db3b06e34fb8b6c\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:514: warning: [deprecation] execute(Runnable) in AsyncTask has been deprecated
                    AsyncTask.execute(() -> {
                             ^
Pub\Cache\git\flutter_bluetooth_serial-7f66073872f609056666615c1db3b06e34fb8b6c\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:593: warning: [deprecation] disable() in BluetoothAdapter has been deprecated
                        bluetoothAdapter.disable();
                                        ^
Pub\Cache\git\flutter_bluetooth_serial-7f66073872f609056666615c1db3b06e34fb8b6c\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:831: warning: [deprecation] <T>getParcelableExtra(String) in Intent has been deprecated
                                    final BluetoothDevice someDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
                                                                             ^
  where T is a type-variable:
    T extends Parcelable declared in method <T>getParcelableExtra(String)
Pub\Cache\git\flutter_bluetooth_serial-7f66073872f609056666615c1db3b06e34fb8b6c\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:1005: warning: [deprecation] AsyncTask in android.os has been deprecated
                    AsyncTask.execute(() -> {
                    ^
Pub\Cache\git\flutter_bluetooth_serial-7f66073872f609056666615c1db3b06e34fb8b6c\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:1005: warning: [deprecation] execute(Runnable) in AsyncTask has been deprecated
                    AsyncTask.execute(() -> {
                             ^
Pub\Cache\git\flutter_bluetooth_serial-7f66073872f609056666615c1db3b06e34fb8b6c\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:1039: warning: [deprecation] AsyncTask in android.os has been deprecated
                        AsyncTask.execute(() -> {
                        ^
Pub\Cache\git\flutter_bluetooth_serial-7f66073872f609056666615c1db3b06e34fb8b6c\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:1039: warning: [deprecation] execute(Runnable) in AsyncTask has been deprecated
                        AsyncTask.execute(() -> {
                                 ^
Pub\Cache\git\flutter_bluetooth_serial-7f66073872f609056666615c1db3b06e34fb8b6c\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:1049: warning: [deprecation] AsyncTask in android.os has been deprecated
                        AsyncTask.execute(() -> {
                        ^
Pub\Cache\git\flutter_bluetooth_serial-7f66073872f609056666615c1db3b06e34fb8b6c\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:1049: warning: [deprecation] execute(Runnable) in AsyncTask has been deprecated
                        AsyncTask.execute(() -> {

Environment

Flutter 3.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions