Skip to content

Commit

Permalink
Add win latest check (#150)
Browse files Browse the repository at this point in the history
* Fix crossbundle install --preferred problem

* Add win latest check

* Fix small syntax issue

* Alter CI.yml

* Fix CI

* Fix syntax error

* Change ci code

* Try to build gradle-apk

* Bump version

* Fix yml syntax

* Fix syntax

* Remove unused code

* Fix CI

* Alter example in CI

Co-authored-by: David Ackerman <[email protected]>
  • Loading branch information
Heezay and enfipy committed Aug 30, 2022
1 parent 7e5e050 commit c18a5ee
Show file tree
Hide file tree
Showing 26 changed files with 80 additions and 51 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,31 @@ jobs:
export ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME
crossbundle build android -s=native-apk --release
android-build-windows:
name: Build Android example on Windows latest
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: Install Android targets and upgrade rust
run: |
rustup upgrade
rustup target add aarch64-linux-android x86_64-linux-android
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11
- name: Install Crossbundle
run: |
cargo install --path=./crossbundle/cli
crossbundle install --preferred
- name: Build APK
run: |
cd examples/macroquad-permissions
setx ANDROID_SDK_ROOT "$HOME/AppData/Local/Android/Sdk" /M
setx ANDROID_NDK_ROOT "$HOME/AppData/Local/Android/Sdk/ndk/23.1.7779620" /M
crossbundle build android --release
apple-build-macos:
name: Build Apple example on macOS latest
runs-on: macos-latest
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crossbow"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Cross-Platform build tools and toolkit for games"
Expand All @@ -21,10 +21,10 @@ apple-bundle = { version = "0.1.4", optional = true }

[target.'cfg(target_os = "android")'.dependencies]
ndk-glue = "0.7.0"
crossbow-android = { path = "platform/android", version = "0.2.1", optional = true }
crossbow-android = { path = "platform/android", version = "0.2.2", optional = true }

[target.'cfg(target_os = "ios")'.dependencies]
crossbow-ios = { path = "platform/ios", version = "0.2.1", optional = true }
crossbow-ios = { path = "platform/ios", version = "0.2.2", optional = true }

[patch.crates-io]
miniquad = { git = "https://github.com/not-fl3/miniquad", rev = "d67ffe6950cf73df307e2d23aaa4726f14399985" }
Expand Down
6 changes: 3 additions & 3 deletions crossbundle/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crossbundle"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Build and publish apps for Android/iOS"
Expand All @@ -18,8 +18,8 @@ name = "crossbundle"
path = "src/main.rs"

[dependencies]
crossbow = { path = "../../", version = "0.2.1", default-features = false, features = ["update-manifest"] }
crossbundle-tools = { path = "../tools", version = "0.2.1", default-features = false }
crossbow = { path = "../../", version = "0.2.2", default-features = false, features = ["update-manifest"] }
crossbundle-tools = { path = "../tools", version = "0.2.2", default-features = false }
android-tools = { version = "0.2.11", optional = true }
clap = { version = "3.2", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
Expand Down
6 changes: 5 additions & 1 deletion crossbundle/cli/src/commands/install/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ impl InstallCommand {
#[cfg(feature = "android")]
CommandLineToolsInstallCommand::default().install(config)?;
#[cfg(feature = "android")]
BundletoolInstallCommand::default().install(config)?;
BundletoolInstallCommand {
version: String::from("1.8.2"),
..Default::default()
}
.install(config)?;
#[cfg(feature = "android")]
SdkManagerInstallCommand {
preferred_tools: true,
Expand Down
4 changes: 2 additions & 2 deletions crossbundle/tools/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crossbundle-tools"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Build and publish apps for Android/iOS"
Expand All @@ -10,7 +10,7 @@ keywords = ["android", "ios"]
readme = "README.md"

[dependencies]
crossbow-android = { version = "0.2.1", path = "../../platform/android", default-features = false, features = ["embed"] }
crossbow-android = { version = "0.2.2", path = "../../platform/android", default-features = false, features = ["embed"] }
# Apple crates
apple-bundle = { version = "0.1.4", optional = true }
simctl = { version = "0.1.1", package = "creator-simctl", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion docs/src/crossbow/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ authors = ["Example <[email protected]>"]
edition = "2021"

[dependencies]
crossbow = "0.2.1"
crossbow = "0.2.2"

[package.metadata]
app_name = "Game"
Expand Down
4 changes: 2 additions & 2 deletions examples/bevy-2d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "bevy-2d"
version = "0.2.1"
version = "0.2.2"
authors = ["DodoRare Team <[email protected]>"]
edition = "2021"

[dependencies]
crossbow = { version = "0.2.1", path = "../../" }
crossbow = { version = "0.2.2", path = "../../" }
log = "0.4"
anyhow = "1.0"
bevy = { version = "0.8.0", default-features = false, features = ["bevy_winit", "render", "bevy_asset"] }
Expand Down
4 changes: 2 additions & 2 deletions examples/bevy-explorer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "bevy-explorer"
version = "0.2.1"
version = "0.2.2"
authors = ["DodoRare Team <[email protected]>"]
edition = "2021"

[dependencies]
crossbow = { version = "0.2.1", path = "../../" }
crossbow = { version = "0.2.2", path = "../../" }
log = "0.4"
anyhow = "1.0"
subxt = "0.21"
Expand Down
10 changes: 5 additions & 5 deletions examples/crossbow-plugins/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[package]
name = "crossbow-plugins"
version = "0.2.1"
version = "0.2.2"
authors = ["DodoRare Team <[email protected]>"]
edition = "2021"

[dependencies]
crossbow = { version = "0.2.1", path = "../../" }
crossbow = { version = "0.2.2", path = "../../" }
log = "0.4"
anyhow = "1.0"
macroquad = "=0.3.7"

[target.'cfg(target_os = "android")'.dependencies]
play-core = { version = "0.2.1", path = "../../plugins/play-core" }
play-billing = { version = "0.2.1", path = "../../plugins/play-billing" }
play-games-services = { version = "0.2.1", path = "../../plugins/play-games-services" }
play-core = { version = "0.2.2", path = "../../plugins/play-core" }
play-billing = { version = "0.2.2", path = "../../plugins/play-billing" }
play-games-services = { version = "0.2.2", path = "../../plugins/play-games-services" }

[package.metadata]
app_name = "Crossbow Plugins"
Expand Down
4 changes: 2 additions & 2 deletions examples/macroquad-3d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "macroquad-3d"
version = "0.2.1"
version = "0.2.2"
authors = ["DodoRare Team <[email protected]>"]
edition = "2021"

[dependencies]
crossbow = { version = "0.2.1", path = "../../" }
crossbow = { version = "0.2.2", path = "../../" }
log = "0.4"
anyhow = "1.0"
macroquad = "=0.3.7"
Expand Down
6 changes: 3 additions & 3 deletions examples/macroquad-permissions/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[package]
name = "macroquad-permissions"
version = "0.2.1"
version = "0.2.2"
authors = ["DodoRare Team <[email protected]>"]
edition = "2021"

[dependencies]
crossbow = { version = "0.2.1", path = "../../" }
crossbow = { version = "0.2.2", path = "../../" }
log = "0.4"
anyhow = "1.0"
macroquad = "=0.3.7"

[target.'cfg(target_os = "android")'.dependencies]
admob-android = { version = "0.2.1", path = "../../plugins/admob-android" }
admob-android = { version = "0.2.2", path = "../../plugins/admob-android" }

[package.metadata]
app_name = "Permissions"
Expand Down
2 changes: 1 addition & 1 deletion platform/android/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crossbow-android"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Cross-Platform build tools and toolkit for games"
Expand Down
2 changes: 1 addition & 1 deletion platform/android/java/app/config.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ext.versions = [
crossbowLibrary : "0.2.1",
crossbowLibrary : "0.2.2",
androidGradlePlugin: "7.0.0",
compileSdk : 31,
minSdk : 19,
Expand Down
2 changes: 1 addition & 1 deletion platform/ios/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crossbow-ios"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Cross-Platform build tools and toolkit for games"
Expand Down
4 changes: 2 additions & 2 deletions plugins/admob-android/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "admob-android"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "AdMob Plugin for Crossbow"
Expand All @@ -11,4 +11,4 @@ readme = "README.md"
exclude = ["android/"]

[dependencies]
crossbow-android = { path = "../../platform/android", version = "0.2.1" }
crossbow-android = { path = "../../platform/android", version = "0.2.2" }
6 changes: 3 additions & 3 deletions plugins/admob-android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ Just add Rust dependencies like this:

```toml
[dependencies]
crossbow = "0.2.1"
crossbow = "0.2.2"
[target.'cfg(target_os = "android")'.dependencies]
admob-android = "0.2.1"
admob-android = "0.2.2"
```

And finally, add this to your Crossbow Android configuration:

```toml
[package.metadata.android]
plugins_remote = ["com.crossbow.admob:admob:0.2.1"]
plugins_remote = ["com.crossbow.admob:admob:0.2.2"]
```

> That's it, now you can start using AdMob ads!
Expand Down
2 changes: 1 addition & 1 deletion plugins/admob-android/android/config.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ext.versions = [
crossbowLibrary : "0.2.1",
crossbowLibrary : "0.2.2",
androidGradlePlugin: "7.0.0",
compileSdk : 31,
minSdk : 19,
Expand Down
4 changes: 2 additions & 2 deletions plugins/play-billing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "play-billing"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Google Play Billing Plugin for Crossbow"
Expand All @@ -11,4 +11,4 @@ readme = "README.md"
exclude = ["android/"]

[dependencies]
crossbow-android = { path = "../../platform/android", version = "0.2.1" }
crossbow-android = { path = "../../platform/android", version = "0.2.2" }
6 changes: 3 additions & 3 deletions plugins/play-billing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ Just add Rust dependencies like this:

```toml
[dependencies]
crossbow = "0.2.1"
crossbow = "0.2.2"
[target.'cfg(target_os = "android")'.dependencies]
play-billing = "0.2.1"
play-billing = "0.2.2"
```

And finally, add this to your Crossbow Android configuration:

```toml
[package.metadata.android]
plugins_remote = ["com.crossbow.play_billing:play_billing:0.2.1"]
plugins_remote = ["com.crossbow.play_billing:play_billing:0.2.2"]
```

> That's it, now you can start using Play Billing!
Expand Down
2 changes: 1 addition & 1 deletion plugins/play-billing/android/config.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ext.versions = [
crossbowLibrary : "0.2.1",
crossbowLibrary : "0.2.2",
androidGradlePlugin: "7.0.0",
compileSdk : 31,
minSdk : 19,
Expand Down
4 changes: 2 additions & 2 deletions plugins/play-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "play-core"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Google Play Core Plugin for Crossbow"
Expand All @@ -11,4 +11,4 @@ readme = "README.md"
exclude = ["android/"]

[dependencies]
crossbow-android = { path = "../../platform/android", version = "0.2.1" }
crossbow-android = { path = "../../platform/android", version = "0.2.2" }
6 changes: 3 additions & 3 deletions plugins/play-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ Just add Rust dependencies like this:

```toml
[dependencies]
crossbow = "0.2.1"
crossbow = "0.2.2"
[target.'cfg(target_os = "android")'.dependencies]
play-core = "0.2.1"
play-core = "0.2.2"
```

And finally, add this to your Crossbow Android configuration:

```toml
[package.metadata.android]
plugins_remote = ["com.crossbow.play_core:play_core:0.2.1"]
plugins_remote = ["com.crossbow.play_core:play_core:0.2.2"]
```

> That's it, now you can start using Play Core!
Expand Down
2 changes: 1 addition & 1 deletion plugins/play-core/android/config.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ext.versions = [
crossbowLibrary : "0.2.1",
crossbowLibrary : "0.2.2",
androidGradlePlugin: "7.0.0",
compileSdk : 31,
minSdk : 19,
Expand Down
4 changes: 2 additions & 2 deletions plugins/play-games-services/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "play-games-services"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Google Play Games Services Plugin for Crossbow"
Expand All @@ -11,4 +11,4 @@ readme = "README.md"
exclude = ["android/"]

[dependencies]
crossbow-android = { path = "../../platform/android", version = "0.2.1" }
crossbow-android = { path = "../../platform/android", version = "0.2.2" }
6 changes: 3 additions & 3 deletions plugins/play-games-services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ Just add Rust dependencies like this:

```toml
[dependencies]
crossbow = "0.2.1"
crossbow = "0.2.2"
[target.'cfg(target_os = "android")'.dependencies]
play-games-services = "0.2.1"
play-games-services = "0.2.2"
```

And finally, add this to your Crossbow Android configuration:

```toml
[package.metadata.android]
plugins_remote = ["com.crossbow.play_games_services:play_games_services:0.2.1"]
plugins_remote = ["com.crossbow.play_games_services:play_games_services:0.2.2"]
```

## Getting started
Expand Down
2 changes: 1 addition & 1 deletion plugins/play-games-services/android/config.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ext.versions = [
crossbowLibrary : "0.2.1",
crossbowLibrary : "0.2.2",
androidGradlePlugin: "7.0.0",
compileSdk : 31,
minSdk : 19,
Expand Down

0 comments on commit c18a5ee

Please sign in to comment.