Skip to content
New issue

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

Bump up target API Level to 34 #49

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

private-yusuke
Copy link
Member

概要

closes #47

target API Level を 31 から 34 に上げます。また、それに伴う変更を行います。詳細はコメントを参照。

@private-yusuke private-yusuke self-assigned this Apr 18, 2024
Comment on lines 82 to +92
<service
android:name=".widget.V3MediumWidgetRemoteViewService"
android:exported="false"
android:permission="android.permission.BIND_REMOTEVIEWS" />
android:permission="android.permission.BIND_REMOTEVIEWS"
android:foregroundServiceType="dataSync" />
<!-- 大ウィジットのデータ供給用Service -->
<service
android:name=".widget.V3LargeWidgetRemoteViewService"
android:exported="false"
android:permission="android.permission.BIND_REMOTEVIEWS" />
android:permission="android.permission.BIND_REMOTEVIEWS"
android:foregroundServiceType="dataSync" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 192 to 196
if (
WebViewFeature.isFeatureSupported(WebViewFeature.FORCE_DARK) &&
WebViewFeature.isFeatureSupported(WebViewFeature.FORCE_DARK_STRATEGY)
WebViewFeature.isFeatureSupported(WebViewFeature.ALGORITHMIC_DARKENING)
) {
when (resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) {
// ダークモードサポートだったら
Configuration.UI_MODE_NIGHT_YES -> {
// ダークモード有効
WebSettingsCompat.setForceDark(settings, WebSettingsCompat.FORCE_DARK_ON)
// ダークモードのスタイリングはページが行う
WebSettingsCompat.setForceDarkStrategy(
settings,
WebSettingsCompat.DARK_STRATEGY_WEB_THEME_DARKENING_ONLY,
)
}
Configuration.UI_MODE_NIGHT_NO, Configuration.UI_MODE_NIGHT_UNDEFINED -> {
WebSettingsCompat.setForceDark(settings, WebSettingsCompat.FORCE_DARK_OFF)
}
}
WebSettingsCompat.setAlgorithmicDarkeningAllowed(settings, true)
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines -13 to +14
android:layout_height="match_parent"/>
android:layout_height="match_parent"
android:theme="@style/Theme.AppCompat.DayNight" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@private-yusuke private-yusuke merged commit 3f3ca0a into master Apr 18, 2024
3 checks passed
@private-yusuke private-yusuke deleted the migrate-target-api-level-to-34 branch April 18, 2024 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

target API level を 33 以上にする
1 participant