Skip to content

Commit 3b03deb

Browse files
authored
chore: update sdk version, yaru and add CI and release workflows (#1)
* chore: update sdk version, yaru and add CI and release workflows
1 parent 43902a3 commit 3b03deb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+776
-1546
lines changed

.github/workflows/ci.yaml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
env:
8+
FLUTTER_VERSION: '3.24.3'
9+
10+
jobs:
11+
analyze:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: subosito/flutter-action@v2
16+
with:
17+
channel: 'stable'
18+
flutter-version: ${{env.FLUTTER_VERSION}}
19+
- run: flutter pub get
20+
- run: flutter analyze --fatal-infos
21+
22+
format:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: subosito/flutter-action@v2
27+
with:
28+
channel: 'stable'
29+
flutter-version: ${{env.FLUTTER_VERSION}}
30+
- run: flutter pub get
31+
- run: dart format --set-exit-if-changed .
32+
33+
# test:
34+
# runs-on: ubuntu-latest
35+
# steps:
36+
# - uses: actions/checkout@v4
37+
# - uses: subosito/flutter-action@v2
38+
# with:
39+
# channel: 'stable'
40+
# flutter-version: ${{env.FLUTTER_VERSION}}
41+
# - run: flutter test
42+
43+
build:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: subosito/flutter-action@v2
48+
with:
49+
channel: 'stable'
50+
flutter-version: ${{env.FLUTTER_VERSION}}
51+
- run: sudo apt update
52+
- run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev
53+
- run: flutter pub get
54+
- run: flutter build linux -v

.github/workflows/release.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: googleapis/release-please-action@v4
18+
with:
19+
release-type: dart

analysis_options.yaml

+26-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
1-
include: package:lint/analysis_options.yaml
1+
include: package:flutter_lints/flutter.yaml
22

3-
analyzer:
4-
exclude:
5-
- lib/generated_plugin_registrant.dart
6-
- lib/**/*.g.dart
3+
linter:
4+
rules:
5+
prefer_single_quotes: true
6+
require_trailing_commas: true
7+
always_declare_return_types: true
8+
avoid_catches_without_on_clauses: true
9+
avoid_equals_and_hash_code_on_mutable_classes: true
10+
avoid_types_on_closure_parameters: true
11+
cancel_subscriptions: true
12+
directives_ordering: true
13+
eol_at_end_of_file: true
14+
prefer_asserts_in_initializer_lists: true
15+
prefer_const_constructors: true
16+
prefer_final_in_for_each: true
17+
prefer_final_locals: true
18+
prefer_null_aware_method_calls: true
19+
prefer_null_aware_operators: true
20+
sort_unnamed_constructors_first: true
21+
sort_pub_dependencies: true
22+
type_annotate_public_apis: true
23+
unawaited_futures: true
24+
unnecessary_lambdas: true
25+
unnecessary_parenthesis: true
26+
use_named_constants: true
27+
use_super_parameters: true

clipboard_viewer/.gitignore

-44
This file was deleted.

clipboard_viewer/.metadata

-30
This file was deleted.

clipboard_viewer/.vscode/launch.json

-26
This file was deleted.

clipboard_viewer/README.md

-16
This file was deleted.

clipboard_viewer/analysis_options.yaml

-8
This file was deleted.

clipboard_viewer/lib/main.dart

-91
This file was deleted.

clipboard_viewer/linux/.gitignore

-1
This file was deleted.

0 commit comments

Comments
 (0)