Skip to main content

Grab a basket. One repository line and one dependency, and the first phone is ripe.

In an orchard where phones grow like fruit, a small mint robot on a stepladder lifts one down to check it, a glass person reaches for another, and Ouro, a smiling emerald snake curled into an O, rests in a basket of picked phones.In an orchard where phones grow like fruit, a small mint robot on a stepladder lifts one down to check it, a glass person reaches for another, and Ouro, a smiling emerald snake curled into an O, rests in a basket of picked phones.

Get started

Add it in Gradle.

Add ourostack’s Maven repository beside Google’s and Maven Central, then the library:

settings.gradle.kts
// settings.gradle.kts
dependencyResolutionManagement {
    repositories {
        google(); mavenCentral()
        maven { url = uri("https://ourostack.github.io/ouro-ui-android/maven") }
    }
}
build.gradle.kts
// build.gradle.kts
dependencies { implementation("bot.ouro.ui:ouro-hx:0.12.0") }

Release 0.12.0. Its release notes

Five minutes

Your first screen with manners.

A theme at the root, then a button in the primary tone.

MainActivity.kt
OuroTheme(OuroThemeName.Pearl, dark = isSystemInDarkTheme()) {
    OuroButton("Add to list", onPress = { /* ... */ }, tone = OuroTone.Primary)
}

For agents

Give agents your actions.

Declare them once, as the sample’s shopping.actions.mts does, then run core’s generator into your app’s sources. AppFunctions need compileSdk 37 and AGP 9.1 or later.

  1. Generate the AppFunctions

    Take ouro-actions.mts and ouro-actions-android.mts from a core release into one folder, then run:

    node ouro-actions-android.mts generate <actions.mts> <dir>

    Declare the generated <Set>AppFunctionService in your manifest, as the sample’s does.

  2. Ask the person first

    A consequential call, one that reaches other people, never runs until the person says yes. Install the built-in confirmation once, after you bind your handlers:

    MyApp.kt
    class MyApp : Application() {
        override fun onCreate() {
            super.onCreate()
            MyActions.bind()                            // each action's perform
            OuroConfirm.install(this, OuroActions.set)  // the built-in confirmation, for each consequential action without a confirm
        }
    }
  3. Check what you installed

    gh attestation verify ouro-hx-0.12.0.aar --repo ourostack/ouro-ui-android

    The release workflow attests each file it attaches, so you can check a library was built from its tag.

Drawing an agent’s card, the confirmation in depth and what CI proves live in the kit’s README. What it has beside the other platforms is on Ouro HX’s coverage.