Skip to content

Commit

Permalink
Remove unused dependecy mockito
Browse files Browse the repository at this point in the history
  • Loading branch information
madadam committed Sep 7, 2023
1 parent 992f419 commit 06162f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
build_and_test:
name: build and test on ${{ matrix.name }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
name: [android, linux, windows]
Expand All @@ -21,31 +22,26 @@ jobs:
ndk:
version: r25c
abi: arm64-v8a
test-env:
OUISYNC_LIB: ouisync-plugin/ouisync/target/release/libouisync_ffi.so
build-args: apk --target-platform android-arm64

- name: linux
os: ubuntu-latest
analyze: true
test-env:
OUISYNC_LIB: ouisync-plugin/ouisync/target/release/libouisync_ffi.so
build-args:

- name: windows
os: windows-latest
test-env:
OUISYNC_LIB: D:\a\ouisync-app\ouisync-app\ouisync-plugin\ouisync\target\release\ouisync_ffi.dll
build-args:

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal

- name: Add rust target
run: rustup target add ${{ matrix.target }}
Expand All @@ -68,7 +64,7 @@ jobs:
- name: Generate ./ouisync-plugin/ouisync/target/bindings.h
run: |
cd ouisync-plugin/ouisync
cargo run --bin bindgen
cargo run --package ouisync-bindgen --bin bindgen
- uses: subosito/flutter-action@v2
with:
Expand All @@ -93,12 +89,12 @@ jobs:
cd lib && flutter analyze
cd test && flutter analyze
cd util && flutter analyze
if: matrix.analyze == 'true'
if: matrix.analyze

- name: Build Ouisync library for tests
run: |
cd ouisync-plugin/ouisync
cargo build --release -p ouisync-ffi
cargo build --package ouisync-ffi
- name: Run tests
run:
Expand Down
8 changes: 0 additions & 8 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -823,14 +823,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.0"
mockito:
dependency: "direct main"
description:
name: mockito
sha256: "8b46d7eb40abdda92d62edd01546051f0c27365e65608c284de336dccfef88cc"
url: "https://pub.dev"
source: hosted
version: "5.4.1"
mocktail:
dependency: transitive
description:
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ dependencies:
local_auth: ^2.1.2
loggy: ^2.0.1+1
mobile_scanner: ^2.0.0
mockito: ^5.1.0
move_to_background: ^1.0.2
network_info_plus: ^4.0.1
ouisync_plugin:
Expand Down

0 comments on commit 06162f4

Please sign in to comment.