From 97355881a855c5d2503f7e518c1e30fc03f88d4e Mon Sep 17 00:00:00 2001 From: Matej Drobnič Date: Thu, 22 May 2025 23:54:13 +0200 Subject: Better support for foldable devices (#982) * Add AndroidX WindowManager unfortunately, this seems to be the only way to get fold state, native Android APIs are internal. To add this, we need to update some dependencies, raise java version and raise compile SDK. * adds separate layouts and separate layout settings for folded and unfolded state of the device. The affected settings are: + the margin bottom settings + the horizontal margin settings + the keyboard height settings * Update shell.nix --- build.gradle | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index b6f0b51..2f83e36 100644 --- a/build.gradle +++ b/build.gradle @@ -1,14 +1,16 @@ plugins { - id 'com.android.application' version '8.1.1' + id 'com.android.application' version '8.6.0' } dependencies { + implementation "androidx.window:window-java:1.3.0" + implementation "androidx.core:core:1.16.0" testImplementation "junit:junit:4.13.2" } android { namespace 'juloo.keyboard2' - compileSdk 34 + compileSdk 35 defaultConfig { applicationId "juloo.keyboard2" @@ -82,8 +84,8 @@ android { } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_7 - targetCompatibility JavaVersion.VERSION_1_7 + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 } lintOptions { -- cgit v1.2.3