{"id":15137975,"url":"https://github.com/jinleili/bevy-in-app","last_synced_at":"2025-10-04T23:10:04.215Z","repository":{"id":65791965,"uuid":"581191076","full_name":"jinleili/bevy-in-app","owner":"jinleili","description":"Integrate the Bevy engine into existing iOS / Android apps. ","archived":false,"fork":false,"pushed_at":"2024-08-04T01:25:18.000Z","size":16239,"stargazers_count":174,"open_issues_count":2,"forks_count":22,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-09T00:06:06.717Z","etag":null,"topics":["android-app","bevy","bevy-plugin","ios-app","webgpu","wgpu","wgpu-tutorial"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jinleili.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MIT","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":"2022-12-22T14:11:56.000Z","updated_at":"2025-05-01T19:04:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d50e907-f8cb-4b89-9f63-1ca449e38840","html_url":"https://github.com/jinleili/bevy-in-app","commit_stats":{"total_commits":22,"total_committers":3,"mean_commits":7.333333333333333,"dds":0.09090909090909094,"last_synced_commit":"945bda11ab8cb9f4a57a6a390456bca3c78082c1"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinleili%2Fbevy-in-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinleili%2Fbevy-in-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinleili%2Fbevy-in-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinleili%2Fbevy-in-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinleili","download_url":"https://codeload.github.com/jinleili/bevy-in-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253166518,"owners_count":21864476,"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":["android-app","bevy","bevy-plugin","ios-app","webgpu","wgpu","wgpu-tutorial"],"created_at":"2024-09-26T07:04:02.685Z","updated_at":"2025-10-04T23:10:04.194Z","avatar_url":"https://github.com/jinleili.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bevy in App\n\nIntegrate the [Bevy engine](https://github.com/bevyengine/bevy) into existing iOS | Android apps.\n\nIf you want to add a mini-game to an existing app, or implement some dynamic UI components, charts ..., or just want to take advantage of the **Motion Sensors** on your phone for some cool gameplay, you can't use `WinitPlugin`. Because `winit` will take over the entire app initialization process and windowing, but we need to create `bevy::App` in an existing app instance, and we may also want `bevy::App` to run in an `iOS UIView` or `Android SurfaceView` of any size.\n\nThis repository implements such a scenario and uses the phone's motion sensor to play breakout mini-games.\n\n## Screenshot\n\n| ![Bevy in iOS App](assets/bevy_in_ios.png) | ![Bevy in Android App](assets/bevy_in_android.png) |\n| ------------------------------------------ | -------------------------------------------------- |\n\n## **iOS**\n\n```sh\n# Add iOS target\nrustup target add aarch64-apple-ios\n\n# Build for iOS target\nsh ./ios_build.sh --release\n```\n\nThen, Open `iOS/bevy_in_iOS.xcodeproj` with Xcode，connect an iOS device and run.\n\n## **Android**\n\n### Set up Android environment\n\nAssuming your computer already has Android Studio installed, go to `Android Studio` \u003e `Tools` \u003e `SDK Manager` \u003e `Android SDK` \u003e `SDK Tools`. Check the following options for installation and click OK.\n\n- [x] Android SDK Build-Tools\n- [x] Android SDK Command-line Tools\n- [x] NDK(Side by side)\n\nThen, set two following environment variables:\n\n```sh\nexport ANDROID_SDK_ROOT=$HOME/Library/Android/sdk\n# Replace the NDK version number with the version you installed\nexport NDK_HOME=$ANDROID_SDK_ROOT/ndk/23.1.7779620\n```\n\n### Add build targets\n\n```sh\n# Since simulator and virtual devices only support GLES,\n# `x86_64-linux-android` and `i686-linux-android` targets are not necessary\nrustup target add aarch64-linux-android\n```\n\n### Build\n\n```sh\n# Install cargo-so subcommand\ncargo install cargo-so\n\n# Build\nsh ./android_build.sh --release\n```\n\n## Compatible Bevy versions\n\n| Bevy version  | `bevy-in-app` version |\n| :------------ | :-------------------- |\n| `0.17`        | `0.5`                 |\n| `0.16`        | `0.4`                 |\n| `0.14 dev`    | `0.3`                 |\n| `0.11`-`0.12` | `0.2`                 |\n| `0.10`        | `0.1`                 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinleili%2Fbevy-in-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinleili%2Fbevy-in-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinleili%2Fbevy-in-app/lists"}