diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7bb878c0..e671a657 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -283,6 +283,7 @@ jobs: run: | mkdir ui/flutter/android/app/libs go install golang.org/x/mobile/cmd/gomobile@latest + go get golang.org/x/mobile/bind gomobile init gomobile bind -tags nosqlite -ldflags="-w -s" -o ui/flutter/android/app/libs/libgopeed.aar -target=android -androidapi 19 -javapkg=com.gopeed github.com/GopeedLab/gopeed/bind/mobile cd ui/flutter diff --git a/README.md b/README.md index b42145ab..c6f42f1b 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Visit ✈️[Official Website](https://gopeed.com) use `go install`: ```bash -go install github.com/GopeedLab/gopeed/cmd/gopeed +go install github.com/GopeedLab/gopeed/cmd/gopeed@latest ``` ### Docker @@ -125,6 +125,7 @@ Same as before, you also need to prepare the `cgo` environment, and then install ```bash go install golang.org/x/mobile/cmd/gomobile@latest +go get golang.org/x/mobile/bind gomobile init ``` diff --git a/README_zh-CN.md b/README_zh-CN.md index 2a3b4704..d512afb3 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -35,7 +35,7 @@ Gopeed(全称 Go Speed),是一款由`Golang`+`Flutter`开发的高速下 使用`go install`安装: ```bash -go install github.com/GopeedLab/gopeed/cmd/gopeed +go install github.com/GopeedLab/gopeed/cmd/gopeed@latest ``` ### Docker @@ -124,6 +124,7 @@ flutter build linux ```bash go install golang.org/x/mobile/cmd/gomobile@latest +go get golang.org/x/mobile/bind gomobile init ``` diff --git a/ui/flutter/android/app/libs/.gitkeep b/ui/flutter/android/app/libs/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/ui/flutter/lib/util/log_util.dart b/ui/flutter/lib/util/log_util.dart index 6bd45235..d7611756 100644 --- a/ui/flutter/lib/util/log_util.dart +++ b/ui/flutter/lib/util/log_util.dart @@ -2,7 +2,6 @@ import 'dart:io'; import 'package:flutter/foundation.dart'; import 'package:logger/logger.dart'; -import 'package:logger/src/outputs/file_output.dart'; import 'util.dart'; diff --git a/ui/flutter/pubspec.lock b/ui/flutter/pubspec.lock index 5311afce..51a23937 100644 --- a/ui/flutter/pubspec.lock +++ b/ui/flutter/pubspec.lock @@ -458,10 +458,10 @@ packages: dependency: "direct main" description: name: logger - sha256: "5076f09225f91dc49289a4ccb92df2eeea9ea01cf7c26d49b3a1f04c6a49eec1" + sha256: db2ff852ed77090ba9f62d3611e4208a3d11dfa35991a81ae724c113fcb3e3f7 url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.0" + version: "1.3.0" logging: dependency: transitive description: diff --git a/ui/flutter/pubspec.yaml b/ui/flutter/pubspec.yaml index f107ad48..efa4cffc 100644 --- a/ui/flutter/pubspec.yaml +++ b/ui/flutter/pubspec.yaml @@ -47,7 +47,7 @@ dependencies: rounded_loading_button: ^2.1.0 url_launcher: ^6.1.6 shared_preferences: ^2.0.15 - logger: ^1.1.0 + logger: ^1.3.0 desktop_drop: ^0.3.3 intl: ^0.17.0 package_info_plus: ^3.0.2