Skip to content
Open
Show file tree
Hide file tree
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
34 changes: 17 additions & 17 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,8 @@ jobs:
- name: Install Rust toolchains
run: |
rustup toolchain install 1.85.1
rustup toolchain install 1.89.0
rustup default 1.89.0
rustup toolchain install 1.99.1
rustup default 1.99.1

- name: Configure app
run: |
Expand Down Expand Up @@ -903,8 +903,8 @@ jobs:
- name: Install Rust toolchains
run: |
rustup toolchain install 1.85.1
rustup toolchain install 1.89.0
rustup default 1.89.0
rustup toolchain install 1.99.1
rustup default 1.99.1

- name: Configure app
run: |
Expand Down Expand Up @@ -978,10 +978,10 @@ jobs:
- name: Install additional Rust toolchains
run: |
rustup toolchain install 1.85.1
rustup toolchain install 1.89.0
rustup default 1.89.0
rustup target add aarch64-apple-ios --toolchain 1.89.0
rustup target add x86_64-apple-ios --toolchain 1.89.0
rustup toolchain install 1.99.1
rustup default 1.99.1
rustup target add aarch64-apple-ios --toolchain 1.99.1
rustup target add x86_64-apple-ios --toolchain 1.99.1

- name: Configure app
run: |
Expand Down Expand Up @@ -1275,8 +1275,8 @@ jobs:
- name: Install Rust toolchains
run: |
rustup toolchain install 1.85.1
rustup toolchain install 1.89.0
rustup default 1.89.0
rustup toolchain install 1.99.1
rustup default 1.99.1

- name: Configure app
run: |
Expand Down Expand Up @@ -1361,9 +1361,9 @@ jobs:
- name: Install Rust toolchains
run: |
rustup toolchain install 1.85.1
rustup toolchain install 1.89.0
rustup default 1.89.0
rustup target add aarch64-apple-darwin --toolchain 1.89.0
rustup toolchain install 1.99.1
rustup default 1.99.1
rustup target add aarch64-apple-darwin --toolchain 1.99.1
cargo install cargo-lipo

- name: Configure app
Expand Down Expand Up @@ -1438,10 +1438,10 @@ jobs:
- name: Install additional Rust toolchains
run: |
rustup toolchain install 1.85.1
rustup toolchain install 1.89.0
rustup default 1.89.0
rustup target add aarch64-apple-ios --toolchain 1.89.0
rustup target add x86_64-apple-ios --toolchain 1.89.0
rustup toolchain install 1.99.1
rustup default 1.99.1
rustup target add aarch64-apple-ios --toolchain 1.99.1
rustup target add x86_64-apple-ios --toolchain 1.99.1

- name: Configure app
run: |
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ ENV RUSTUP_HOME=/usr/local/rustup \
PATH=/usr/local/cargo/bin:$PATH

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --default-toolchain 1.89.0 --profile minimal --no-modify-path \
| sh -s -- -y --default-toolchain 1.99.1 --profile minimal --no-modify-path \
&& rustup install 1.85.1 1.71.0 stable --profile minimal \
&& rustup target add x86_64-unknown-linux-gnu --toolchain 1.89.0 \
&& rustup target add x86_64-unknown-linux-gnu --toolchain 1.99.1 \
&& cargo install cargo-ndk \
&& chmod -R a+rwX "$CARGO_HOME" "$RUSTUP_HOME"

Expand Down Expand Up @@ -119,10 +119,10 @@ ENV RUSTUP_HOME=/usr/local/rustup \
PATH=/usr/local/cargo/bin:$PATH

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --default-toolchain 1.89.0 --profile minimal --no-modify-path \
| sh -s -- -y --default-toolchain 1.99.1 --profile minimal --no-modify-path \
&& rustup target add \
aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android \
--toolchain 1.89.0 \
--toolchain 1.99.1 \
&& cargo install cargo-ndk \
&& chmod -R a+rwX "$CARGO_HOME" "$RUSTUP_HOME"

Expand Down Expand Up @@ -209,7 +209,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \
PATH=/usr/local/cargo/bin:$PATH

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --default-toolchain 1.90.0 --profile minimal --no-modify-path \
| sh -s -- -y --default-toolchain 1.99.1 --profile minimal --no-modify-path \
&& chmod -R a+rwX "$CARGO_HOME" "$RUSTUP_HOME"

ENV PATH=/usr/local/go/bin:$PATH
Expand Down
14 changes: 7 additions & 7 deletions docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ Install [Rust](https://www.rust-lang.org/tools/install) via [rustup.rs](https://
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.bashrc
rustup install 1.89.0 1.85.1 1.81.0
rustup default 1.89.0
rustup install 1.99.1
rustup default 1.99.1
cargo install cargo-ndk
```

Expand Down Expand Up @@ -210,12 +210,12 @@ brew install brotli cairo coreutils gdbm gettext glib gmp libevent libidn2 libng
```
<!-- TODO: determine which of the above list are not needed at all. -->

Download and install [Rust](https://www.rust-lang.org/tools/install). [Rustup](https://rustup.rs/) is recommended for Rust setup. Use `rustc` to confirm successful installation. Install toolchains 1.81.0, 1.85.1, and 1.89.0 as well as `cbindgen` and `cargo-lipo` too. You will also have to add the platform target(s) `aarch64-apple-ios` and/or `aarch64-apple-darwin`. You can use the command(s):
Download and install [Rust](https://www.rust-lang.org/tools/install). [Rustup](https://rustup.rs/) is recommended for Rust setup. Use `rustc` to confirm successful installation. Install toolchain 1.99.1 as well as `cbindgen` and `cargo-lipo` too. You will also have to add the platform target(s) `aarch64-apple-ios` and/or `aarch64-apple-darwin`. You can use the command(s):
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.bashrc
rustup install 1.89.0 1.85.1 1.81.0
rustup default 1.89.0
rustup install 1.99.1
rustup default 1.99.1
cargo install cargo-ndk
cargo install cbindgen cargo-lipo
rustup target add aarch64-apple-ios aarch64-apple-darwin
Expand Down Expand Up @@ -309,8 +309,8 @@ Install Flutter 3.47.2 on your Windows host (not in WSL2) by [following their gu
### Rust
Install [Rust](https://www.rust-lang.org/tools/install) on the Windows host (not in WSL2). Download the installer from [rustup.rs](https://rustup.rs), make sure it works on the commandline (you may need to open a new terminal), and install the following versions:
```
rustup install 1.89.0 1.85.1 1.81.0
rustup default 1.89.0
rustup install 1.99.1
rustup default 1.99.1
cargo install cargo-ndk
```

Expand Down
24 changes: 12 additions & 12 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1005,17 +1005,17 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "920ac94cf5295df3c3ae083c6a23ff602fb0f068"
resolved-ref: "920ac94cf5295df3c3ae083c6a23ff602fb0f068"
ref: d5cfb763fa62928a6e6265e1f4412738772151eb
resolved-ref: d5cfb763fa62928a6e6265e1f4412738772151eb
url: "https://github.com/cypherstack/flutter_libepiccash.git"
source: git
version: "0.0.1"
flutter_libmwc:
dependency: "direct main"
description:
path: "."
ref: eec0f5ae0ee49d2d6e14c925d61e5d29dbd17be4
resolved-ref: eec0f5ae0ee49d2d6e14c925d61e5d29dbd17be4
ref: d8c5d5488cb00e21d0dc04ad306a65e2d54c4d3c
resolved-ref: d8c5d5488cb00e21d0dc04ad306a65e2d54c4d3c
url: "https://github.com/cypherstack/flutter_libmwc.git"
source: git
version: "0.1.0"
Expand Down Expand Up @@ -1218,8 +1218,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "3397cf62f30f1467aea781c23d84051441775f14"
resolved-ref: "3397cf62f30f1467aea781c23d84051441775f14"
ref: c8be6a0ea892d744adfacc8e97df891feca49707
resolved-ref: c8be6a0ea892d744adfacc8e97df891feca49707
url: "https://github.com/cypherstack/frostdart.git"
source: git
version: "0.3.0"
Expand Down Expand Up @@ -2378,11 +2378,11 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "5586bfa3c48e495bc00f9b56fa18869daf768573"
resolved-ref: "5586bfa3c48e495bc00f9b56fa18869daf768573"
ref: e30ed0d386a40ee4a999aeaf57aafd32921d601e
resolved-ref: e30ed0d386a40ee4a999aeaf57aafd32921d601e
url: "https://github.com/cypherstack/tor.git"
source: git
version: "0.1.0"
version: "0.2.0"
tuple:
dependency: "direct main"
description:
Expand Down Expand Up @@ -2669,9 +2669,9 @@ packages:
dependency: "direct main"
description:
path: "."
ref: dc953e2f2e960b7ffbf636fc72ed2142a71ef963
resolved-ref: dc953e2f2e960b7ffbf636fc72ed2142a71ef963
url: "https://github.com/xelis-project/xelis-wallet-flutter.git"
ref: "8630a2cf28947497ec67b7535ddf1fac4cedbaa8"
resolved-ref: "8630a2cf28947497ec67b7535ddf1fac4cedbaa8"
url: "https://github.com/cypherstack/xelis-wallet-flutter.git"
source: git
version: "0.4.1"
xml:
Expand Down
24 changes: 12 additions & 12 deletions scripts/app_config/templates/pubspec.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies:
# frostdart:
# git:
# url: https://github.com/cypherstack/frostdart.git
# ref: 3397cf62f30f1467aea781c23d84051441775f14
# ref: c8be6a0ea892d744adfacc8e97df891feca49707
# %%END_ENABLE_FROST%%

# %%ENABLE_XEL%%
Expand All @@ -39,8 +39,8 @@ dependencies:
# ref: f1e912cf549d311f6ccbb065b1d1d5c70f42b578 # v0.36.0
# xelis_wallet_flutter:
# git:
# url: https://github.com/xelis-project/xelis-wallet-flutter.git
# ref: dc953e2f2e960b7ffbf636fc72ed2142a71ef963 # v0.4.1
# url: https://github.com/cypherstack/xelis-wallet-flutter.git
# ref: 8630a2cf28947497ec67b7535ddf1fac4cedbaa8 # v0.4.1 + Rust 1.99.1 (cypherstack fork)
# %%END_ENABLE_XEL%%

# %%ENABLE_FIRO%%
Expand All @@ -54,21 +54,21 @@ dependencies:
# flutter_libepiccash:
# git:
# url: https://github.com/cypherstack/flutter_libepiccash.git
# ref: 920ac94cf5295df3c3ae083c6a23ff602fb0f068
# ref: d5cfb763fa62928a6e6265e1f4412738772151eb
# %%END_ENABLE_EPIC%%

# %%ENABLE_MWC%%
# flutter_libmwc:
# git:
# url: https://github.com/cypherstack/flutter_libmwc.git
# ref: eec0f5ae0ee49d2d6e14c925d61e5d29dbd17be4
# ref: d8c5d5488cb00e21d0dc04ad306a65e2d54c4d3c
# %%END_ENABLE_MWC%%

# %%ENABLE_TOR%%
# tor_ffi_plugin:
# git:
# url: https://github.com/cypherstack/tor.git
# ref: 5586bfa3c48e495bc00f9b56fa18869daf768573
# ref: e30ed0d386a40ee4a999aeaf57aafd32921d601e
# %%END_ENABLE_TOR%%

# %%ENABLE_XMR%%
Expand Down Expand Up @@ -375,16 +375,16 @@ dependency_overrides:
# user_defines:
# tor_ffi_plugin:
# native_build: prebuilt
# prebuilt_manifest_url: "https://github.com/cypherstack/tor/releases/download/native-0.1.0/manifest.json"
# prebuilt_manifest_sha256: "00a988a2c0994dff300bb19493e935b0d4eae2b506d02af9dd69ddad65805a24"
# prebuilt_manifest_url: "https://github.com/cypherstack/tor/releases/download/native-0.2.0/manifest.json"
# prebuilt_manifest_sha256: "0008ecf60b52a5ba1ffecb2f5951a5d5c4bbffdb71ab470259d62d4abc314c4b"
# flutter_libepiccash:
# native_build: prebuilt
# prebuilt_manifest_url: "https://github.com/cypherstack/flutter_libepiccash/releases/download/native-0.3.0/manifest.json"
# prebuilt_manifest_sha256: "19be31940f7a58af98f315032d13c0a7c43a45bbcc86847587a6d1593985603a"
# prebuilt_manifest_url: "https://github.com/cypherstack/flutter_libepiccash/releases/download/native-0.3.0-1/manifest.json"
# prebuilt_manifest_sha256: "ab91bef838c8e658c5167e3ff6599eec1e0db24223de20394658a277913aec38"
# flutter_libmwc:
# native_build: prebuilt
# prebuilt_manifest_url: "https://github.com/cypherstack/flutter_libmwc/releases/download/native-0.1.0-1/manifest.json"
# prebuilt_manifest_sha256: "956fbf9a9d5d4624d9d7ea19fb4c07057c5612e32efa62f5f609a189ace16276"
# prebuilt_manifest_url: "https://github.com/cypherstack/flutter_libmwc/releases/download/native-0.1.7/manifest.json"
# prebuilt_manifest_sha256: "c83b8d57c4bde1f88d580587f8df91480bb083a95e58bbf0f0a3c47855e6522d"
# %%END_ENABLE_NATIVE_PREBUILTS%%

# For information on the generic Dart part of this file, see the
Expand Down
3 changes: 1 addition & 2 deletions tool/wl_templates/TOR_tor_service_impl.template.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ class _TorServiceImpl extends TorService {
return;
}

_tor!.disable();
await _tor?.stop();
await _tor!.stop();

_updateStatusAndFireEvent(
status: TorConnectionStatus.disconnected,
Expand Down
Loading