2 releases
0.1.1 | Apr 15, 2024 |
---|---|
0.1.0 | Apr 15, 2024 |
#744 in Game dev
258 downloads per month
5KB
bevy_ios_review
Rust crate and Swift package to easily integrate iOS's requestReview
API into a Bevy application.
Instructions
- Add to XCode: Add SPM (Swift Package Manager) dependency
- Add Rust dependency
- Setup Plugin
1. Add to XCode
Go to File
-> Add Package Dependencies
and paste https://github.com/rustunit/bevy_ios_review.git
into the search bar on the top right:
2. Add Rust dependency
cargo add bevy_ios_review
or
bevy_ios_review = { version = "0.1" }
3. Setup Plugin
Initialize Bevy Plugin:
app.add_plugins(bevy_ios_review::IosRequestReviewPlugin);
Trigger Review Event in your application code:
fn some_system(mut event: EventWriter<IosRequestReview>) {
event.send(IosRequestReview);
}
Dependencies
~20–57MB
~1M SLoC