camera-preview
camera-preview copied to clipboard
BUG: Compile on Android, plugin uses web implementation if gradle minifyEnabled is true
Hi, I'm using Ionic 5 Angular with Capacitor.
"@angular/core": "~11.2.0",
"@ionic/angular": "^5.5.2",
"@ionic-native/core": "^5.31.1",
"@capacitor-community/barcode-scanner": "^1.2.1",
"@capacitor-community/camera-preview": "^2.0.0-beta.0",
"@capacitor/android": "^2.4.6",
"@capacitor/core": "2.4.6",
Smartphone (please complete the following information):
- Device: Xiaomi Mi A1
- OS: Android 9
On Android, when I compile with minifyEnable to true, the plugin uses the web implementation on my phone (so no flash and no flip), here a part of my build.gradle (of the folder app):
android {
buildTypes {
release {
minifyEnabled true
}
}
}
If I set minifyEnable to false, the plugin uses the native implementation.
Why does this happen?