open-standards/wai/examples/android-app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science db358c7fd5 The skill lists every core tool, and setup-agent keeps to its own block
The skill's core toolset names toolchain_doctor, and says where the specification's
text comes from for an installed binary. A test holds each toolset's line to that
toolset's tools both ways, and each command's flags to the catalogue. The 9 templates
carry the new text.

setup-agent takes no marker from a closed code fence, adds frontmatter only with the
block, sees frontmatter after a byte order mark, and leaves alone a path with a file
where it needs a directory, setting up the rest of the project.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-07 03:08:05 -05:00
..
.agents/skills/wai The skill lists every core tool, and setup-agent keeps to its own block 2026-11-07 03:08:05 -05:00
replay wai: the developer's path, hello, create, dev and verify, a floor build with no system library, and nine examples 2026-10-26 22:58:39 -04:00
test wai: the developer's path, hello, create, dev and verify, a floor build with no system library, and nine examples 2026-10-26 22:58:39 -04:00
.gitignore wai: the developer's path, hello, create, dev and verify, a floor build with no system library, and nine examples 2026-10-26 22:58:39 -04:00
AGENTS.md wai/toolchain-fixes, converted to the layout of the fix: no shared append point 2026-11-05 01:45:34 -05:00
LICENSE wai: LICENSE holds the Apache License 2.0's exact text 2026-11-07 01:49:11 -05:00
README.md wai/examples: every template Apache-2.0, its LICENSE carried into the project 2026-10-27 04:52:31 -04:00
sample-session.json wai: the developer's path, hello, create, dev and verify, a floor build with no system library, and nine examples 2026-10-26 22:58:39 -04:00
settings.gradle.kts wai: the developer's path, hello, create, dev and verify, a floor build with no system library, and nine examples 2026-10-26 22:58:39 -04:00
wai.json wai/toolchain-fixes, converted to the layout of the fix: no shared append point 2026-11-05 01:45:34 -05:00

The native sink in Kotlin, for Android

What it shows. The WAI native sink's Kotlin API, the one an Android app calls. A recorded playback session goes through the sink call by call: each playlist verified against its receipt, each object against the hash its name states, the player's observations, its end. The sink signs an acknowledgement of what was received and, at the end, a bundle; the program verifies the bundle as the stream's owner does.

Run it. The sink is the wai-sink-android project of the WAI repository; build its host library once (JDK 17 and Rust), then point this project at it:

wai create my-android --template android-app
cd <your clone>/wai/wai-sink-android && scripts/build-native.sh host
cd my-android
export WAI_SINK_ANDROID=<your clone>/wai/wai-sink-android
gradle :replay:run          # Gradle 8.13, as the SDK pins it

What you see. How many playlists and objects went through the sink, and that the bundle verifies.

In an Android app. Build the SDK's AAR (scripts/gradle.sh :sink:assembleRelease, with the Android SDK and NDK) and give the player a WaiPlayerSession(context, url, config, WaiViewAttention(view)): the same calls, on the path of the player's requests. The SDK's README covers it.

With a coding assistant. Run wai setup-agent in this directory: it writes the instructions an assistant reads and connects it to WAI's tools.

License. Apache-2.0: the text is in LICENSE, and a project wai create makes from this example carries it.