# Android Kmp Platform Channels

> Bridging Native iOS and Desktop APIs back into KMP.

- **Type:** Skill
- **Install:** `agentstack add skill-prasad-vennam-awesome-android-ai-agent-skills-android-kmp-platform-channels`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [prasad-vennam](https://agentstack.voostack.com/s/prasad-vennam)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [prasad-vennam](https://github.com/prasad-vennam)
- **Source:** https://github.com/prasad-vennam/Awesome-Android-AI-Agent-Skills/tree/main/skills/android-kmp-platform-channels

## Install

```sh
agentstack add skill-prasad-vennam-awesome-android-ai-agent-skills-android-kmp-platform-channels
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Kotlin Multiplatform Native Bridging 🌉

When the common Kotlin standard library falls short, you must write native platform bridges to access raw iOS Foundation or Android Context APIs.

## ⚡ When to Use
- When integrating platform-specific hardware, Push Notifications, or third-party proprietary SDKs that lack a KMP wrapper.

## 🏗️ Core Rules / Pillars

### 1. The Expect/Actual Paradigm
- **Pattern**: Avoid trying to pass `Context` (Android) or `UIViewController` (iOS) around in common code via generic `Any` types.
- **Implementation**: Define an `expect` class or interface in `commonMain`, and provide `actual` implementations within `androidMain` and `iosMain`. Use constructor injection for dependencies if using Koin or Kotlin-Inject.

### 2. Bridging Coroutines to Swift (iOS)
- **Pattern**: By default, Kotlin `StateFlow` and `suspend` functions compile to Swift with generic clunky `Skie` or `CompletionHandler` signatures.
- **Implementation**: Rely on libraries like Touchlab's SKIE to seamlessly map Kotlin Coroutines into native Swift Async/Await to provide iOS developers a world-class API.

## 🚧 Critical Anti-Hallucination Guards
- **Trap**: Do not attempt to use `java.util.UUID` or `java.time` anywhere in `commonMain`! Native Java libraries simply DO NOT compile to iOS and will immediately break the KMP build. Instead use `kotlinx.datetime` and `uuid` libraries.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [prasad-vennam](https://github.com/prasad-vennam)
- **Source:** [prasad-vennam/Awesome-Android-AI-Agent-Skills](https://github.com/prasad-vennam/Awesome-Android-AI-Agent-Skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-prasad-vennam-awesome-android-ai-agent-skills-android-kmp-platform-channels
- Seller: https://agentstack.voostack.com/s/prasad-vennam
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
