kmp-library
Guidelines and reference documentation for the SweetMeSoft KMP Library (KMPBase, KMPControls, and KMPMaps) in the Kotlin Multiplatform mobile application.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guidelines and reference documentation for the SweetMeSoft KMP Library (KMPBase, KMPControls, and KMPMaps) in the Kotlin Multiplatform mobile application.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | kmp-library |
| description | Guidelines and reference documentation for the SweetMeSoft KMP Library (KMPBase, KMPControls, and KMPMaps) in the Kotlin Multiplatform mobile application. |
This document provides the high-level capabilities of the SweetMeSoft KMP Library modules (KMPBase, KMPControls, and KMPMaps) and serves as the central directory mapping to detailed guides and references in the same folder.
To maintain architectural consistency across projects using this library, you must follow these rules:
Navigator). Set BaseViewModel.navigator = navigator to enable ViewModel-based routing.AppTheme to apply unified design colors and shapes.BaseScreen (standard pages), BaseBottomBarScreen (tab layouts), BaseDrawerScreen (drawer layouts), or BaseBottomSheetScreen (bottom sheets).BaseViewModel to utilize integrated permissions handlers and global loading state bindings.MainActivity inside onCreate by calling initSweetMeSoft(this) before setting Compose content.NetworkUtils (get / post / etc) to support global progress overlays and status dialog bindings.Use the links below to access the step-by-step guides on how to install, set up, and implement features using this library:
Provides the foundational architecture, standard page frames, alerts, list adapters, and native platform helpers.
BaseScreen: Primary page wrapper with built-in toolbar, loading states, dialog hooks, and FAB binds.BaseBottomBarScreen: Screen scaffolding managing tab navigation bars.BaseDrawerScreen: Screen scaffolding managing collapsible side navigation drawers.BaseBottomSheetScreen: Wrapper layout displaying screen views inside overlay bottom sheets.PopupHandler): Programmatic controller to trigger alerts, verification dialogs, progress bars, and screen loading blocks from view models.LocalList / LocalGridList: Local collection rendering container with title and quick-add actions.RemoteList / RemoteGridList: Automatic remote data fetching list with loading overlays, swipe-to-refresh, and paging adapters.LocalDropDown / RemoteDropDown: Filtered selection menus.CalculatorPopup: Interactive popup dialog calculator.MoreControl: Standard vertical three-dot action dropdown menus.PlatformUtils: Checks platform type (Android vs iOS), fetches package bundle version, and opens native App Store pages.DateUtils: LocalDateTime additions for calculations and formatting.ImageUtils: Platform-native rotation, resizing, and base64 parsing.FileUtils: Native file sharing mechanism utilizing system share sheets.NumberUtils: Locale currency conversion and angle unit conversions.StringUtils: Guid/email formats validation.System UI: Direct composition helpers to set navigation bar and status bar colors.Provides advanced inputs, calendar picker components, and custom dialog overlays.
DatePicker: Outlined text input wrapping calendar dialog overlays.TimePicker: Outlined text input wrapping clock dialog overlays.DateTimePicker: Sequential date and time inputs.DoublePicker: Clean numeric input for double values.CalendarDialog: Standalone compose calendar widget.ClockDialog: Standalone compose clock selector widget.PasswordControl: Outlined password text field with haptic toggle visibility actions.SearchControl: Custom query input field with search triggers.ClickableOutlinedTextField: Interactive outlines field that blocks keyboard overlays, useful for routing clicks to sheets/dialogs.AutoCompleteTextField: Autocomplete search field showing a filtered dropdown list of suggestions.TermsAndConditions: Policy disclaimer container with highlight clickable link routes.Vibrator): Trigger haptic feedback engines.Unified layout map wrapper rendering Apple MapKit on iOS and Google Maps on Android.
GeoPosition: Pin location marker wrappers.MarkerMap: Customizable map markers with address descriptions, haptic click events, and info windows.RouteMap: Polyline drawing layers.CircleMap: Circular boundary layers.