From 0cecbc969b471977f520211990ad88ed2aa9eccc Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 16 Jan 2025 16:07:05 +0100 Subject: [PATCH 001/109] Updated target SDK to 35 --- settings.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.gradle b/settings.gradle index d93c363dc61..b22d4ea92f7 100644 --- a/settings.gradle +++ b/settings.gradle @@ -39,7 +39,7 @@ gradle.ext.mediaPickerSourceWordPressBinaryPath = "org.wordpress.mediapicker:sou gradle.ext { compileSdkVersion = 35 - targetSdkVersion = 34 + targetSdkVersion = 35 minSdkVersion = 26 } From c8eaca4f6b54010621d783711f62b529715e1f41 Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 17 Jan 2025 11:03:36 +0100 Subject: [PATCH 002/109] Main activity to look like before - less or more --- WooCommerce/src/main/AndroidManifest.xml | 43 +++++++++++++------ .../android/ui/main/MainActivity.kt | 5 +++ .../ui/main/MainActivityEdgeToEdgeHelper.kt | 28 ++++++++++++ .../src/main/res/values/styles_base.xml | 1 + WooCommerce/src/main/res/values/themes.xml | 4 +- 5 files changed, 65 insertions(+), 16 deletions(-) create mode 100644 WooCommerce/src/main/kotlin/com/woocommerce/android/ui/main/MainActivityEdgeToEdgeHelper.kt diff --git a/WooCommerce/src/main/AndroidManifest.xml b/WooCommerce/src/main/AndroidManifest.xml index f3e73dc44b2..78e92f79d10 100644 --- a/WooCommerce/src/main/AndroidManifest.xml +++ b/WooCommerce/src/main/AndroidManifest.xml @@ -110,7 +110,8 @@ + android:theme="@style/LoginTheme" + android:windowSoftInputMode="adjustResize"> @@ -124,53 +125,67 @@ + android:theme="@style/Theme.Woo.DayNight" + android:windowSoftInputMode="adjustResize" /> + android:theme="@style/Theme.Woo.UnifiedAbout" + android:windowSoftInputMode="adjustResize" /> + android:theme="@style/Theme.Woo.DayNight" + android:windowSoftInputMode="adjustResize" /> + android:theme="@style/Theme.Woo.DayNight" + android:windowSoftInputMode="adjustResize" /> + android:theme="@style/Theme.Woo.DayNight" + android:windowSoftInputMode="adjustResize" /> + android:theme="@style/Theme.Woo.DayNight" + android:windowSoftInputMode="adjustResize" /> + android:theme="@style/Theme.Woo.DayNight.Zendesk" + android:windowSoftInputMode="adjustResize" /> + android:theme="@style/Theme.Woo.DayNight.Zendesk" + android:windowSoftInputMode="adjustResize" /> + android:theme="@style/Theme.Woo.DayNight.Zendesk" + android:windowSoftInputMode="adjustResize" /> + android:theme="@style/Theme.Woo.DayNight.Zendesk" + android:windowSoftInputMode="adjustResize" /> + android:theme="@style/Theme.Woo.DayNight" + android:windowSoftInputMode="adjustResize" /> + android:windowSoftInputMode="adjustResize" /> + android:theme="@style/Theme.WooPos.Transparent" + android:windowSoftInputMode="adjustResize" /> + val innerPadding = insets.getInsets( + WindowInsetsCompat.Type.systemBars() + or WindowInsetsCompat.Type.displayCutout() + ) + v.setPadding(0, innerPadding.top, 0, 0) + insets + } + } +} diff --git a/WooCommerce/src/main/res/values/styles_base.xml b/WooCommerce/src/main/res/values/styles_base.xml index cde73b4e00d..4f8dc66ecc9 100644 --- a/WooCommerce/src/main/res/values/styles_base.xml +++ b/WooCommerce/src/main/res/values/styles_base.xml @@ -34,6 +34,7 @@ theme across the entire app. Overridden versions should be added to the styles.x - -