Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 27 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ out/
# Uncomment the following line in case you need and you don't have the release build type files in your app
# release/

# Gradle files
.gradle/

# Local configuration file (sdk path, etc)
local.properties

Expand Down Expand Up @@ -393,9 +390,6 @@ $RECYCLE.BIN/

# Generated files

# Gradle files
.gradle

# Signing files
.signing/

Expand All @@ -406,11 +400,10 @@ $RECYCLE.BIN/
# Log Files

# Android Studio
/*/build/
/*/local.properties
/*/out
/*/*/build
/*/*/production
build/
local.properties
out
production
*.ipr
*.swp

Expand Down Expand Up @@ -481,3 +474,26 @@ fabric.properties

# Temporary files
*.tmp

### Gradle ###
.gradle
**/build/
!src/**/build/

# Ignore Gradle GUI config
gradle-app.setting

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Avoid ignore Gradle wrappper properties
!gradle-wrapper.properties

# Cache of project
.gradletasknamecache

# Eclipse Gradle plugin generated files
# Eclipse Core
.project
# JDT-specific (Eclipse Java Development Tools)
.classpath
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ exclude = [".github/**/*"]
crossbundle-derive = { path = "crossbundle/derive", version = "0.1.3" }
crossbundle-tools = { path = "crossbundle/tools", version = "0.1.3", optional = true }

crossbow-ads = { path = "plugins/ads", version = "0.1.3", optional = true }
crossbow-permissions = { path = "plugins/permissions", version = "0.1.3", optional = true }
# Platform-specific dependencies
crossbow-android = { path = "platform/android", version = "0.1.3", optional = true }

[target.'cfg(target_os = "android")'.dependencies]
ndk-glue = "0.6.2"
Expand All @@ -28,10 +28,12 @@ miniquad = { git = "https://github.com/not-fl3/miniquad", rev = "d67ffe6950cf73d

[features]
default = []
android = ["crossbow-android"]

[workspace]
members = [
"plugins/*",
"crossbundle/*",
"platform/*",
"examples/*",
]
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ Crate structure:
| Name | Description | Status |
| ---- | ----------- | ------ |
| [crossbundle](./crossbundle/cli/README.md) | Command-line tool for building applications | ✅ |
| [crossbundle-install](https://github.com/dodorare/crossbow/blob/improve-documentation/docs/crossbundle-install-command.md) | Crossbundle install command to install necessary packages | ✅ |
| [crossbundle-install](./docs/crossbundle-install-command.md) | Crossbundle install command to install necessary packages | ✅ |
| [crossbundle-tools](./crossbundle/tools/README.md) | Toolkit used in `crossbundle` to build/pack/sign bundles | ✅ |
| [crossbundle-derive](./crossbundle/derive/README.md) | Derive macros for projects built with `crossbow` | ✅ |
| [crossbow-ads](./crossbow/ads/README.md) | Plugin for advertisements | 🛠 |
| [crossbow-permissions](./crossbow/permissions/README.md) | Plugin for runtime permissions | 🛠 |
| [android-tools-rs](https://github.com/dodorare/android-tools-rs) | Android-related tools for building and developing application | ✅ |
| [android-manifest-rs](https://github.com/dodorare/android-manifest-rs) | [AndroidManifest](https://developer.android.com/guide/topics/manifest/manifest-intro) serializer and deserializer for Rust | ✅ |
| [apple-bundle-rs](https://github.com/dodorare/apple-bundle-rs) | [AppleBundleResources](https://developer.apple.com/documentation/bundleresources) serializer and deserializer for Rust | ✅ |
Expand Down
14 changes: 8 additions & 6 deletions crossbundle/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,22 @@ path = "src/main.rs"

[dependencies]
crossbundle-tools = { path = "../tools", version = "0.1.3" }
clap = { version = "3.1", features = ["derive"] }
android-tools = "0.2.8"
clap = { version = "3.2.8", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
dunce = "1.0"

thiserror = "1.0"
colored = "2.0"
displaydoc = "0.1"
displaydoc = "0.2"
pretty_env_logger = "0.4"
log = "0.4"

fs_extra = "1.2"
android-tools = "0.2.7"
dirs = "4.0.0"
dunce = "1.0"
ureq = "2.4.0"
cargo = "0.61.1"
cargo-util = "0.1.1"
cargo = "0.63.1"
cargo-util = "0.2.0"

[features]
default = ["android", "ios"]
Expand Down
4 changes: 2 additions & 2 deletions crossbundle/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ use_info_plist = true
# Path to Info.plist file
info_plist_path = "path/to/Info.plist"

# Android package name to place in AndroidManifest.xml.
android_package_name = "com.example.Example"
# Android package to place in AndroidManifest.xml.
android_package = "com.example.ExampleProject"
# Android resources directory path relatively to project path.
android_res = "res/android"
# Android assets directory path relatively to project path.
Expand Down
10 changes: 8 additions & 2 deletions crossbundle/cli/src/cargo_manifest.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use crossbundle_tools::types::{
android_manifest::{Service, UsesFeature, UsesPermission, UsesPermissionSdk23},
android_manifest::{
MetaData, Queries, Service, UsesFeature, UsesPermission, UsesPermissionSdk23,
},
*,
};
use serde::{Deserialize, Serialize};
Expand All @@ -24,7 +26,7 @@ pub struct Metadata {
pub info_plist_path: Option<PathBuf>,

/// Android package name to place in AndroidManifest.xml.
pub android_package_name: Option<String>,
pub android_package: Option<String>,
/// Android resources directory path relatively to project path.
pub android_res: Option<PathBuf>,
/// Android assets directory path relatively to project path.
Expand All @@ -43,6 +45,10 @@ pub struct Metadata {

/// Android service to place in AndroidManifest.xml.
pub android_service: Option<Vec<Service>>,
/// Android application meta_data to place in AndroidManifest.xml.
pub android_meta_data: Option<Vec<MetaData>>,
/// Android queries to place in AndroidManifest.xml.
pub android_queries: Option<Queries>,

/// Apple build targets.
pub apple_build_targets: Option<Vec<AppleTarget>>,
Expand Down
Loading