Home / Market / ios to android

ios to android

Use for ANY task that ports or implements Android functionality from an iOS/Swift codebase — including single-feature tasks (BLE scanning, location/GPS tracking, billing, Health Connect, background work, database, one screen), not just full-app migrations. Primary coordinating skill for migrating iOS apps and subsystems to Android (Jetpack Compose, Room, Kotlin Coroutines and Flow, Architecture Components). Handles both full-app greenfield migrations and scoped sub-component feature migrations:

skill★ 10850326 dlskills.shApache-2.0Install in CosmosUpstream Source

Documentation & Preview

--- name: ios-to-android description: "Use for ANY task that ports or implements Android functionality from\ \ an iOS/Swift codebase \u2014 including single-feature tasks (BLE scanning, location/GPS\ \ tracking, billing, Health Connect, background work, database, one screen), not\ \ just full-app migrations. Primary coordinating skill for migrating iOS apps and\ \ subsystems to Android (Jetpack Compose, Room, Kotlin Coroutines and Flow, Architecture\ \ Components). Handles both full-app greenfield migrations and scoped sub-component\ \ feature migrations: Info.plist permissions and AndroidManifest.xml mapping (Android\ \ 14+ runtime permissions and foreground service types), SwiftUI views and screen\ \ layouts, CoreData/Room, StoreKit/Google Play Billing (in-app subscriptions and\ \ purchases), HealthKit/Health Connect, CoreBluetooth/BLE, CoreLocation/GPS, BGTaskScheduler/WorkManager,\ \ and UserDefaults/DataStore. Don't use for Android-only work with no iOS source,\ \ for converting Android XML Views to Compose, or for building or changing iOS apps." license: Complete terms in LICENSE.txt metadata: author: Google LLC last-updated: '2026-11-14' keywords:

---

This skill guides you through the structured process of migrating an Apple iOS application to modern Android. It provides an end-to-end 10-step engineering methodology that performs deep pre-flight project discovery, establishes Gradle infrastructure, and conditionally loads specialized reference documents from references/ based on the specific subsystems detected in the source codebase.

Objective

To systematically convert an iOS codebase into a clean, modern, and idiomatic Android application powered by Jetpack Compose , Kotlin Coroutines \& Flow , and Android Architecture Components, maintaining architectural integrity and visual parity without legacy Android view bloat, unverified stubbing, or proprietary vendor lock-in.

* * *

Operational Scope Modes

Before taking action, determine which operational mode matches the user's request and workspace:

Mode A: Full Application Migration (End-to-End Greenfield)

  1. Architecture \& State : Inspect references/architecture-and-viewmodels.md and references/state-and-reactive-flows.md.
  2. Screen Layouts \& Declarative UI : Inspect references/ui-layout-swiftui-to-compose.md.
  3. Navigation : Inspect references/navigation-compose.md.
  4. Database \& Entities : Inspect references/database-coredata-to-room.md.
  5. Preferences \& Settings : Inspect references/preferences-datastore.md.
  6. Runtime Permissions : Inspect references/permissions-runtime.md.
  7. Health \& Fitness : Inspect references/health-connect.md.
  8. In-App Billing \& Store : Inspect references/in-app-billing.md.
  9. Bluetooth LE Sensors : Inspect references/bluetooth-ble.md.
  10. Location \& GPS Tracking : Inspect references/location-fusedprovider.md.
  11. Background Tasks : Inspect references/background-tasks-workmanager.md.

> [!IMPORTANT] > Important: This gate is mandatory. Reading SKILL.md alone is not sufficient to complete a migration --- this root document is an index and a set of invariants; the reference guides hold the actual API-level implementation patterns. Skipping them is the single most common cause of mock-stub managers, missing runtime permissions, and non-idiomatic layouts that compile cleanly and then fail review.

You MUST record the list of reference guides you actually opened in .migration/migration_walkthrough.md under a ## Reference Guides Consulted heading. If a subsystem is present in the source app and its guide is absent from that list, the migration is incomplete --- go back and read it before concluding.

Mode B: Scoped Sub-Component \& Feature Migration (Contextual Integration)

project**.

  1. Target Codebase Convention Discovery: Inspect the target Android project to discover and adopt established architecture, package structure, dependency injection, and state patterns.
  2. Surgical Subsystem Routing : Jump directly to the relevant supplemental reference guide in references/ for the requested capability.
  3. Scoped Migration \& Integration: Implement the subsystem matching the discovered target conventions and wire it to replace any existing Fakes or stubs.
  4. Targeted Build \& Test Verification : Verify ./gradlew assembleDebug or run specific unit tests without mutating unrelated modules.

* * *

Target Codebase Convention Discovery Protocol (Mandatory for Mode B)

When performing a sub-component migration into an existing Android codebase, you

MUST inspect 2--3 existing files in app/src/main/java/ and gradle/libs.versions.toml before creating or modifying files. Adopt the target project's established conventions across these 5 dimensions:

  1. Package Organization :
  1. Dependency Injection \& Service Locator :
  1. State Management \& Concurrency :
  1. Design System \& UI Components :
  1. Version Catalog \& Dependencies :

* * *

Summary of the 10-Step Migration Methodology (Mode A)

  1. Deep Source Audit, Domain Discovery \& Migration Brief
  2. Subsystem \& Capability Decomposition
  3. Formulate and Approve Phased Migration Plan
  4. Project Infrastructure, Gradle \& DI Initialization *(Mandatory Build

Gate 1)*

  1. Resource Catalog \& Localization Migration
  2. Local Persistence \& Storage Migration *(Mandatory Build Gate 2)*
  3. Core Architecture, Concurrency, State Hoisting \& Secrets Handling
  4. Declarative UI \& Navigation Porting to Jetpack Compose *(Mandatory Build

Gate 3)*

  1. Hardware, Platform Services \& Background Subsystems
  2. **Build Verification, Test Porting, Quality Triage \& Walkthrough

Generation** *(Mandatory Build Gate 4)*

* * *

Detailed Migration Steps

Step 1: Deep Source Audit, Domain Discovery \& Migration Brief

Before writing any Android code, you Must perform an exhaustive audit of the iOS source tree.

Step 2: Subsystem \& Capability Decomposition

Map detected iOS capabilities to Android replacement frameworks. Use the

Heuristic Routing Table below to determine which supplemental reference guides are required for the project. When conducting a full-app migration (Mode A), you MUST inspect the corresponding reference guide for every subsystem detected in the iOS app before writing implementation code.

Heuristic Routing Table (Progressive Disclosure)

| Detected iOS Indicator / Code Pattern | Supplemental Reference Guide | Android Target Architecture | |---|---|---| | import SwiftUI / List / VStack | references/ui-layout-swiftui-to-compose.md | Jetpack Compose (LazyColumn, Row