Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GameActivity/Gradle project support #98

Merged
merged 24 commits into from
Jul 3, 2022
Merged

Add GameActivity/Gradle project support #98

merged 24 commits into from
Jul 3, 2022

Conversation

enfipy
Copy link
Collaborator

@enfipy enfipy commented Jun 23, 2022

Objective

Adds initial Gradle projects support with the help of Crossbow Android Library to make it possible to build apk/aab from the Gradle project.
It provides a GameActivity-extended Java wrapper for Rust. With Gradle building tool.

  • Add Android platform folder with basic Gradle library.
  • Add rust wrapper around GameActivity and Crossbow Android Library.
  • Add --gradle flag to crossbundle.
  • Generate temporary Gradle project in Rust target.
  • Make it possible to build a working apk/aab from the Gradle project with Rust and Crossbow Android Library.
  • Add the --export flag to export the Android Gradle project for custom builds.
  • Add test cases for new features.

@enfipy enfipy marked this pull request as ready for review July 3, 2022 13:16
@enfipy enfipy merged commit d5d74bd into main Jul 3, 2022
@enfipy enfipy deleted the add-gradle-support branch July 3, 2022 15:16
Heezay added a commit that referenced this pull request Jul 4, 2022
* Change project structure

* Add platform android

* Add gradlew and App

* Add availability to compile rust library without build apk

* Add app gradle project

* Working NA with Macroquad

* Fix clippy and fmt

* Add permission result

* Move permissions to crossbow-android

* Alter permissions

* Add generation of gradle project with flag

* Refactor target dir for AAB

* Fix tests

* Run cargo clippy

* Fix fmt

* Fix gradle generation

* Add integration test for gradle project

* Alter to use Kotlin and fix bug with Activity not found

* Add android metadata to cargo manifest

* Fix cargo issue

* Add run gradle command

* Alter generation of gradle to use :app

* Add export to directory flag option

* Alter CrossbowApp AndroidManifest.xml, fix issues and bump versions

Co-authored-by: OffTheHeezay <den_9912@mail.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants