baec23 /
ludwig
A collection of UI libraries for Android using Jetpack Compose
63/100 healthLoading repository data…
LouisCAD / repository
A collection of hand-crafted extensions for your Kotlin projects.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Splitties is a collection of small Kotlin multiplatform libraries (with Android as first target).
These libraries are intended to reduce the amount of code you have to write, freeing code reading and writing
time, so you can focus more on what you want to build for your users (even if you're the only one), or
have more time to have fun.
This project is named "Splitties" because it is split in small modules, distributed as independent libraries, so you can add only the ones you need to your project/module, helping reduce the size of the final binary that users devices will need to download and keep in the limited storage (BTW, everything is limited).
Some Android targeting modules have a content similar to what Anko offers. See a short comparison of Splitties with Anko here.
Each module has been designed to have a small footprint and be as efficient as possible.
Splitties is all about simplifying your code. Here are a few examples:
Kotlin:
startActivity(Intent(this, DemoActivity::class.java))
Kotlin with Splitties Activities:
start<DemoActivity>()
Kotlin:
Snackbar.make(root, R.string.refresh_successful, Snackbar.LENGTH_SHORT)
.show()
Kotlin with Splitties Snackbar:
root.snack(R.string.refresh_successful)
Racing coroutines: (raceOf(…) comes from the Coroutines module)
suspend fun awaitUserChoice(ui: SomeUi, choices: List<Stuff>): Stuff? = raceOf({
ui.awaitSomeUserAction(choices)
}, {
ui.awaitDismissal()
null
}, {
ui.showSomethingInRealtimeUntilCancelled() // Returns Nothing, will run, but never "win".
})
Kotlin:
Snackbar.make(root, getString(R.string.deleted_x_items, deletedCount), Snackbar.LENGTH_LONG)
.setAction(android.R.string.cancel) {
deleteOperation.requestRollback()
}
.setActionTextColor(ContextCompat.getColor(this, R.color.fancy_color))
.show()
Kotlin with Splitties Snackbar:
root.longSnack(str(R.string.deleted_x_items, deletedCount)) {
action(android.R.string.cancel, textColor = color(R.color.fancy_color)) {
deleteOperation.requestRollback()
}
}
Context at hand with appCtx.context.getSystemService(NAME_OF_SERVICE) as NameOfManager.snack(…) and longSnack(…).toast(yourText), and dodge API 25
BadTokenException.showAndAwait extension functions for AppCompat AlertDialog.Views.ImageView tinting, ActionBar and tooltip.contentPadding property.dp extensions for View and Context.
Particularly handy when using Views DSL.foreground property before API 23.ViewHolder and ItemViewHolder for easy basic usage of RecyclerView.RecyclerView).companion objects into powerful typesafe intent specs,
and create PendingIntents the clean and easy way.BundleSpec to use Bundle with property syntax for Intent
extras and more.Lifecycle.mainHandler property to stop allocating multiple
Handlers for main Looper.mainThreadLazy that checks property access onSharedPreferences/DataStore and macOS/iOS/watchOS NSUserDefaults.hasFlag, withFlag and minusFlag extensions on Long, Int, Short, Byte, and their unsigned counterparts.forEach for Lists without Iterator allocation.unexpectedValue(…), unsupportedAction(…) and similar
functions that return Nothing.ViewModels, use LiveData and
observe Lifecycles.Make sure you have mavenCentral() in the repositories defined in your project's
(root) build.gradle file (default for new Android Studio projects).
To make it easier to take advantage of the contents of Splitties for your Android projects, there are grouping artifacts that include most splits.
Adding with refreshVersions: Splitties.pack.androidBase or Splitties.pack.androidBaseWithViewsDsl.
These 2 packs don't include AppCompat and are suitable for WearOS apps.
Includes the following modules:
Gradle dependency:
implementation("com.louiscad.splitties:splitties-fun-pack-android-base:3.0.0")
There's also a version with Views DSL. It additionally includes the following modules:
Selected from shared topics, language and repository description—not editorial ratings.
baec23 /
A collection of UI libraries for Android using Jetpack Compose
63/100 healthmatteocrippa /
A collection of useful Kotlin extension for Android
53/100 healthissever22 /
iCore is a comprehensive Android library designed to streamline the development process by providing a robust set of modular components. With built-in support for the Model-View-ViewModel (MVVM) architecture, iCore offers a collection of base classes, extension functions, and utility classes to help developers create efficient and maintainable code
consp1racy /
Collection of custom utilities for Android development.
35/100 healthCuriousNikhil /
A collection of simple, handy hooks (using side-effects) for Jetpack Compose so you don't have to create your own.
45/100 healthTanish-Ranjan /
A curated collection of reusable and customizable Jetpack Compose components to accelerate your Android UI development.
49/100 health