notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 4379466d1db434387be5569f61e375059d634df7
parent 4a4fb0642570a87698ee2bdd691deba7cc371d72
Author: William Casarin <jb55@jb55.com>
Date:   Mon,  9 Sep 2024 16:08:41 -0700

android: launch with initial options

Feel free to change to have a customized android build

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/lib.rs | 16+++++++++++++++-
Msrc/macos_key_storage.rs | 2+-
2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/lib.rs b/src/lib.rs @@ -72,9 +72,23 @@ pub async fn android_main(app: AndroidApp) { builder.with_android_app(app); })); + let args = vec![ + "--pub", + "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245", + "-c", + "contacts", + "-c", + "notifications", + "-c", + "notifications:3efdaebb1d8923ebd99c9e7ace3b4194ab45512e2be79c1b7d68d9243e0d2681", + ] + .into_iter() + .map(|s| s.to_string()) + .collect(); + let _res = eframe::run_native( "Damus NoteDeck", options, - Box::new(|cc| Ok(Box::new(Damus::new(cc, path, vec![])))), + Box::new(move |cc| Ok(Box::new(Damus::new(cc, path, args)))), ); } diff --git a/src/macos_key_storage.rs b/src/macos_key_storage.rs @@ -91,7 +91,7 @@ impl<'a> MacOSKeyStorage<'a> { .iter() .map(|pubkey| { let maybe_secret = self.get_secret_key_for_pubkey(pubkey); - Keypair::new(pubkey.clone(), maybe_secret) + Keypair::new(*pubkey, maybe_secret) }) .collect() }