MultiplatformX
Pick and choose from the dependencies described below and then add them to your build.gradle.kts
file.
build.gradle.kts
kotlin { sourceSets { val module by getting { dependencies { // Add dependencies here. } } }}
#
APIThe main dependency, containing BaseViewModel
, AutoFactory
as well as view model properties. Necessary for generating Factory.create
methods and observeX
accessors.
api("org.brightify.hyperdrive:multiplatformx-api:0.1.80")
#
ComposeTools specific for Jetpack Compose for Android. This dependency is necessary to automatically observe BaseViewModel
in @Composable
functions.
api("org.brightify.hyperdrive:multiplatformx-compose:0.1.80")
#
Key-ValueMultiplatform abstraction of key-value storage separated into API as well as an insecure implementation (using UserDefaults
on iOS and SharedPreferences
on Android).
// APIapi("org.brightify.hyperdrive:multiplatformx-keyvalue:0.1.80")// Insecure implementationapi("org.brightify.hyperdrive:multiplatformx-keyvalue-insecure-settings:0.1.80")