Skip to content
Draft
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
89 changes: 62 additions & 27 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
fetch-depth: 0
submodules: recursive

- name: Use Flutter 3.44.8
run: |
git -C "$FLUTTER_HOME" fetch --depth 1 origin 058e0af2c2b57e369d905a03ac9748b0ebf543c6
git -C "$FLUTTER_HOME" checkout --detach 058e0af2c2b57e369d905a03ac9748b0ebf543c6
flutter --version

- name: Set version
id: ver
run: |
Expand Down Expand Up @@ -125,6 +131,12 @@ jobs:
fetch-depth: 0
submodules: recursive

- name: Use Flutter 3.44.8
run: |
git -C "$FLUTTER_HOME" fetch --depth 1 origin 058e0af2c2b57e369d905a03ac9748b0ebf543c6
git -C "$FLUTTER_HOME" checkout --detach 058e0af2c2b57e369d905a03ac9748b0ebf543c6
flutter --version

- name: Set version
id: ver
run: |
Expand Down Expand Up @@ -252,7 +264,7 @@ jobs:
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "build_number=${BUILD_NUMBER}" >> $GITHUB_OUTPUT

- uses: subosito/flutter-action@v2
- uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2
with:
flutter-version: '3.44.8'
channel: 'stable'
Expand Down Expand Up @@ -371,7 +383,7 @@ jobs:
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "build_number=${BUILD_NUMBER}" >> $GITHUB_OUTPUT

- uses: subosito/flutter-action@v2
- uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2
with:
flutter-version: '3.44.8'
channel: 'stable'
Expand Down Expand Up @@ -453,7 +465,7 @@ jobs:
toolchain: stable
targets: aarch64-apple-ios

- uses: subosito/flutter-action@v2
- uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2
with:
flutter-version: '3.44.8'
channel: 'stable'
Expand Down Expand Up @@ -521,6 +533,12 @@ jobs:
fetch-depth: 0
submodules: recursive

- name: Use Flutter 3.44.8
run: |
git -C "$FLUTTER_HOME" fetch --depth 1 origin 058e0af2c2b57e369d905a03ac9748b0ebf543c6
git -C "$FLUTTER_HOME" checkout --detach 058e0af2c2b57e369d905a03ac9748b0ebf543c6
flutter --version

- name: Set version
id: ver
run: |
Expand Down Expand Up @@ -585,6 +603,12 @@ jobs:
fetch-depth: 0
submodules: recursive

- name: Use Flutter 3.44.8
run: |
git -C "$FLUTTER_HOME" fetch --depth 1 origin 058e0af2c2b57e369d905a03ac9748b0ebf543c6
git -C "$FLUTTER_HOME" checkout --detach 058e0af2c2b57e369d905a03ac9748b0ebf543c6
flutter --version

- name: Set version
id: ver
run: |
Expand Down Expand Up @@ -766,6 +790,12 @@ jobs:
fetch-depth: 0
submodules: recursive

- name: Use Flutter 3.44.8
run: |
git -C "$FLUTTER_HOME" fetch --depth 1 origin 058e0af2c2b57e369d905a03ac9748b0ebf543c6
git -C "$FLUTTER_HOME" checkout --detach 058e0af2c2b57e369d905a03ac9748b0ebf543c6
flutter --version

- name: Set version
id: ver
run: |
Expand Down Expand Up @@ -880,7 +910,7 @@ jobs:
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "build_number=${BUILD_NUMBER}" >> $GITHUB_OUTPUT

- uses: subosito/flutter-action@v2
- uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2
with:
flutter-version: '3.44.8'
channel: 'stable'
Expand All @@ -895,8 +925,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.91.0
rustup default 1.91.0

- name: Configure app
run: |
Expand Down Expand Up @@ -969,7 +999,7 @@ jobs:
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "build_number=${BUILD_NUMBER}" >> $GITHUB_OUTPUT

- uses: subosito/flutter-action@v2
- uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2
with:
flutter-version: '3.44.8'
channel: 'stable'
Expand All @@ -981,8 +1011,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.91.0
rustup default 1.91.0

- name: Configure app
run: |
Expand Down Expand Up @@ -1044,7 +1074,7 @@ jobs:
toolchain: stable
targets: aarch64-apple-ios

- uses: subosito/flutter-action@v2
- uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2
with:
flutter-version: '3.44.8'
channel: 'stable'
Expand All @@ -1056,10 +1086,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.91.0
rustup default 1.91.0
rustup target add aarch64-apple-ios --toolchain 1.91.0
rustup target add x86_64-apple-ios --toolchain 1.91.0

- name: Configure app
run: |
Expand Down Expand Up @@ -1224,6 +1254,12 @@ jobs:
fetch-depth: 0
submodules: recursive

- name: Use Flutter 3.44.8
run: |
git -C "$FLUTTER_HOME" fetch --depth 1 origin 058e0af2c2b57e369d905a03ac9748b0ebf543c6
git -C "$FLUTTER_HOME" checkout --detach 058e0af2c2b57e369d905a03ac9748b0ebf543c6
flutter --version

- name: Set version
id: ver
run: |
Expand Down Expand Up @@ -1338,7 +1374,7 @@ jobs:
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "build_number=${BUILD_NUMBER}" >> $GITHUB_OUTPUT

- uses: subosito/flutter-action@v2
- uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2
with:
flutter-version: '3.44.8'
channel: 'stable'
Expand All @@ -1353,8 +1389,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.91.0
rustup default 1.91.0

- name: Configure app
run: |
Expand Down Expand Up @@ -1427,7 +1463,7 @@ jobs:
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "build_number=${BUILD_NUMBER}" >> $GITHUB_OUTPUT

- uses: subosito/flutter-action@v2
- uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2
with:
flutter-version: '3.44.8'
channel: 'stable'
Expand All @@ -1439,9 +1475,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.91.0
rustup default 1.91.0
rustup target add aarch64-apple-darwin --toolchain 1.91.0
cargo install cargo-lipo

- name: Configure app
Expand Down Expand Up @@ -1504,7 +1540,7 @@ jobs:
toolchain: stable
targets: aarch64-apple-ios

- uses: subosito/flutter-action@v2
- uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2
with:
flutter-version: '3.44.8'
channel: 'stable'
Expand All @@ -1516,10 +1552,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.91.0
rustup default 1.91.0
rustup target add aarch64-apple-ios --toolchain 1.91.0
rustup target add x86_64-apple-ios --toolchain 1.91.0

- name: Configure app
run: |
Expand Down Expand Up @@ -1667,4 +1703,3 @@ jobs:
with:
name: stack_duo-appimage-x86_64-${{ steps.ver.outputs.version }}.AppImage
path: stack_duo-appimage-x86_64-${{ steps.ver.outputs.version }}.AppImage

10 changes: 10 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
fetch-depth: 0
submodules: recursive

- name: Use Flutter 3.44.8
run: |
git -C "$FLUTTER_HOME" fetch --depth 1 origin 058e0af2c2b57e369d905a03ac9748b0ebf543c6
git -C "$FLUTTER_HOME" checkout --detach 058e0af2c2b57e369d905a03ac9748b0ebf543c6
flutter --version

- name: Configure app
run: |
cd scripts
Expand Down Expand Up @@ -56,6 +62,10 @@ jobs:
const kShopInBitPartnerSecret = "";
const kCakePayApiToken = "";
const kExolixApiKey = "";
const kLetsExchangeId = "";
const kLetsExchangeToken = "";
const kCypherGoatApiKey = "";
const kCypherGoatAffiliate = "";
EOF
fi

Expand Down
26 changes: 19 additions & 7 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.91.0 --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.91.0 \
&& cargo install cargo-ndk \
&& chmod -R a+rwX "$CARGO_HOME" "$RUSTUP_HOME"

Expand Down Expand Up @@ -83,7 +83,11 @@ RUN curl -fsSL https://go.dev/dl/go1.24.13.linux-amd64.tar.gz -o /tmp/go.tar.gz
ENV FLUTTER_HOME=/opt/flutter \
PATH=/opt/flutter/bin:/opt/flutter/bin/cache/dart-sdk/bin:$PATH

RUN git clone --depth 1 --branch 3.44.8 https://github.com/flutter/flutter.git "$FLUTTER_HOME" \
RUN git init "$FLUTTER_HOME" \
&& git -C "$FLUTTER_HOME" remote add origin https://github.com/flutter/flutter.git \
&& git -C "$FLUTTER_HOME" fetch --depth 1 origin 058e0af2c2b57e369d905a03ac9748b0ebf543c6 \
&& git -C "$FLUTTER_HOME" checkout --detach 058e0af2c2b57e369d905a03ac9748b0ebf543c6 \
&& git -C "$FLUTTER_HOME" tag 3.44.8 058e0af2c2b57e369d905a03ac9748b0ebf543c6 \
&& git config --global --add safe.directory '*' \
&& flutter config --no-analytics \
&& flutter precache --linux --android \
Expand Down Expand Up @@ -116,10 +120,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.91.0 --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.91.0 \
&& cargo install cargo-ndk \
&& chmod -R a+rwX "$CARGO_HOME" "$RUSTUP_HOME"

Expand Down Expand Up @@ -168,7 +172,11 @@ RUN curl -fsSL https://go.dev/dl/go1.24.13.linux-amd64.tar.gz -o /tmp/go.tar.gz
ENV FLUTTER_HOME=/opt/flutter \
PATH=/opt/flutter/bin:/opt/flutter/bin/cache/dart-sdk/bin:$PATH

RUN git clone --depth 1 --branch 3.44.8 https://github.com/flutter/flutter.git "$FLUTTER_HOME" \
RUN git init "$FLUTTER_HOME" \
&& git -C "$FLUTTER_HOME" remote add origin https://github.com/flutter/flutter.git \
&& git -C "$FLUTTER_HOME" fetch --depth 1 origin 058e0af2c2b57e369d905a03ac9748b0ebf543c6 \
&& git -C "$FLUTTER_HOME" checkout --detach 058e0af2c2b57e369d905a03ac9748b0ebf543c6 \
&& git -C "$FLUTTER_HOME" tag 3.44.8 058e0af2c2b57e369d905a03ac9748b0ebf543c6 \
&& git config --global --add safe.directory '*' \
&& flutter config --no-analytics \
&& flutter precache --android \
Expand Down Expand Up @@ -200,7 +208,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ENV FLUTTER_HOME=/opt/flutter \
PATH=/opt/flutter/bin:/opt/flutter/bin/cache/dart-sdk/bin:$PATH

RUN git clone --depth 1 --branch 3.44.8 https://github.com/flutter/flutter.git "$FLUTTER_HOME" \
RUN git init "$FLUTTER_HOME" \
&& git -C "$FLUTTER_HOME" remote add origin https://github.com/flutter/flutter.git \
&& git -C "$FLUTTER_HOME" fetch --depth 1 origin 058e0af2c2b57e369d905a03ac9748b0ebf543c6 \
&& git -C "$FLUTTER_HOME" checkout --detach 058e0af2c2b57e369d905a03ac9748b0ebf543c6 \
&& git -C "$FLUTTER_HOME" tag 3.44.8 058e0af2c2b57e369d905a03ac9748b0ebf543c6 \
&& git config --global --add safe.directory '*' \
&& flutter config --no-analytics \
&& flutter precache --linux \
Expand Down
22 changes: 11 additions & 11 deletions docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Here you will find instructions on how to install the necessary tools for buildi
The following instructions are for building and running on a Linux host. Alternatively, see the [Mac](#mac-host) and/or [Windows](#windows-host) section. This entire section (except for the Android Studio section) needs to be completed in WSL if building on a Windows host.

### Flutter
Install Flutter 3.38.5 by [following their guide](https://docs.flutter.dev/get-started/install/linux/desktop?tab=download#install-the-flutter-sdk). Run `flutter doctor` in a terminal to confirm its installation.
Install Flutter 3.44.8 by [following their guide](https://docs.flutter.dev/get-started/install/linux/desktop?tab=download#install-the-flutter-sdk). Run `flutter doctor` in a terminal to confirm its installation.

### Android Studio
Install Android Studio. Follow instructions here [https://developer.android.com/studio/install#linux](https://developer.android.com/studio/install#linux) or install via snap:
Expand Down Expand Up @@ -51,8 +51,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.91.0 1.85.1 1.81.0
rustup default 1.91.0
cargo install cargo-ndk
```

Expand All @@ -69,7 +69,7 @@ pip3 install --upgrade meson==0.64.1 markdown==3.4.1 markupsafe==2.1.1 jinja2==3
```

### Flutter
Install Flutter 3.38.5 by [following their guide](https://docs.flutter.dev/install/manual).
Install Flutter 3.44.8 by [following their guide](https://docs.flutter.dev/install/manual).

Run `flutter doctor` in a terminal to confirm its installation.

Expand Down Expand Up @@ -206,12 +206,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 toolchains 1.81.0, 1.85.1, and 1.91.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):
```
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.91.0 1.85.1 1.81.0
rustup default 1.91.0
cargo install cargo-ndk
cargo install cbindgen cargo-lipo
rustup target add aarch64-apple-ios aarch64-apple-darwin
Expand All @@ -220,7 +220,7 @@ rustup target add aarch64-apple-ios aarch64-apple-darwin
Optionally download [Android Studio](https://developer.android.com/studio) as an IDE and activate its Dart and Flutter plugins. VS Code may work as an alternative, but this is not recommended.

### Flutter
Install 3.38.5 on your Mac host by [following their guide](https://docs.flutter.dev/install/manual). Run `flutter doctor` in a terminal to confirm its installation.
Install 3.44.8 on your Mac host by [following their guide](https://docs.flutter.dev/install/manual). Run `flutter doctor` in a terminal to confirm its installation.

### Build plugins and configure
#### Building plugins for iOS
Expand Down Expand Up @@ -302,13 +302,13 @@ If the DLLs were built on the WSL filesystem instead of on Windows, copy the res
Frostdart will be built by the Windows host later.

### Install Flutter on Windows host
Install Flutter 3.38.5 on your Windows host (not in WSL2) by [following their guide](https://docs.flutter.dev/install/manual). Run `flutter doctor` in PowerShell to confirm its installation.
Install Flutter 3.44.8 on your Windows host (not in WSL2) by [following their guide](https://docs.flutter.dev/install/manual). Run `flutter doctor` in PowerShell to confirm its installation.

### 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.91.0 1.85.1 1.81.0
rustup default 1.91.0
cargo install cargo-ndk
```

Expand Down
Loading
Loading