mattermost-mobile-upstream/app/keyboard/constants.ts
Carlos Garcia f2857a97d1
Mm 67525 bump min version (#9640)
* bumps minSdkVersion to 30

Older versions are past end-of-life for security patches. voximplant service patch is also updated with minSdkVersion set to 30.

* removes manifest attributes no longer needed when minSdk is 30

* removes guard to for version lower than O

* removes permission check for versions lower than 28

* remove tests related to unsupported android sdk versions

* bumps iOS minSdkVersion to 18

* removes iOS 13/15 guards in hardware-keyboard

* removes iOS 15 guards in NotificationService

* removes iOS 15 guard in Gekidou network delegate

since gekidou is iOS only other platform guards are not needed

* removes version guard no longer needed in voximplant patch

* removes hasWriteStoragePermission dead stub and its call site

* removes unused setSoftKeyboardToAdjustResize from rnutils

The function had no call sites in JS/TS code and the iOS implementation
was a no-op.

* removes version guards and updates config after min version bump

* updates stale iOS 17 simulator references in CI to iOS 18.1

Co-Authored-By: Carlos Garcia <carlos.garcia@mattermost.com>

* fixes malformed patch file headers

- voximplant patch: restore missing diff --git header and index line
  for VIForegroundServiceModule.java, fix stale hunk counter (+11 -> +7)
- notifications patch: fix stale hunk line count (+91 -> +89) after
  KITKAT branch removal

Co-Authored-By: Carlos Garcia <carlos.garcia@mattermost.com>

* remove code below the supported OS versions

* Bump IntuneMAM SDK to 21.8.0 and MSAL to 2.15.0

---------

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2026-09-16 10:53:06 +00:00

34 lines
1.1 KiB
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/**
* Keyboard and emoji picker height constants
*/
// Emoji search bar dimensions
export const SEARCH_BAR_HEIGHT = 56; // paddingTop: 12 + paddingBottom: 12 + search bar ~32px
export const SEARCH_CONTAINER_PADDING = 8; // paddingVertical: 4 * 2
// Emoji search visibility offsets (to ensure search values are visible above keyboard)
export const SEARCH_VISIBILITY_OFFSET = 40;
// Minimal emoji list height (single-line horizontal emoji list for hardware keyboard)
export const MINIMAL_EMOJI_LIST_HEIGHT = 50;
// Animation durations
export const KEYBOARD_TRANSITION_DURATION = 250;
/**
* Default height for the input accessory view when keyboard height is unknown
*/
export const DEFAULT_INPUT_ACCESSORY_HEIGHT = 336;
/**
* Smallest height that counts as a real software keyboard.
*
* With a hardware keyboard attached the OS still reports its input strip (~48px on
* Android, holding the dismiss/switch-keyboard controls), so anything at or below
* this is a strip rather than a keyboard.
*/
export const MIN_SOFTWARE_KEYBOARD_HEIGHT = 75;