This splits notedeck into: - notedeck - notedeck_chrome - notedeck_columns The `notedeck` crate is the library that `notedeck_chrome` and `notedeck_columns`, use. It contains common functionality related to notedeck apps such as the NoteCache, ImageCache, etc. The `notedeck_chrome` crate is the binary and ui chrome. It is responsible for managing themes, user accounts, signing, data paths, nostrdb, image caches etc. It will eventually have its own ui which has yet to be determined. For now it just manages the browser data, which is passed to apps via a new struct called `AppContext`. `notedeck_columns` is our columns app, with less responsibility now that more things are handled by `notedeck_chrome` There is still much work left to do before this is a proper browser: - process isolation - sandboxing - etc This is the beginning of a new era! We're just getting started. Signed-off-by: William Casarin <jb55@jb55.com>
Damus Notedeck
A multiplatform nostr client. Works on android and desktop
The desktop client is called notedeck:
Android
Look it actually runs on android!
Usage
$ ./target/release/notedeck
Developer Setup
Desktop (Linux/MacOS, Windows?)
If you're running debian-based machine like Ubuntu or ElementaryOS, all you need is to install rustup and run sudo apt install build-essential.
$ cargo run --release
Android
The dev shell should also have all of the android-sdk dependencies needed for development, but you still need the aarch64-linux-android rustup target installed:
$ rustup target add aarch64-linux-android
To run on a real device, just type:
$ cargo apk run --release
Android Emulator
- Install Android Studio
- Open 'Device Manager' in Android Studio
- Add a new device with API level
34and ABIarm64-v8a(even though the app uses 30, the 30 emulator can't find the vulkan adapter, but 34 works fine) - Start up the emulator
while the emulator is running, run:
cargo apk run --release
The app should appear on the emulator
Previews
You can preview individual widgets and views by running the preview script:
./preview RelayView
./preview ProfilePreview
# ... etc
When adding new previews you need to implement the Preview trait for your
view/widget and then add it to the src/ui_preview/main.rs bin:
previews!(runner, name,
RelayView,
AccountLoginView,
ProfilePreview,
);
Contributing
Configure the developer environment:
./scripts/dev_setup.sh
This will add the pre-commit hook to your local repository to suggest proper formatting before commits.
