diff options
| author | Matej Drobnič | 2025-05-22 23:54:13 +0200 |
|---|---|---|
| committer | GitHub | 2025-05-22 23:54:13 +0200 |
| commit | 97355881a855c5d2503f7e518c1e30fc03f88d4e (patch) | |
| tree | f9abbdb522c1d4dfc478b6716430ef5afdceee0d /build.gradle | |
| parent | a7312054b56ad3bdbc62d03c774b5942db9852e9 (diff) | |
| download | unexpected-keyboard-97355881a855c5d2503f7e518c1e30fc03f88d4e.tar.gz unexpected-keyboard-97355881a855c5d2503f7e518c1e30fc03f88d4e.zip | |
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
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 10 |
1 files changed, 6 insertions, 4 deletions
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 { |
