android: remove special load arguments

we want to make sure we have the same onboarding path as desktop

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-07-10 13:32:52 -07:00
parent 41053dd5a5
commit 6172777b1a

View File

@@ -7,9 +7,6 @@ use notedeck_dave::Dave;
use crate::{app::NotedeckApp, chrome::Chrome, setup::setup_chrome}; use crate::{app::NotedeckApp, chrome::Chrome, setup::setup_chrome};
use notedeck::Notedeck; use notedeck::Notedeck;
use serde_json::Value;
use std::fs;
use std::path::PathBuf;
#[no_mangle] #[no_mangle]
#[tokio::main] #[tokio::main]
@@ -131,23 +128,29 @@ Using internal storage would be better but it seems hard to get the config file
the device ... the device ...
*/ */
fn get_app_args(app: AndroidApp) -> Vec<String> { fn get_app_args(_app: AndroidApp) -> Vec<String> {
let external_data_path: PathBuf = app vec!["argv0-placeholder".to_string()]
/*
use serde_json::value;
use std::fs;
use std::path::PathBuf;
let external_data_path: pathbuf = app
.external_data_path() .external_data_path()
.expect("external data path") .expect("external data path")
.to_path_buf(); .to_path_buf();
let config_file = external_data_path.join("android-config.json"); let config_file = external_data_path.join("android-config.json");
let initial_user = hex::encode(notedeck::FALLBACK_PUBKEY().bytes());
let default_args = vec![ let default_args = vec![
"argv0-placeholder", "argv0-placeholder",
"--no-tmp-columns",
"--pub", "--pub",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245", &initial_user,
"-c", "-c",
"contacts", "contacts",
"-c", "-c",
"notifications", "notifications",
"-c",
"notifications:3efdaebb1d8923ebd99c9e7ace3b4194ab45512e2be79c1b7d68d9243e0d2681",
] ]
.into_iter() .into_iter()
.map(|s| s.to_string()) .map(|s| s.to_string())
@@ -169,4 +172,5 @@ fn get_app_args(app: AndroidApp) -> Vec<String> {
} }
default_args // Return the default args if config is missing or invalid default_args // Return the default args if config is missing or invalid
*/
} }