Plugin version:
1.0.1
Platform(s):
Android
Current behavior:
Gradle build fails because a constant is not recognized
Expected behavior:
It should build
Steps to reproduce:
Try to build the app
Related code:
if (WebViewFeature.isFeatureSupported(WebViewFeature.FORCE_DARK_STRATEGY)) {
WebSettingsCompat.setForceDarkStrategy(settings, WebSettingsCompat.WEB_THEME_DARKENING_ONLY);
}
Other information:
Error log:
WebSettingsCompat.setForceDarkStrategy(settings, WebSettingsCompat.WEB_THEME_DARKENING_ONLY);
^
symbol: variable WEB_THEME_DARKENING_ONLY
location: class WebSettingsCompat
I think it might be replaced with
if (WebViewFeature.isFeatureSupported(WebViewFeature.FORCE_DARK_STRATEGY)) {
WebSettingsCompat.setForceDarkStrategy(settings, WebSettingsCompat.DARK_STRATEGY_WEB_THEME_DARKENING_ONLY);
}
Capacitor doctor:
π Capacitor Doctor π
Latest Dependencies:
@capacitor/cli: 4.3.0
@capacitor/core: 4.3.0
@capacitor/android: 4.3.0
@capacitor/ios: 4.3.0
Installed Dependencies:
@capacitor/cli: 4.0.1
@capacitor/android: 4.0.0
@capacitor/core: 4.0.0
@capacitor/ios: 4.0.1
[success] iOS looking great! π
[success] Android looking great! π
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too