dodorare / crossbow

Cross-Platform build tools and toolkit for games and game engines written in Rust! 🦀
https://crossbow.dodorare.com/
Apache License 2.0
201 stars 13 forks source link

Fix crossbow issues #108

Closed Heezay closed 2 years ago

Heezay commented 2 years ago

Objective

  1. Resolve a problem with dylib wrong build paths.
  2. Fix issues with the difference between Android Studio cmdline tools install path and crossbundle install cmdline tools install path.
  3. Make gradle project installation by default.

Solution

  1. Separate build path to escape issues with apk building
  2. Refactor code in sdkmanager.rs for correct cmdline tools access.
  3. Refactor android.rs to change CLI commands and make gradle projects built by default. Add --apk flag to build native APK files.

Changelog

  1. Now libs have one common directory to build. Was added additional directories for .apk and .aab files to avoid confusion about file ownership.
  2. Refactored code for sdkmanager.rs to escape bugs.
  3. Changed CLI commands to make gradle project building by default. For native apk building added --apk flag.