Skip to content
Open
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
4 changes: 2 additions & 2 deletions cargo-apk/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::collections::HashMap;

use cargo_apk::{ApkBuilder, Error};
use cargo_subcommand::Subcommand;
use cargo_subcommand::{ArtifactType, Subcommand};
use clap::{CommandFactory, FromArgMatches, Parser};

#[derive(Parser)]
Expand Down Expand Up @@ -152,7 +152,7 @@ fn main() -> anyhow::Result<()> {
ApkSubCmd::Build { args } => {
let cmd = Subcommand::new(args.subcommand_args)?;
let builder = ApkBuilder::from_subcommand(&cmd, args.device)?;
for artifact in cmd.artifacts() {
for artifact in cmd.artifacts().filter(|a| a.r#type == ArtifactType::Lib) {
builder.build(artifact)?;
}
}
Expand Down
Loading