-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reorganize tools structure * Downgrade bundletool version * Fix import Co-authored-by: David Ackerman <enfipy@gmail.com>
- Loading branch information
Showing
43 changed files
with
112 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
use crate::error::*; | ||
use clap::Parser; | ||
use crossbundle_tools::{commands::android, tools::AndroidSdk, utils::Config}; | ||
use crossbundle_tools::{ | ||
commands::android::common::attach_logger_only_rust, tools::AndroidSdk, utils::Config, | ||
}; | ||
|
||
#[derive(Parser, Clone, Debug)] | ||
pub struct AndroidLogCommand; | ||
|
||
impl AndroidLogCommand { | ||
pub fn run(&self, _config: &Config) -> Result<()> { | ||
let sdk = AndroidSdk::from_env()?; | ||
android::attach_logger_only_rust(&sdk)?; | ||
attach_logger_only_rust(&sdk)?; | ||
Ok(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
pub mod attach_logger; | ||
pub mod detect_abi; | ||
pub mod extract_archive; | ||
pub mod gen_key; | ||
pub mod helper_functions; | ||
pub mod read_manifest; | ||
pub mod rust_compile; | ||
pub mod save_manifest; | ||
pub mod start_app; | ||
pub mod write_zip; | ||
|
||
pub use attach_logger::*; | ||
pub use detect_abi::*; | ||
pub use gen_key::*; | ||
pub use helper_functions::*; | ||
pub use read_manifest::*; | ||
pub use rust_compile::*; | ||
pub use save_manifest::*; | ||
pub use start_app::*; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...e/tools/src/commands/android/start_apk.rs → .../src/commands/android/common/start_app.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pub mod gen_gradle_project; | ||
pub mod gradle_init; | ||
|
||
pub use gen_gradle_project::*; | ||
pub use gradle_init::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,3 @@ | ||
///! Commands for compiling rust code for `Android`, | ||
///! generation/aligning/signing/installing/starting on device APKs and AAB, | ||
///! generation `AndroidManifest.xml` and so on. | ||
mod add_libs_into_aapt2; | ||
mod add_libs_into_apk; | ||
mod align_apk; | ||
mod attach_logger; | ||
mod detect_abi; | ||
mod extract_apk; | ||
pub mod generate; | ||
mod gradle_command; | ||
mod helper_functions; | ||
mod install_apk; | ||
mod read_manifest; | ||
mod rust_compile; | ||
mod save_manifest; | ||
mod sign_apk; | ||
mod start_apk; | ||
mod write_zip; | ||
|
||
pub use add_libs_into_aapt2::*; | ||
pub use add_libs_into_apk::*; | ||
pub use align_apk::*; | ||
pub use attach_logger::*; | ||
pub use detect_abi::*; | ||
pub use extract_apk::*; | ||
pub use generate::*; | ||
pub use gradle_command::*; | ||
pub use helper_functions::*; | ||
pub use install_apk::*; | ||
pub use read_manifest::*; | ||
pub use rust_compile::*; | ||
pub use save_manifest::*; | ||
pub use sign_apk::*; | ||
pub use start_apk::*; | ||
pub use write_zip::*; | ||
pub mod common; | ||
pub mod gradle; | ||
pub mod native; |
2 changes: 1 addition & 1 deletion
2
...c/commands/android/add_libs_into_aapt2.rs → ...android/native/aab/add_libs_into_aapt2.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.