cordova-plugin-qrscanner
cordova-plugin-qrscanner copied to clipboard
Migrate to AndroidX
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;
Very good but how to permanently fix this row?
Every time I execute ionic cap sync the code is rolled back to the original.
Very good but how to permanently fix this row? Every time I execute
ionic cap syncthe code is rolled back to the original.
See here https://github.com/bitpay/cordova-plugin-qrscanner/issues/319#issuecomment-651862009