SaltUI is UI components based on Compose Multiplatform. The 1.0 version is derived from some UI components of Salt Player. Currently, SaltUI is used in Salt Player, Emo Scroll, Qinalt and other App to serve hundreds of thousands of users.
Add dependency:
// Replace <TAG> with the latest version
// e.g. implementation("io.github.moriafly:salt-ui:3.0.0-beta01")
implementation("io.github.moriafly:salt-ui:<TAG>")Simple start:
@Composable
fun App() {
SaltTheme(
configs = saltConfigs()
) {
// ...
}
}See demo: shared.
See: SaltUI Text Description and Translation Standards.
SaltUI performs operations related to internal ART APIs. Please refer to the following solution for publishing on the Google Play platform.
Google Play doesn't allow apps to use hidden APIs, reporting library usage will cause your app to fail app review, you need to disable dependencies info reporting in build.gradle. Remember to update this library to latest version to be compatible with new Android version.
Quoted from AndroidHiddenApiBypass
android { dependenciesInfo { includeInApk = false includeInBundle = false } }
| SaltUI | Compose Multiplatform | Jetpack Compose |
|---|---|---|
| 3.0.0-beta01+ | 1.12.0 | 1.12.0 |
| 3.0.0-alpha02+ | 1.12.0-rc01 | 1.12.0-rc01 |
| 3.0.0-alpha01+ | 1.12.0-alpha01 | 1.12.0-alpha02 |
| 2.9.0-beta02+ | 1.11.0-beta02 | 1.11.0-beta02 |
| 2.9.0-beta01+ | 1.11.0-beta01 | 1.11.0-beta01 |
| 2.9.0-alpha08+ | 1.11.0-alpha04 | 1.11.0-alpha06 |
| 2.9.0-alpha07+ | 1.11.0-alpha03 | 1.11.0-alpha05 |
| 2.9.0-alpha05+ | 1.11.0-alpha02 | 1.11.0-alpha03 |
| 2.9.0-alpha01+ | 1.11.0-alpha01 | 1.11.0-alpha01 |
| 2.8.1+ | 1.10.0-rc02 | 1.10.0 |
| 2.8.0+ | 1.10.0-rc01 | 1.10.0-rc01 |
| 2.8.0-rc02+ | 1.10.0-beta02 | 1.10.0-beta02 |
| 2.8.0-beta01+ | 1.10.0-beta01 | 1.10.0-beta01 |
| 2.8.0-alpha09+ | 1.10.0-alpha03 | 1.10.0-alpha05 |
| 2.8.0-alpha01+ | 1.10.0-alpha02 | 1.10.0-alpha04 |
| 2.7.0-alpha01+ | 1.10.0-alpha01 | 1.10.0-alpha02 |
| 2.6.0-beta02+ | 1.9.0-rc01 | 1.9.0 |
| 2.6.0-beta01+ | 1.9.0-beta03 | 1.9.0-rc01 |
| 2.5.0-alpha05+ | 1.8.2 | 1.8.2 |
| 2.4.0+ | 1.8.0 | 1.8.0 |
| 2.3.1+ | 1.7.3 | 1.7.6 |
| 2.3.0-alpha02+ | 1.7.1 | 1.7.5 |
| 2.2.0+ | 1.7.0 | 1.7.1 |
| 2.2.0-beta01+ | 1.7.0-rc01 | 1.7.0 |
| 2.2.0-alpha01+ | 1.7.0-beta02 | |
| 2.0.7+ | 1.7.0-alpha03 | |
| 2.0.4+ | 1.7.0-alpha02 | |
| < 2.0.4 | 1.6.11 |
See LICENSE.