We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
capacitor-android-dark-mode-support/android/src/main/java/dev/robingenz/capacitor/androiddarkmodesupport/AndroidDarkModeSupport.java
Line 33 in 93c2635
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! 👌
The text was updated successfully, but these errors were encountered:
This bug is still present however the solution noted in this issue did work
Sorry, something went wrong.
@spencerAEE
See #10, #11, #12 and #13
No branches or pull requests
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:
capacitor-android-dark-mode-support/android/src/main/java/dev/robingenz/capacitor/androiddarkmodesupport/AndroidDarkModeSupport.java
Line 33 in 93c2635
Other information:
Error log:
I think it might be replaced with
Capacitor doctor:
The text was updated successfully, but these errors were encountered: