cordova-plugin-qrscanner icon indicating copy to clipboard operation
cordova-plugin-qrscanner copied to clipboard

Migrate to AndroidX

Open jacobg opened this issue 5 years ago • 2 comments

AndroidX replaces the original support library APIs with packages in the androidx namespace.

Background here: https://developer.android.com/jetpack/androidx/migrate

There is one line of code in cordova-plugin-qrscanner to the old support library API that needs to be replaced: https://github.com/bitpay/cordova-plugin-qrscanner/blob/d54dc34b8c3e62c74ee6c3f4f24210d1bd92beb2/src/android/QRScanner.java#L27

It needs to be changed to:

import androidx.core.app.ActivityCompat;

jacobg avatar Jan 31 '20 13:01 jacobg

Very good but how to permanently fix this row? Every time I execute ionic cap sync the code is rolled back to the original.

devilmark84 avatar Apr 29 '20 00:04 devilmark84

Very good but how to permanently fix this row? Every time I execute ionic cap sync the code is rolled back to the original.

See here https://github.com/bitpay/cordova-plugin-qrscanner/issues/319#issuecomment-651862009

SavageCore avatar Jun 30 '20 15:06 SavageCore