pkg:clod/com.clodhub/android-host 0.12.0 Android Compose application shell: one activity base class (theme, language, permissions, lifecycle) and the Gradle project, manifest and launcher icon rendered from typed settings. The Android side of an application: one Compose activity base class (`ShellActivity`) that applies the colour palette, the chosen language and the permission request, and reports lifecycle events; a language holder (`ShellLanguage`) that remembers the pick and wraps the activity context; and the Gradle project (settings, root and application build files, wrapper properties), manifest and adaptive launcher icon rendered from typed settings. The application supplies its screens, resources and component source folders. Examples A portrait phone application asks for camera and microphone at start and is told whether they were granted; a language picked in the application takes effect when the activity is recreated; with no pick the phone's language is used, falling back to English. Package URL: pkg:clod/com.clodhub/android-host@0.12.0 Class: Android host (pkg:clod/com.clodhub/android-host-class@1.1.0): An Android application project rendered from the application's files, with locked dependencies. Any component of this class can fill a recipe slot that asks for it. Category devices-and-hosts/mobile; https://clodhub.com/classes/android-host-class.txt; 0 other components of this class: https://clodhub.com/components.txt?class=pkg%3Aclod%2Fcom.clodhub%2Fandroid-host-class Provides (1) - android-shell (com.clodhub/android-shell 1.0.0): Android application shell. Methods tagged typescript are exported functions of android/render.ts and android/language.ts run at build time under Node; methods tagged kotlin are public Kotlin API in package com.clodhub.androidhost compiled into the application. Methods tagged with both exist in both languages with the same behaviour. components that use it: https://clodhub.com/components.txt?requires=com.clodhub%2Fandroid-shell Requires (1) - theme (com.clodhub/theme 1.0.0): Design tokens for colours, spacing, radii, type scale and an animated background, rendered to CSS variables, Swift constants and Kotlin constants. Web: implementation/web/tokens.ts and background.ts. Apple: ThemeTypes.swift, ThemeTokens.swift, BackgroundMath.swift, ThemeBackgroundView.swift. Android: package com.clodhub.theme. components that provide it: https://clodhub.com/components.txt?provides=com.clodhub%2Ftheme Settings (3) The installer collects `packageId` (required), the application's unique identifier on Google Play, lower-case words separated by dots such as `app.ourapps.ourpoker`; `applicationName` (required), the name shown under the icon, letters, digits, spaces and hyphens such as `OurPoker`; and `minSdk`, the oldest Android version the app installs on, as an Android API level (whole number from 21 to 36; default 26, which is Android 8.0). Render options (not collected) name component source folders, extra Gradle dependencies, permissions, orientation, the activity class and the signing variable prefix. - packageId: string (qualified); required, no default - applicationName: string (label); required, no default - minSdk: integer; optional, default 26 Depends on components: none How to use in a recipe A recipe uses it through a slot of class Android host (pkg:clod/com.clodhub/android-host-class 1.1.0), naming pkg:clod/com.clodhub/android-host as the slot's preferred component or substituting it for another component of the class. The recipe connects what it provides (android-shell) to the slots that use it. It fills what the component needs (theme) from slots whose components provide it. The recipe sets packageId, applicationName and minSdk; packageId and applicationName have no default, so the recipe always sets them. - as a slot in recipe.json components: {"id":"android-host","class":{"name":"pkg:clod/com.clodhub/android-host-class","version":"1.1.0","digest":"5220d508e20add44761d9e1c07febafa4eace36f059325c87cab1c422b3445ae"},"preferred":{"name":"pkg:clod/com.clodhub/android-host","version":"0.12.0"}} - in place of another component of the class: clod fetch android-host@0.12.0 --store store --from https://clodhub.com, then clod design RECIPE@VERSION --store store --answers answers.json --substitute SLOT=android-host@0.12.0 --out definition.json Used by recipes: pkg:clod/com.clodhub/ourpoker-recipe 0.13.0 (slot android-host) For developers: how an application uses it In an installed application, `settings` is `androidHostSettings` from the rendered `android/settings.ts`; `options.kotlinSerialization` applies the Kotlin serialization compiler plugin. At build time call `renderAndroid(settings, options)` from `android/render.ts` and write the result with `writeAndroid` into the Android project folder. `options.componentFolders` lists the folders of other components (each with `src/main/java` and optionally `src/main/res`) compiled into the application. In Kotlin subclass `ShellActivity`, override `palette`, `Content()` and optionally `permissions`, `language` and the lifecycle hooks (`examples/MainActivity.kt`). Call `writeWrapper` on the same folder to add `gradlew` and the wrapper jar, then build with `./gradlew assembleDebug`. `options.repositories` adds Maven repositories, `options.testDependencies` adds unit test dependencies, and `options.buildConfigStrings` adds `BuildConfig` strings that `./gradlew -P=` overrides. `examples/consumer.ts` writes the project without any game. `writeWrapper(directory, dependencyFiles)` writes the wrapper and a complete four-file dependency map. The default map is the standalone host's resolved inputs; applications with additional libraries supply their own complete map. Invalid syntax, missing files and checksum gaps fail before output creation. Accounts and services No service is deployed. Building needs a JDK 17, the Android SDK and network access to Google's Maven repository and Maven Central. Release signing reads a keystore path and passwords from environment variables named `_KEYSTORE`, `_KEYSTORE_PASSWORD`, `_KEY_ALIAS` and `_KEY_PASSWORD`, supplied by reference at release time; no signing material is stored here. Play Store publishing belongs to the release pipeline. How it is checked `node --test tests/render.test.ts` renders the fixture application and checks the Gradle files, manifest, icon files, option validation and that no signing value is written; it also checks the language rules against the same fixture as the Kotlin check. `python3 tests/native.py android` compiles the pure Kotlin sources (language choice and colour parsing) with kotlinc 2.2 and runs the Kotlin check on the JVM; kotlinc is not installed on the authoring machine, so that suite and the Compose activity were not compiled or run, and the generated Gradle project was not built. - `node --test tests/render.test.ts` (render, required-local; tools: node 26.5) - `python3 tests/native.py android` (android, platform; tools: python3 3.12, kotlinc 2.2, java 26.0) Updates Patch updates replace the owned files; render the project again after each update, keeping any hand-edited Gradle files out of the rendered set. Removal deletes the owned sources and the rendered project files. No application data is held. Tags: android, devices-and-hosts, host, mobile Targets: client android; server none Publisher: George McIntyre (george-mcintyre) Guardians: Level N Ltd (guardian key 08775f20) Source: clodhub/android-host release v0.12.0; digest sha256:6b7004e22f4683f59602901fdb99f433f1c957782f1c333abfbfea7211ae3913 Release: features Line 0.12: no security releases Quality: Integration-tested, certified Known vulnerabilities: none known (checked 2026-11-26 at OSV); https://clodhub.com/api/components/android-host/0.12.0/vulnerabilities Downloads: 1 in 30 days; 1 of this version Classes: https://clodhub.com/classes.txt; this component as JSON: https://clodhub.com/api/components/android-host/0.12.0 Bundle download: GET https://clodhub.com/api/components/android-host/0.12.0/bundle returns a link valid for one hour Implements: pkg:clod/com.clodhub/android-host-class@1.1.0 5220d508e20add44761d9e1c07febafa4eace36f059325c87cab1c422b3445ae com.clodhub/android-shell 1.0.0 entry modules: android android/src/main/java, server server/index.ts shared behaviour suites: shared Platforms: android, server Toolchains: android >=8.0.0, java >=17.0.0 <27.0.0, kotlin =2.4.21, node >=26.5.0 <27.0.0 Frameworks: android-ui: androidx.compose.ui =1.10.0 Styles: scope none; 0 namespaces; 0 conflicts Licence: Apache-2.0; 337 upstream sources, 292 exact dependencies, 448 files (listed on the details page) Suitable for jobs: android-host profile any: cost none; load none; regions any; compliance none Notes: No provider limits are cited because the component deploys nothing. Data migration: this component keeps no data Maintainers: Level N Ltd; https://github.com/clodhub/android-host/issues; updates https://github.com/clodhub/android-host/releases (manual) What you download android-host-0.12.0.tar, from release v0.12.0 of clodhub/android-host: 448 files - Documents and manifests (8): CONTRACT.md, INSTRUCTIONS.md, LICENCE, NOTICE, PROVENANCE.md, SOURCE.md, ... - Source code (34): android/ (33), server/ (1) - Tests (5): android/ (1), fixtures/ (2), native.py, render.test.ts - Interface documents (2): android-shell.json, required-theme.json - Class files: the class's interfaces and shared checks (3): android-host-class/ (3) - Examples (2): MainActivity.kt, consumer.ts - Diagrams (5): definition.json, examples/ (1), output/ (3) - Licence notices of upstream code (389): gradle-wrapper/ (1), maven/ (388) Installing copies 34 of them into the application under components/android-host/: android 33, server 1 Not included: the components that provide what it requires (com.clodhub/theme), each a separate download; the values of its settings, which the recipe writes; any secret The archive is a release file on the publisher's public GitHub repository; ClodHub keeps this page and a pointer to the release, not the code. clod checks the archive's sha256 fingerprint before anything is copied, and installing runs none of the package's code. Versions - 0.12.0 features (2026-11-26T11:23:41.246Z) sha256:6b7004e22f4683f59602901fdb99f433f1c957782f1c333abfbfea7211ae3913 Links Details (package foundations, upstream sources, exact dependencies, styles, class inventories, files): https://clodhub.com/components/android-host/details.txt?version=0.12.0 Page: https://clodhub.com/components/android-host; JSON: https://clodhub.com/api/components/android-host/0.12.0; connections diagram: https://clodhub.com/api/components/android-host/0.12.0/connections.svg Copyright Level N Ltd 2026