Prerequisites
- Android Studio (minimum version TBD)
- JDK (minimum version TBD)
- Artifacts are published on Maven Central under the
io.github.morainetprefix
Step 1: Add the Dependencies
The BOM is recommended to keep module versions aligned:
dependencies {
implementation(platform("io.github.morainet:mcos-bom:0.0.6"))
implementation("io.github.morainet:mcos-android-sdk")
}
Step 2: Initialize the Composition Root
class MyApplication : Application(), McosHostApp {
override lateinit var deps: AppDeps
override fun onCreate() {
super.onCreate()
deps = CompositionRoot.create(this) // processIsolation = true enables process isolation
RuntimeBootstrap.ensureRehydrated(deps) // restore plugins + re-arm persistent scheduling
}
}
Via manifest merge, the SDK automatically brings scheduler/boot receivers, the required permissions and a FileProvider.
Step 3: Issue Your First Command
Next Steps
- Read the project introduction for the big-picture architecture
- Browse the 12 bilingual design RFCs in the repository