{"id":15631846,"url":"https://github.com/molikuner/pure-kotlin-ios","last_synced_at":"2025-04-30T03:47:33.719Z","repository":{"id":175096107,"uuid":"653274602","full_name":"molikuner/pure-kotlin-ios","owner":"molikuner","description":"example app, that was build fully using Kotlin without relying on Xcode","archived":false,"fork":false,"pushed_at":"2024-06-29T11:30:23.000Z","size":213,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T03:47:28.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/molikuner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-13T18:28:35.000Z","updated_at":"2024-10-07T18:04:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"dea130d0-8eba-4204-a602-9b5aae265b29","html_url":"https://github.com/molikuner/pure-kotlin-ios","commit_stats":null,"previous_names":["molikuner/pure-kotlin-ios"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molikuner%2Fpure-kotlin-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molikuner%2Fpure-kotlin-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molikuner%2Fpure-kotlin-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molikuner%2Fpure-kotlin-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/molikuner","download_url":"https://codeload.github.com/molikuner/pure-kotlin-ios/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251638756,"owners_count":21619662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T10:41:44.575Z","updated_at":"2025-04-30T03:47:33.701Z","avatar_url":"https://github.com/molikuner.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pure Kotlin/Native iOS App\n\nThis example app is 100% written in Kotlin and does not contain any code in Objective-C or Swift. Furthermore, the app binary itself is build by Gradle and does not depend on Xcode to generate the app.\n\nIn fact an iOS-App is just a folder with some special files. Namely the binary itself (build by Gradle) and a `Info.plist` file, that describes the app and where to find the binary, app icon, supported features, requirements, etc.\n\n## Usage\n\nTo build the one of the apps ([direct-uikit](#example-direct-uikit)) the included `Makefile` can be used by executing:\n```shell\nmake simulator.app\n```\nThis will create the app/directory `direct-uikit/build/bin/iosSimulatorArm64/simulator.app`\n\nThis app can then be installed on a simulator. To simplify this, the `Makefile` includes other targets, that require a running simulator. It is easiest to start the simulator either from the GUI or using the `Makefile`:\n```shell\nmake sim\n```\n\nAfterward not further manual action required. Simply execute the following command to run the app:\n```shell\nmake run\n```\n\nAlternatively the app can also just be installed using:\n```shell\nmake install\n```\n\n## UI Building Examples\n\nThis repo contains a few examples of how UI could be build in an app, that's 100% written in Kotlin.\n\n### Example: `direct-uikit`\n\nThe first and easiest example, is using [UIKit](https://developer.apple.com/documentation/uikit) directly. It can be build using the following `make` command:\n```shell\nmake simulator.app PROJ=direct-uikit\n```\n\n### Example: `compose-jb`\n\nThis example utilizes the [compose-multiplatform](https://github.com/JetBrains/compose-multiplatform) implementation by JetBrains to build UI. Additionally it relies on the implementation of UI-components using [Skiko](https://github.com/JetBrains/skiko), which draws on a canvas. It can be build using the following `make` command:\n```shell\nmake simulator.app PROJ=compose-jb\n```\n\n### Example: `compose-uikit` (via `compose-ui-uikit`)\n\nThis example replaces the implementation of UI-components with a custom implementation that relies on UIKit. Therefore no canvas is needed and all native features would be theoretically usable. The example app can be build using the following `make` command:\n```shell\nmake simulator.app PROJ=compose-uikit\n```\n\n## Caveats\n\n* Currently signing the app is not included in this example. This means, it can only be installed in simulators for now. Technically it would be possible to support signing though, this is no limitation of the chosen method to create the app.\n* Different solutions for building UI could be used that are currently not shown, e.g. CashApp's Reedwood, Swift UI ...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolikuner%2Fpure-kotlin-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmolikuner%2Fpure-kotlin-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolikuner%2Fpure-kotlin-ios/lists"}