reis-mobile 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +12 -2
- package/CHANGELOG.md +27 -0
- package/README.md +64 -28
- package/agents/kmp-architect.md +26 -0
- package/agents/kmp-performance-engineer.md +24 -0
- package/agents/kmp-test-engineer.md +26 -0
- package/agents/lead-mobile.md +3 -0
- package/bin/reis-mobile.mjs +15 -0
- package/bin/update-check.mjs +14 -0
- package/commands/debate.md +4 -1
- package/commands/project.md +48 -0
- package/commands/reis-mobile.md +8 -3
- package/core/registry/registry.mjs +1 -0
- package/core/update/check.mjs +119 -0
- package/docs/agent-context.md +2 -2
- package/hooks/hooks.json +17 -0
- package/package.json +6 -3
- package/skills/mobile-accessibility/SKILL.md +2 -1
- package/skills/mobile-accessibility/references/flutter.md +1 -1
- package/skills/mobile-accessibility/references/kotlin-multiplatform.md +9 -0
- package/skills/mobile-architecture/SKILL.md +2 -1
- package/skills/mobile-architecture/references/kotlin-multiplatform.md +11 -0
- package/skills/mobile-code-review/SKILL.md +2 -1
- package/skills/mobile-code-review/references/flutter/widget-review.md +1 -1
- package/skills/mobile-code-review/references/flutter.md +1 -1
- package/skills/mobile-code-review/references/kotlin-multiplatform.md +11 -0
- package/skills/mobile-debug/SKILL.md +2 -1
- package/skills/mobile-debug/references/kotlin-multiplatform.md +10 -0
- package/skills/mobile-firebase/SKILL.md +2 -1
- package/skills/mobile-firebase/references/kotlin-multiplatform.md +10 -0
- package/skills/mobile-flutter/SKILL.md +1 -1
- package/skills/mobile-kmp/SKILL.md +26 -0
- package/skills/mobile-kmp/references/apple-interop.md +9 -0
- package/skills/mobile-kmp/references/build-performance.md +9 -0
- package/skills/mobile-kmp/references/compose-ui.md +9 -0
- package/skills/mobile-kmp/references/source-sets.md +9 -0
- package/skills/mobile-release/SKILL.md +2 -1
- package/skills/mobile-release/references/kotlin-multiplatform.md +12 -0
- package/skills/mobile-security/SKILL.md +2 -1
- package/skills/mobile-security/references/kotlin-multiplatform.md +10 -0
- package/skills/mobile-test/SKILL.md +2 -1
- package/skills/mobile-test/references/kotlin-multiplatform.md +12 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { readFile, mkdir, rm, rmdir, writeFile } from 'node:fs/promises';
|
|
2
|
+
import { homedir } from 'node:os';
|
|
3
|
+
import { dirname, join } from 'node:path';
|
|
4
|
+
|
|
5
|
+
import { PLUGIN_ROOT } from '../paths.mjs';
|
|
6
|
+
|
|
7
|
+
const REGISTRY_URL = 'https://registry.npmjs.org/reis-mobile/latest';
|
|
8
|
+
const SUCCESS_TTL_MS = 24 * 60 * 60 * 1000;
|
|
9
|
+
const FAILURE_TTL_MS = 60 * 60 * 1000;
|
|
10
|
+
|
|
11
|
+
export function updateCachePath(env = process.env) {
|
|
12
|
+
const base = process.platform === 'win32'
|
|
13
|
+
? env.LOCALAPPDATA || join(homedir(), 'AppData', 'Local')
|
|
14
|
+
: env.XDG_CACHE_HOME || join(homedir(), '.cache');
|
|
15
|
+
return join(base, 'reis-mobile', 'update-check.json');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export async function clearUpdateCache(path = updateCachePath()) {
|
|
19
|
+
try {
|
|
20
|
+
await rm(path, { force: true });
|
|
21
|
+
await rmdir(dirname(path));
|
|
22
|
+
} catch {
|
|
23
|
+
// Cache cleanup must not prevent uninstalling the plugin.
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export async function installedVersion(root = PLUGIN_ROOT) {
|
|
28
|
+
return JSON.parse(await readFile(join(root, 'package.json'), 'utf8')).version;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function compareVersions(left, right) {
|
|
32
|
+
const parse = (value) => {
|
|
33
|
+
if (typeof value !== 'string') return null;
|
|
34
|
+
const match = /^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/.exec(value);
|
|
35
|
+
if (!match) return null;
|
|
36
|
+
const numbers = match.slice(1, 4).map(Number);
|
|
37
|
+
return numbers.every(Number.isSafeInteger) ? { numbers, prerelease: match[4] } : null;
|
|
38
|
+
};
|
|
39
|
+
const a = parse(left);
|
|
40
|
+
const b = parse(right);
|
|
41
|
+
if (!a || !b) return null;
|
|
42
|
+
for (let index = 0; index < 3; index++) {
|
|
43
|
+
if (a.numbers[index] !== b.numbers[index]) return Math.sign(a.numbers[index] - b.numbers[index]);
|
|
44
|
+
}
|
|
45
|
+
if (a.prerelease === b.prerelease) return 0;
|
|
46
|
+
if (!a.prerelease) return 1;
|
|
47
|
+
if (!b.prerelease) return -1;
|
|
48
|
+
// The package is published under the stable npm dist-tag. An unknown prerelease
|
|
49
|
+
// ordering should never generate an update warning for the same base version.
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export async function fetchLatestVersion(fetcher = fetch) {
|
|
54
|
+
const response = await fetcher(REGISTRY_URL, {
|
|
55
|
+
headers: { accept: 'application/json' },
|
|
56
|
+
signal: AbortSignal.timeout(1500),
|
|
57
|
+
});
|
|
58
|
+
if (!response.ok) throw new Error(`Registry returned ${response.status}`);
|
|
59
|
+
const { version } = await response.json();
|
|
60
|
+
if (typeof version !== 'string' || compareVersions(version, version) === null) {
|
|
61
|
+
throw new Error('Registry returned an invalid version');
|
|
62
|
+
}
|
|
63
|
+
return version;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export async function checkForUpdate({
|
|
67
|
+
current,
|
|
68
|
+
cachePath = updateCachePath(),
|
|
69
|
+
now = Date.now(),
|
|
70
|
+
force = false,
|
|
71
|
+
fetchVersion = fetchLatestVersion,
|
|
72
|
+
} = {}) {
|
|
73
|
+
const version = current ?? await installedVersion();
|
|
74
|
+
let cached;
|
|
75
|
+
try {
|
|
76
|
+
cached = JSON.parse(await readFile(cachePath, 'utf8'));
|
|
77
|
+
} catch {
|
|
78
|
+
cached = null;
|
|
79
|
+
}
|
|
80
|
+
const cachedLatest = compareVersions(cached?.latest, cached?.latest) === 0 ? cached.latest : null;
|
|
81
|
+
const age = now - cached?.checkedAt;
|
|
82
|
+
const ttl = cachedLatest ? SUCCESS_TTL_MS : FAILURE_TTL_MS;
|
|
83
|
+
let latest = cachedLatest;
|
|
84
|
+
if (force || !Number.isFinite(age) || age < 0 || age >= ttl) {
|
|
85
|
+
try {
|
|
86
|
+
latest = await fetchVersion();
|
|
87
|
+
if (compareVersions(latest, latest) === null) throw new Error('Invalid version');
|
|
88
|
+
} catch {
|
|
89
|
+
latest = cachedLatest;
|
|
90
|
+
if (!latest) {
|
|
91
|
+
await saveCache(cachePath, { checkedAt: now, latest: null });
|
|
92
|
+
return { status: 'unavailable', current: version };
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
await saveCache(cachePath, { checkedAt: now, latest });
|
|
96
|
+
}
|
|
97
|
+
if (!latest || compareVersions(version, latest) === null) return { status: 'unavailable', current: version };
|
|
98
|
+
return {
|
|
99
|
+
status: compareVersions(version, latest) < 0 ? 'outdated' : 'current',
|
|
100
|
+
current: version,
|
|
101
|
+
latest,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
async function saveCache(path, value) {
|
|
106
|
+
try {
|
|
107
|
+
await mkdir(dirname(path), { recursive: true });
|
|
108
|
+
await writeFile(path, JSON.stringify(value), { mode: 0o600 });
|
|
109
|
+
} catch {
|
|
110
|
+
// A read-only home must not interrupt a session.
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function updateMessage({ current, latest }, tool = 'claude') {
|
|
115
|
+
const update = tool === 'codex'
|
|
116
|
+
? 'codex plugin marketplace upgrade reis-mobile && codex plugin add reis-mobile@reis-mobile'
|
|
117
|
+
: 'claude plugin marketplace update reis-mobile && claude plugin update reis-mobile@reis-mobile';
|
|
118
|
+
return `reis-mobile ${current} is outdated; ${latest} is available. Update the plugin: ${update}. If you installed the CLI with npm, also run npm update -g reis-mobile.`;
|
|
119
|
+
}
|
package/docs/agent-context.md
CHANGED
|
@@ -6,7 +6,7 @@ Read this contract once per task. If the caller supplied a brief, reuse it and v
|
|
|
6
6
|
|
|
7
7
|
Use the CLI's resolved `Project` directory and stack/platform focus. Read repository instructions that apply to the files in scope, then relevant architecture docs, build manifests, lock files, nearby implementation and tests. In a monorepo, keep repository-wide constraints and app-specific conventions distinct. Skip generated files and unrelated features.
|
|
8
8
|
|
|
9
|
-
If the repository contains `.reis-mobile/project.md`, read it for team knowledge that code cannot explain: product vocabulary, critical journeys, intentional boundaries and supported environments. This is optional Markdown read by the model, not a new CLI configuration key. Verify its file paths, symbols and commands against the current checkout; mark stale statements. Do not require a setup interview or create the file unless requested.
|
|
9
|
+
If the repository contains `.reis-mobile/project.md`, read it for team knowledge that code cannot explain: product vocabulary, critical journeys, intentional boundaries and supported environments. In a monorepo with `.reis-mobile/config.yaml`, look beside that config; otherwise look under the resolved app root. This is optional Markdown read by the model, not a new CLI configuration key. Verify its file paths, symbols and commands against the current checkout; mark stale statements and distinguish team-authored business rules from facts inferred from code. Do not require a setup interview or create the file unless requested.
|
|
10
10
|
|
|
11
11
|
## Build a compact brief
|
|
12
12
|
|
|
@@ -33,7 +33,7 @@ Trace at least one concrete path through the relevant objects: an action to a st
|
|
|
33
33
|
|
|
34
34
|
## Optional team context
|
|
35
35
|
|
|
36
|
-
A team can
|
|
36
|
+
A team can run `/reis-mobile:project [feature]` to create or refresh a verified object map in `.reis-mobile/project.md`, then add product knowledge that cannot be inferred from code. The command preserves team-authored text on refresh. The optional profile can live beside the existing `.reis-mobile/config.yaml` (which continues to support only `app`). Useful content is short and specific:
|
|
37
37
|
|
|
38
38
|
```markdown
|
|
39
39
|
# Mobile project context
|
package/hooks/hooks.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Warn when a newer reis-mobile release is available.",
|
|
3
|
+
"hooks": {
|
|
4
|
+
"SessionStart": [
|
|
5
|
+
{
|
|
6
|
+
"matcher": "startup|resume",
|
|
7
|
+
"hooks": [
|
|
8
|
+
{
|
|
9
|
+
"type": "command",
|
|
10
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/bin/update-check.mjs\"",
|
|
11
|
+
"timeout": 3
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reis-mobile",
|
|
3
|
-
"version": "0.7.
|
|
4
|
-
"description": "AI agents and skills for
|
|
3
|
+
"version": "0.7.2",
|
|
4
|
+
"description": "AI agents and skills for Flutter, Android, iOS, React Native and Kotlin Multiplatform — a Claude Code and Codex plugin for reviews, debugging, tests, architecture, security and Firebase.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Warleson Reis",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"commands",
|
|
20
20
|
"core",
|
|
21
21
|
"docs/agent-context.md",
|
|
22
|
+
"hooks",
|
|
22
23
|
"skills",
|
|
23
24
|
"stacks",
|
|
24
25
|
"THIRD_PARTY_NOTICES.md",
|
|
@@ -30,7 +31,8 @@
|
|
|
30
31
|
"scripts": {
|
|
31
32
|
"test": "node --test",
|
|
32
33
|
"validate": "node bin/reis-mobile.mjs validate",
|
|
33
|
-
"check": "npm run validate && npm test"
|
|
34
|
+
"check": "npm run validate && npm test",
|
|
35
|
+
"version:sync": "node scripts/versions.mjs --sync"
|
|
34
36
|
},
|
|
35
37
|
"keywords": [
|
|
36
38
|
"flutter",
|
|
@@ -41,6 +43,7 @@
|
|
|
41
43
|
"swift",
|
|
42
44
|
"swiftui",
|
|
43
45
|
"kotlin",
|
|
46
|
+
"kotlin-multiplatform",
|
|
44
47
|
"jetpack-compose",
|
|
45
48
|
"dart",
|
|
46
49
|
"firebase",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mobile-accessibility
|
|
3
|
-
description: Audits and fixes
|
|
3
|
+
description: Audits and fixes mobile accessibility across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform, including shared Compose UI and native hosts. Covers TalkBack/VoiceOver labels, roles, state, reading order, touch targets, text scaling, contrast and focus. Use for a11y audits, screen-reader bugs or accessible UI implementation.
|
|
4
4
|
intents: [accessibility]
|
|
5
5
|
stacks: ["*"]
|
|
6
6
|
---
|
|
@@ -17,6 +17,7 @@ One accessibility process for every mobile stack. This file holds what is true e
|
|
|
17
17
|
| Native Android: Jetpack Compose or Views | [references/android.md](references/android.md) |
|
|
18
18
|
| Native iOS: SwiftUI or UIKit | [references/ios.md](references/ios.md) |
|
|
19
19
|
| React Native or Expo | [references/react-native.md](references/react-native.md) |
|
|
20
|
+
| Kotlin Multiplatform with shared Compose UI or native host UI | [references/kotlin-multiplatform.md](references/kotlin-multiplatform.md) |
|
|
20
21
|
|
|
21
22
|
In Flutter and React Native apps, the native reference applies only to screens or components written natively (platform views, native modules with UI).
|
|
22
23
|
|
|
@@ -27,7 +27,7 @@ Pitfalls:
|
|
|
27
27
|
## Announcements and focus
|
|
28
28
|
|
|
29
29
|
- Mark text that changes on its own (a counter, a status) with `Semantics(liveRegion: true, ...)`.
|
|
30
|
-
- For one-off messages,
|
|
30
|
+
- For one-off messages, inspect the installed Flutter SDK's `SemanticsService` API and the project's SDK pin before recommending an announcement call; `pubspec.lock` does not identify the exact Flutter SDK version.
|
|
31
31
|
- `SnackBar`s shown through `ScaffoldMessenger` are announced by the framework.
|
|
32
32
|
- Dialogs opened with `showDialog` and routes block the semantics of what is behind them; custom overlays built with `Stack` and `Positioned` do not — use `BlockSemantics` or a route.
|
|
33
33
|
- Control reading order with `Semantics(sortKey: OrdinalSortKey(n))` only when the visual order and the widget order genuinely differ.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Kotlin Multiplatform accessibility
|
|
2
|
+
|
|
3
|
+
Determine whether the changed screen is shared Compose Multiplatform UI, native Android UI, native SwiftUI/UIKit, or a mix. KMP shared domain code has no accessibility tree by itself.
|
|
4
|
+
|
|
5
|
+
- For shared Compose UI, inspect semantics and state on the actual component, then verify the Android and iOS host experience with TalkBack and VoiceOver. Check the installed Compose version's iOS accessibility behavior against [JetBrains' iOS accessibility guide](https://kotlinlang.org/docs/multiplatform/compose-ios-accessibility.html).
|
|
6
|
+
- For native host UI, use the [Android](android.md) or [iOS](ios.md) reference and inspect the adapter that turns a shared state/error into labels, announcements and focus transitions.
|
|
7
|
+
- Test the same critical journey on both targets at large text sizes. A shared composable test does not prove native screen-reader behavior on either device.
|
|
8
|
+
|
|
9
|
+
Give **screen path:symbol → rendered target UI → missing name/role/state/order or focus behavior → target-specific fix → verification**. If a target UI is absent, report that fact instead of claiming parity.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mobile-architecture
|
|
3
|
-
description: Designs and reviews
|
|
3
|
+
description: Designs and reviews mobile architecture across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform. Covers state ownership, data flow, modules, dependency boundaries, navigation, offline data and KMP shared source sets versus host apps. Use when structuring a feature, choosing state management, refactoring layers or deciding where a real class or screen belongs.
|
|
4
4
|
intents: [architecture]
|
|
5
5
|
stacks: ["*"]
|
|
6
6
|
---
|
|
@@ -17,6 +17,7 @@ What makes a mobile codebase keep up with its team, and how each stack expresses
|
|
|
17
17
|
| Native Android (Kotlin), or the Android side of Kotlin Multiplatform | [references/android.md](references/android.md) |
|
|
18
18
|
| Native iOS (Swift) | [references/ios.md](references/ios.md) |
|
|
19
19
|
| React Native or Expo | [references/react-native.md](references/react-native.md) |
|
|
20
|
+
| Kotlin Multiplatform shared code and target boundaries | [references/kotlin-multiplatform.md](references/kotlin-multiplatform.md) |
|
|
20
21
|
|
|
21
22
|
## 2. Map before judging
|
|
22
23
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Kotlin Multiplatform architecture
|
|
2
|
+
|
|
3
|
+
Read the [KMP source-set guide](../../mobile-kmp/references/source-sets.md) before assigning a responsibility to shared or target code.
|
|
4
|
+
|
|
5
|
+
1. Draw the actual module and source-set graph from Gradle configuration. Mark `commonMain`, intermediate sets, target sets and the Android/iOS host entry points that consume the module. Do not infer a shared UI from the KMP plugin.
|
|
6
|
+
2. Trace one user action through each host into the same shared domain object. Record the state owner, repository or use-case interface, platform adapter, persistence model and error conversion. Include the Swift-facing API if iOS calls shared Kotlin.
|
|
7
|
+
3. Put platform-neutral rules and data contracts in shared code only when both callers need the same behavior. Keep lifecycle, permissions, UI navigation and platform SDK setup with their actual owners. For small platform operations, compare an `expect`/`actual` seam with an injected interface; follow the project's existing pattern.
|
|
8
|
+
4. Specify object mappings at API and persistence boundaries, especially nullability and error types exported to Swift. Name who writes each object and which cache is authoritative.
|
|
9
|
+
5. Return a table of **object/symbol → source set → owner → Android caller → iOS caller → test seam**, plus a minimal migration sequence. Mark proposed paths as proposed.
|
|
10
|
+
|
|
11
|
+
Check [Kotlin's source-set hierarchy](https://kotlinlang.org/docs/multiplatform/multiplatform-dsl-reference.html) and [platform API connection guidance](https://kotlinlang.org/docs/multiplatform/multiplatform-connect-to-apis.html) against the installed Kotlin version.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mobile-code-review
|
|
3
|
-
description: Reviews mobile code for
|
|
3
|
+
description: Reviews mobile code for production bugs across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform, including KMP source-set and host API contracts. Covers lifecycle, concurrency, UI state and native boundaries with file:line evidence. Use for a code review, PR, project audit, quality check or /reis-mobile:review.
|
|
4
4
|
intents: [review, performance]
|
|
5
5
|
stacks: ["*"]
|
|
6
6
|
---
|
|
@@ -19,6 +19,7 @@ Detect the stack first, then apply the platform checklist to the files in scope:
|
|
|
19
19
|
| Native Android (Kotlin/Java), or the Android side of Kotlin Multiplatform | [references/android.md](references/android.md) |
|
|
20
20
|
| Native iOS (Swift/Objective-C) | [references/ios.md](references/ios.md) |
|
|
21
21
|
| React Native or Expo | [references/react-native.md](references/react-native.md) |
|
|
22
|
+
| Kotlin Multiplatform shared and target changes | [references/kotlin-multiplatform.md](references/kotlin-multiplatform.md) |
|
|
22
23
|
|
|
23
24
|
In a cross-platform app, native code in `android/`, `ios/` or native modules gets the native checklist too. Security findings follow `mobile-security` when it is loaded.
|
|
24
25
|
|
|
@@ -23,7 +23,7 @@ Apply to Dart files with widgets (`StatelessWidget`, `StatefulWidget`, `Consumer
|
|
|
23
23
|
- [ ] Long lists with `ListView(children: [...])` / `Column` inside `SingleChildScrollView`: use `ListView.builder` or `SliverList`.
|
|
24
24
|
- [ ] `shrinkWrap: true` on a large list inside another scroll view: forces layout of every item.
|
|
25
25
|
- [ ] Rebuild scope too large: `setState`, `BlocBuilder` or `Consumer` at the top of the screen when only one part changes. Use `buildWhen`, `select` or extract the widget.
|
|
26
|
-
- [ ] `MediaQuery.of(context)` used only for the size: `MediaQuery.sizeOf(context)` rebuilds less. Confirm the Flutter
|
|
26
|
+
- [ ] `MediaQuery.of(context)` used only for the size: `MediaQuery.sizeOf(context)` rebuilds less. Confirm the project's Flutter SDK pin or installed toolchain before suggesting it.
|
|
27
27
|
- [ ] Network images without `cacheWidth`/`cacheHeight` or without caching, decoded at full resolution to display thumbnails.
|
|
28
28
|
- [ ] Animated `Opacity` or `ClipRRect`/`BackdropFilter` in list items: prefer `FadeTransition`/`AnimatedOpacity` and avoid unnecessary clipping.
|
|
29
29
|
- [ ] Heavy work (parsing large JSON, cryptography, image processing) on the UI thread: use `compute`/`Isolate.run`.
|
|
@@ -13,6 +13,6 @@ Apply the checklists in this order; stop early for a small diff that only touche
|
|
|
13
13
|
|
|
14
14
|
- Dart style and idioms: the Effective Dart and Dart 3 guides in the `mobile-flutter` skill (`references/dart.md`).
|
|
15
15
|
- Follow the project's state management (BLoC/Cubit, Riverpod, Provider) instead of suggesting another one.
|
|
16
|
-
- Check the Flutter
|
|
16
|
+
- Check the Flutter SDK pin or installed toolchain before recommending newer APIs (`MediaQuery.sizeOf`, Dart 3 patterns); `pubspec.lock` records dependency resolution, not the exact Flutter SDK version.
|
|
17
17
|
- Generated files (`*.g.dart`, `*.freezed.dart`, `*.mocks.dart`) are reviewed through their source annotations, not line by line.
|
|
18
18
|
- Native code under `android/` and `ios/` follows [android.md](android.md) and [ios.md](ios.md).
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Kotlin Multiplatform review
|
|
2
|
+
|
|
3
|
+
Read the changed module's source-set graph and all configured target implementations. Review the public contract as it is consumed by Android and the Swift/iOS host.
|
|
4
|
+
|
|
5
|
+
- **Shared logic:** check that DTO/domain conversions, error mapping, coroutine ownership and repository state remain target-neutral. Cite the exact shared symbol and affected caller.
|
|
6
|
+
- **Target completeness:** compare every changed `expect` declaration and actual implementation or injected adapter across configured targets. Check target-only dependencies are declared in the correct source set.
|
|
7
|
+
- **iOS boundary:** inspect framework export, Swift nullability/error handling and callback or coroutine lifetime when a shared API changes. A shared Kotlin compile alone does not validate the Swift caller.
|
|
8
|
+
- **UI boundary:** first determine whether the project shares Compose UI. Review the Android/iOS host lifecycle and accessibility in the correct native or Compose reference.
|
|
9
|
+
- **Tests:** look for common tests for the rule and target/host tests where behavior depends on platform services. Verify that CI actually runs the relevant target tasks.
|
|
10
|
+
|
|
11
|
+
Return only reproducible findings at `path:line`, with the affected target and smallest fix. Use the [source-set guide](../../mobile-kmp/references/source-sets.md) for the dependency graph.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mobile-debug
|
|
3
|
-
description:
|
|
3
|
+
description: Diagnoses build and runtime failures across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform. Covers pub/Dart, Gradle/AGP, Xcode/CocoaPods, Metro, KMP source sets and iOS frameworks, crashes and deep links. Use for failing builds, app launches, stack traces or /reis-mobile:debug.
|
|
4
4
|
intents: [debug, build, dependency, migration]
|
|
5
5
|
stacks: ["*"]
|
|
6
6
|
---
|
|
@@ -19,6 +19,7 @@ Choose by the stack **and** by the layer the error comes from — a Flutter or R
|
|
|
19
19
|
| Gradle, the Android build, logcat crashes or ANRs (native Android, or the `android/` folder of any app) | [references/android.md](references/android.md) |
|
|
20
20
|
| Xcode, signing, CocoaPods, Swift packages or iOS crash logs (native iOS, or the `ios/` folder of any app) | [references/ios.md](references/ios.md) |
|
|
21
21
|
| A React Native or Expo app: Metro, native modules, JavaScript errors | [references/react-native.md](references/react-native.md) |
|
|
22
|
+
| Kotlin Multiplatform compilation, source-set or framework integration | [references/kotlin-multiplatform.md](references/kotlin-multiplatform.md) |
|
|
22
23
|
| A deep link, App Link or Universal Link that opens the browser, the wrong screen or crashes (any stack) | [references/deep-links.md](references/deep-links.md) |
|
|
23
24
|
|
|
24
25
|
When `reis-mobile debug` (or `/reis-mobile:debug`) ran, its `area` line points at the layer: `gradle`, `manifest`, `proguard` → Android; `xcode`, `signing`, `cocoapods`, `spm` → iOS; `pub` → Flutter; `metro` → React Native.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Kotlin Multiplatform debugging
|
|
2
|
+
|
|
3
|
+
Find the first failing module, Gradle task, compilation and target in the log. Read `settings.gradle.kts`, the affected `build.gradle.kts`, version catalog and source-set directories before suggesting a fix.
|
|
4
|
+
|
|
5
|
+
1. For an unresolved symbol, check whether its dependency and declaration belong to `commonMain`, an intermediate source set or a target source set. Confirm that the failing target actually depends on that set.
|
|
6
|
+
2. For `expect`/`actual` errors, compare declarations and implementations for every configured target; follow the installed Kotlin compiler's message rather than assuming a missing iOS file.
|
|
7
|
+
3. For an iOS framework or Xcode failure, separate Kotlin framework compilation/linking from the Swift host build, then inspect the project's integration method and selected architecture. Use the [Apple integration guide](../../mobile-kmp/references/apple-interop.md).
|
|
8
|
+
4. For an Android failure, apply the [Android debugging reference](android.md) to the host/module. For a native iOS failure, apply the [iOS reference](ios.md) to the host. A shared-source error remains a KMP issue.
|
|
9
|
+
|
|
10
|
+
Report the first error line, affected source set/target, configuration evidence and the exact project task that reproduces it. Discover task names from the wrapper instead of guessing them. Kotlin's [source-set reference](https://kotlinlang.org/docs/multiplatform/multiplatform-dsl-reference.html) defines the hierarchy.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mobile-firebase
|
|
3
|
-
description: Integrates
|
|
3
|
+
description: Integrates and reviews Firebase across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform. Covers Auth, databases, Storage, Functions, FCM, Analytics, Crashlytics, Remote Config, App Check and KMP shared-to-platform SDK boundaries. Use for any Firebase setup, bug, security rule, emulator, configuration file or product integration.
|
|
4
4
|
routing: manual
|
|
5
5
|
stacks: ["*"]
|
|
6
6
|
---
|
|
@@ -19,6 +19,7 @@ Detect the stack first, then read the platform guide (shared setup and the produ
|
|
|
19
19
|
| Native Android (Kotlin), or the Android side of Kotlin Multiplatform | [references/android.md](references/android.md) |
|
|
20
20
|
| Native iOS (Swift) | [references/ios.md](references/ios.md) |
|
|
21
21
|
| React Native or Expo | [references/react-native.md](references/react-native.md) |
|
|
22
|
+
| Kotlin Multiplatform shared API and Android/iOS Firebase boundaries | [references/kotlin-multiplatform.md](references/kotlin-multiplatform.md) |
|
|
22
23
|
|
|
23
24
|
In a Flutter or React Native app, native code in `android/` and `ios/` (a notification service, an app extension) follows the native guides.
|
|
24
25
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Firebase in Kotlin Multiplatform
|
|
2
|
+
|
|
3
|
+
Start with the installed Gradle dependencies and source sets. Do not assume a Firebase SDK is available to `commonMain`, or that Android and iOS use the same API surface. Identify the actual Firebase wrapper and platform initialization in this repository.
|
|
4
|
+
|
|
5
|
+
1. Map each requested product operation to a shared interface or target implementation, the Android Firebase setup and the iOS Firebase setup. Record who owns listeners, token refresh and error conversion.
|
|
6
|
+
2. Verify target dependency availability against the installed library and version. If a third-party KMP wrapper is used, inspect its target support and native integration before moving a call into shared code.
|
|
7
|
+
3. Keep each host's configuration, push notification entitlement/permission and lifecycle handling in that host. Read the [Android](android.md) or [iOS](ios.md) product reference only for the affected target.
|
|
8
|
+
4. Test shared mapping against fakes, then test each real target's configuration or emulator setup separately. Do not treat a `commonTest` pass as proof of FCM delivery or native SDK setup.
|
|
9
|
+
|
|
10
|
+
Report **product → shared symbol → Android implementation/config → iOS implementation/config → verification**, marking unsupported or unverified targets explicitly. Check [Kotlin's platform API guidance](https://kotlinlang.org/docs/multiplatform/multiplatform-connect-to-apis.html) for the boundary options.
|
|
@@ -26,5 +26,5 @@ Each topic file lists its guides; open only the ones the task needs.
|
|
|
26
26
|
## Before writing code
|
|
27
27
|
|
|
28
28
|
- Follow the project: its state management, folder structure, lints and packages already in `pubspec.yaml`.
|
|
29
|
-
- Check the Flutter and
|
|
29
|
+
- Check the Flutter SDK pin (`.fvmrc`, toolchain config or CI) and the installed `flutter --version` before using newer APIs; `pubspec.lock` records resolved packages, not the exact Flutter SDK version.
|
|
30
30
|
- Prefer packages the project already depends on over adding new ones; when adding one, check that it supports every platform the app targets.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mobile-kmp
|
|
3
|
+
description: Works on Kotlin Multiplatform mobile projects with shared Kotlin source sets and Android/iOS targets. Use for architecture, tests, debugging, reviews, performance, security, accessibility, dependencies and releases when `org.jetbrains.kotlin.multiplatform` is applied; inspect actual targets, `commonMain`/`commonTest`, target source sets, Compose Multiplatform and the iOS framework/host app before giving platform advice.
|
|
4
|
+
intents: [architecture, test, performance, review, debug, security, release, accessibility, migration, dependency, build, deployment]
|
|
5
|
+
stacks: [kotlin-multiplatform]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Kotlin Multiplatform
|
|
9
|
+
|
|
10
|
+
KMP is a sharing mechanism, not a promise that both apps use the same UI or SDK. Resolve the module and target graph before choosing Android, iOS or shared-code guidance.
|
|
11
|
+
|
|
12
|
+
| Question | Read |
|
|
13
|
+
|---|---|
|
|
14
|
+
| Which code and dependencies can be shared? | [references/source-sets.md](references/source-sets.md) |
|
|
15
|
+
| How does shared Kotlin reach the iOS app? | [references/apple-interop.md](references/apple-interop.md) |
|
|
16
|
+
| Is UI shared with Compose Multiplatform or native on each target? | [references/compose-ui.md](references/compose-ui.md) |
|
|
17
|
+
| Which build, measurement or release task applies? | [references/build-performance.md](references/build-performance.md) |
|
|
18
|
+
|
|
19
|
+
## Ground the answer
|
|
20
|
+
|
|
21
|
+
1. Read `settings.gradle.kts`, the affected module's `build.gradle.kts`, version catalog and source-set directories. Record the configured targets; `androidMain` and `iosMain` are not proof that a target is built in CI.
|
|
22
|
+
2. Trace a real symbol from `commonMain` through an interface or `expect` declaration to each configured implementation and its Android/iOS caller. Name the module, source set and owner at every boundary. For shared Compose UI, trace its host entry too.
|
|
23
|
+
3. Match validation to the changed boundary: shared Kotlin tests on configured targets, target tests for `actual` implementations, and host UI/device tests for behavior that crosses into Android or iOS. A JVM test is not iOS coverage.
|
|
24
|
+
4. Use the topic skill for the requested work. Use `mobile-android` or `mobile-ios` only for an affected host or target-specific implementation; do not apply native-app instructions blindly to `commonMain`.
|
|
25
|
+
|
|
26
|
+
The [Kotlin Multiplatform source-set reference](https://kotlinlang.org/docs/multiplatform/multiplatform-dsl-reference.html) defines `commonMain`, `commonTest` and target compilations. Confirm DSL and task names in the project's installed Kotlin and Gradle versions.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# iOS host and framework integration
|
|
2
|
+
|
|
3
|
+
Locate the iOS app target, scheme and the shared framework declaration in the KMP build. Determine whether the app integrates it through an Xcode build phase, a local/remote Swift package, CocoaPods or another checked-in path. Trace the same Kotlin API to its Swift call and back through errors, callbacks or state observation.
|
|
4
|
+
|
|
5
|
+
For an iOS build failure, separate Kotlin/Native compilation, framework export/linking, Xcode signing and Swift source errors. Inspect the actual build phase and artifact path before changing Gradle or Pods. Match architecture, configuration and framework version to the failing simulator or device. For a release, verify the framework embedded in the signed app matches the shared module revision and preserve the app's existing symbol upload path.
|
|
6
|
+
|
|
7
|
+
An iOS simulator test of shared Kotlin does not exercise the Swift app's navigation, permissions or VoiceOver. Use the iOS topic reference when the changed behavior lives in the host.
|
|
8
|
+
|
|
9
|
+
Reference: [official iOS integration methods](https://kotlinlang.org/docs/multiplatform-ios-integration-overview.html).
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Build, profiling and delivery
|
|
2
|
+
|
|
3
|
+
List Gradle tasks for the affected module and configured target before naming a command. Use the wrapper, version catalog and CI matrix as the source of the Kotlin, Gradle, Compose and Android plugin versions. A compilation failure in `commonMain` affects all targets; an `ios*` link failure or Android variant failure has a narrower owner.
|
|
4
|
+
|
|
5
|
+
For performance, identify whether the cost is shared algorithm work, Android UI, iOS host/Compose UI or framework crossing. Measure the same journey and input on each affected target with that target's profiler and release-like configuration; do not infer iOS frame time from JVM or Android traces. Attribute retained state to the shared object, native host or bridge that owns it.
|
|
6
|
+
|
|
7
|
+
For delivery, trace Android artifact and iOS archive separately to their app IDs, signing, symbols and store workflow. The shared library is an input to both; publishing one platform does not publish the other. Preserve the host app's rollout and rollback process.
|
|
8
|
+
|
|
9
|
+
References: [KMP test tasks and reports](https://kotlinlang.org/docs/multiplatform-run-tests.html), [iOS framework integration](https://kotlinlang.org/docs/multiplatform-ios-integration-overview.html).
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Shared UI versus native UI
|
|
2
|
+
|
|
3
|
+
First find where the screen is implemented. A KMP app may share only logic and render with Jetpack Compose on Android and SwiftUI/UIKit on iOS, or share UI with Compose Multiplatform. Do not apply Compose tests or semantics to a native Swift screen.
|
|
4
|
+
|
|
5
|
+
For shared Compose UI, trace the screen's state owner, Composable entry, navigation owner and the Android/iOS host that installs it. Keep platform services behind the project's existing boundary. Inspect resource generation and the source set holding each resource; Android `R` resources and Compose Multiplatform `Res` accessors are different APIs.
|
|
6
|
+
|
|
7
|
+
For accessibility, inspect Compose semantics and verify them on both targets with TalkBack/VoiceOver. For target-specific dialogs, text input, insets or navigation, inspect the native host as well. Verify API availability against the installed Compose Multiplatform version.
|
|
8
|
+
|
|
9
|
+
References: [Compose resources](https://kotlinlang.org/docs/multiplatform/compose-multiplatform-resources.html), [iOS accessibility](https://kotlinlang.org/docs/multiplatform/compose-ios-accessibility.html).
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Shared-code boundaries
|
|
2
|
+
|
|
3
|
+
Read the actual `kotlin {}` targets and `sourceSets {}` dependency graph. Identify `commonMain`, intermediate source sets (such as `iosMain`) and target sources. A file's folder does not establish that every configured binary includes it; check `dependsOn` and the target hierarchy.
|
|
4
|
+
|
|
5
|
+
For a requested feature, record the shared public type, its caller on each target, input/output values and error/cancellation contract. Keep pure business rules and serialization in common code when all targets use the same contract. Put platform SDK calls behind a small common interface or `expect`/`actual` declaration; confirm every configured target has the implementation. Prefer the project's existing injection pattern rather than adding a second one.
|
|
6
|
+
|
|
7
|
+
When a shared type is exported to Swift, check the actual framework API and conversion at the call site. Kotlin nullability, exceptions, collections and asynchronous work can have a different Swift-facing shape from the Kotlin call. Do not infer that a Kotlin unit test covers the Swift consumer.
|
|
8
|
+
|
|
9
|
+
References: [source-set DSL](https://kotlinlang.org/docs/multiplatform/multiplatform-dsl-reference.html), [platform APIs and interfaces](https://kotlinlang.org/docs/multiplatform/multiplatform-connect-to-apis.html).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mobile-release
|
|
3
|
-
description: Prepares
|
|
3
|
+
description: Prepares mobile releases across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform, including separate Android/iOS artifacts from a shared KMP revision. Covers versions, signing, symbols, store readiness, rollout, release notes and CI/CD. Use for release audits, store submission, build pipelines or rollout planning.
|
|
4
4
|
intents: [release, deployment]
|
|
5
5
|
stacks: ["*"]
|
|
6
6
|
---
|
|
@@ -17,6 +17,7 @@ One release process for every mobile stack. This file holds the process and what
|
|
|
17
17
|
| Native Android, or the Android build of any app | [references/android.md](references/android.md) |
|
|
18
18
|
| Native iOS, or the iOS build of any app | [references/ios.md](references/ios.md) |
|
|
19
19
|
| React Native or Expo app | [references/react-native.md](references/react-native.md) |
|
|
20
|
+
| Kotlin Multiplatform shared module and both host apps | [references/kotlin-multiplatform.md](references/kotlin-multiplatform.md) |
|
|
20
21
|
| Release notes and store listing text | [references/store-copy.md](references/store-copy.md) |
|
|
21
22
|
| A CI/CD pipeline that builds, signs and uploads | [references/ci-cd.md](references/ci-cd.md) |
|
|
22
23
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Kotlin Multiplatform release
|
|
2
|
+
|
|
3
|
+
A shared module revision can affect two separate app artifacts. Inventory the Android application, iOS host project and framework integration that this repository actually ships.
|
|
4
|
+
|
|
5
|
+
| Boundary | Verify |
|
|
6
|
+
|---|---|
|
|
7
|
+
| Shared module | Exact commit/version consumed by both hosts, configured target builds and common/target tests. |
|
|
8
|
+
| Android app | Version/build number, signing, release variant, R8 mapping and Play rollout using the [Android guide](android.md). |
|
|
9
|
+
| iOS app | Host version/build number, framework architecture, archive/signing, dSYM and App Store rollout using the [iOS guide](ios.md). |
|
|
10
|
+
| CI | Both artifacts built from the intended shared revision; host tests and upload jobs are distinguished from framework compilation. |
|
|
11
|
+
|
|
12
|
+
Record **artifact → shared revision → build/test evidence → signing/symbol evidence → rollout owner**. One target passing does not make the other ready. Use the [Apple integration guide](../../mobile-kmp/references/apple-interop.md) to identify the framework path, and confirm current store requirements in each store's official portal.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mobile-security
|
|
3
|
-
description:
|
|
3
|
+
description: Reviews mobile security across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform using OWASP MASVS. Covers credential storage, secrets, transport, deep links, WebViews, logging and platform implementations of shared KMP contracts. Use for security audits, auth/token handling, pentest findings or release hardening.
|
|
4
4
|
intents: [review, security, release]
|
|
5
5
|
stacks: ["*"]
|
|
6
6
|
---
|
|
@@ -17,6 +17,7 @@ Organized by the OWASP MASVS categories. Apply the general checks below, then th
|
|
|
17
17
|
| Native Android (Kotlin/Java), or `android/` in any app | [references/android.md](references/android.md) |
|
|
18
18
|
| Native iOS (Swift/Objective-C), or `ios/` in any app | [references/ios.md](references/ios.md) |
|
|
19
19
|
| React Native or Expo | [references/react-native.md](references/react-native.md) |
|
|
20
|
+
| Kotlin Multiplatform shared code and platform implementations | [references/kotlin-multiplatform.md](references/kotlin-multiplatform.md) |
|
|
20
21
|
|
|
21
22
|
Firebase-specific protection (security rules, App Check) is covered by `mobile-firebase`.
|
|
22
23
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Kotlin Multiplatform security
|
|
2
|
+
|
|
3
|
+
Trace a credential or sensitive value through shared code and both host apps. Mark the concrete storage and network implementations used by each target.
|
|
4
|
+
|
|
5
|
+
- A `commonMain` interface called `SecureStorage` is not proof of protection: inspect Android's Keystore-backed implementation and iOS Keychain implementation, their failure behavior and how logout clears each store. Do not claim an API exists until the dependency and target code confirm it.
|
|
6
|
+
- Check that shared serializers, caches and logs do not persist or emit tokens or personal data in plain text. Identify the exact object, path and caller.
|
|
7
|
+
- Check platform transport configuration in Android and iOS hosts: cleartext allowances, TLS overrides, deep-link handlers and WebView bridges are target-specific.
|
|
8
|
+
- Check that secrets are not embedded in shared resources or framework exports; anything bundled into either app is extractable.
|
|
9
|
+
|
|
10
|
+
For each finding, give **source path:line → target(s) → exposed object → consequence → fix**. Apply the [Android](android.md) and [iOS](ios.md) references to affected host files, and follow the project's actual storage/network dependencies. The shared source-set boundary is explained in [mobile-kmp](../../mobile-kmp/references/source-sets.md).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mobile-test
|
|
3
|
-
description: Writes, runs and reviews
|
|
3
|
+
description: Writes, runs and reviews mobile tests across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform. Covers Dart widget/integration tests, JUnit/Compose/Espresso, XCTest/XCUITest, Jest/Detox, and KMP common/target tests. Use to add, fix, run or audit tests, test setup, mocks, coverage and flaky tests for a real app behavior.
|
|
4
4
|
intents: [test]
|
|
5
5
|
stacks: ["*"]
|
|
6
6
|
---
|
|
@@ -19,6 +19,7 @@ Detect the stack first (the router result, or `pubspec.yaml`, Gradle files, the
|
|
|
19
19
|
| Native Android (Kotlin), or the Android side of Kotlin Multiplatform | [references/android.md](references/android.md); for setting up a test stack from scratch, [references/android/setup/GUIDE.md](references/android/setup/GUIDE.md) |
|
|
20
20
|
| Native iOS (Swift) | [references/ios.md](references/ios.md) |
|
|
21
21
|
| React Native or Expo | [references/react-native.md](references/react-native.md) |
|
|
22
|
+
| Kotlin Multiplatform shared and target tests | [references/kotlin-multiplatform.md](references/kotlin-multiplatform.md) |
|
|
22
23
|
|
|
23
24
|
A cross-platform app with native code (`android/`, `ios/`, native modules) uses the native reference for that code.
|
|
24
25
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Kotlin Multiplatform tests
|
|
2
|
+
|
|
3
|
+
Resolve the configured targets and actual Gradle test tasks before running a command. Use the [KMP testing guide](https://kotlinlang.org/docs/multiplatform-run-tests.html) and the project's Kotlin plugin version to interpret the task graph.
|
|
4
|
+
|
|
5
|
+
| Behavior under test | Location and runner |
|
|
6
|
+
|---|---|
|
|
7
|
+
| Shared domain rule or mapper | `commonTest`; run the configured target test tasks that compile and execute it. |
|
|
8
|
+
| Android or iOS `actual` implementation | The matching target test source set and runner; a JVM-only pass does not cover Kotlin/Native. |
|
|
9
|
+
| Swift adapter or native host flow | The host app's XCTest/XCUITest or Android local/instrumented suite, depending on the boundary. |
|
|
10
|
+
| Shared Compose screen | Compose Multiplatform UI test where supported by the installed version; also verify the target accessibility and host flow. |
|
|
11
|
+
|
|
12
|
+
For each requested test, record **source path:symbol → input → result → dependency seam → test source set → real task**. Use existing fixtures and test libraries. Discover task names with the project's Gradle wrapper; avoid assuming all iOS targets run on the current machine. Inspect test counts and target results, not only a successful compilation. [Compose Multiplatform UI testing](https://kotlinlang.org/docs/multiplatform/compose-test.html) has separate host constraints.
|