Skip to content

Commit

Permalink
refactor(launcher): refactor client APK installation from launcher (#…
Browse files Browse the repository at this point in the history
…2531)

* Refactor client APK installation from launcher

* Apply requested changes
  • Loading branch information
E1int authored and zmerp committed Jan 15, 2025
1 parent 606286b commit 569e617
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 172 deletions.
142 changes: 54 additions & 88 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion alvr/adb/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn get_command(adb_path: &str, args: &[&str]) -> Command {
command
}

fn download(url: &str, progress_callback: impl Fn(usize, Option<usize>)) -> Result<Vec<u8>> {
pub fn download(url: &str, progress_callback: impl Fn(usize, Option<usize>)) -> Result<Vec<u8>> {
let agent = ureq::builder()
.timeout_connect(REQUEST_TIMEOUT)
.timeout_read(REQUEST_TIMEOUT)
Expand Down
8 changes: 4 additions & 4 deletions alvr/adb/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
mod commands;
pub mod commands;
mod parse;

use alvr_common::anyhow::Result;
use alvr_common::{dbg_connection, error};
use alvr_session::{ClientFlavor, ConnectionConfig};
use std::collections::HashSet;

const PACKAGE_NAME_STORE: &str = "alvr.client";
const PACKAGE_NAME_GITHUB_DEV: &str = "alvr.client.dev";
const PACKAGE_NAME_GITHUB_STABLE: &str = "alvr.client.stable";
pub const PACKAGE_NAME_STORE: &str = "alvr.client";
pub const PACKAGE_NAME_GITHUB_DEV: &str = "alvr.client.dev";
pub const PACKAGE_NAME_GITHUB_STABLE: &str = "alvr.client.stable";

pub enum WiredConnectionStatus {
Ready,
Expand Down
Loading

0 comments on commit 569e617

Please sign in to comment.