Skip to content

Commit d6a537b

Browse files
authored
Merge branch 'master' into dev
2 parents 59899cd + 7b4f767 commit d6a537b

File tree

4 files changed

+107
-35
lines changed

4 files changed

+107
-35
lines changed

.github/workflows/ci.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
flutter_test:
12+
name: run flutter test and analyze
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-java@v1
17+
with:
18+
java-version: "12.x"
19+
- uses: subosito/[email protected]
20+
with:
21+
channel: "stable"
22+
- run: flutter pub get
23+
- run: flutter analyze
24+
- run: flutter test --coverage
25+
- uses: codecov/codecov-action@v1
26+
with:
27+
token: ${{ secrets.CODECOV_TOKEN }}
28+
file: coverage/lcov.info
29+
30+
build_android_apk:
31+
name: Build Flutter (Anroid APK)
32+
needs: [flutter_test]
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v2
36+
- uses: actions/setup-java@v1
37+
with:
38+
java-version: "12.x"
39+
- uses: subosito/[email protected]
40+
with:
41+
channel: stable
42+
- run: flutter pub get
43+
- run: flutter clean
44+
- run: flutter build apk --release
45+
# Upload generated apk to the artifacts.
46+
- uses: actions/upload-artifact@v1
47+
with:
48+
name: release-apk
49+
path: build/app/outputs/apk/release/app-release.apk
50+
51+
build_android_appbundle:
52+
name: Build Flutter (Anroid AppBundle)
53+
needs: [flutter_test]
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v2
57+
- uses: actions/setup-java@v1
58+
with:
59+
java-version: "12.x"
60+
- uses: subosito/[email protected]
61+
with:
62+
channel: stable
63+
- run: flutter pub get
64+
- run: flutter clean
65+
- run: flutter build appbundle
66+
# Upload generated apk to the artifacts.
67+
- uses: actions/upload-artifact@v1
68+
with:
69+
name: release-appbundle
70+
path: build/app/outputs/bundle/release/app-release.aab
71+
72+
# build_ios:
73+
# name: Build Flutter (iOS)
74+
# needs: [flutter_test]
75+
# runs-on: macos-latest
76+
# steps:
77+
# - uses: actions/checkout@v2
78+
# - uses: actions/setup-java@v1
79+
# with:
80+
# java-version: "12.x"
81+
# - uses: subosito/[email protected]
82+
# with:
83+
# channel: stable
84+
# - run: flutter pub get
85+
# - run: flutter clean
86+
# - run: flutter build ios

README.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
1-
# architecture_example
1+
<p align="center">
2+
<a href="https://github.com/Azerbaijan-Flutter-Users-Community/Flutter-App-Architecture/actions">
3+
<img alt="GitHub Workflow Status (branch)" src="https://img.shields.io/github/workflow/status/yusubx/Flutter-App-Architecture/Coverage/master">
4+
</a>
25

3-
A new Flutter project.
6+
<a href="https://app.codecov.io/gh/Azerbaijan-Flutter-Users-Community/Flutter-App-Architecture">
7+
<img alt="Codecov" src="https://img.shields.io/codecov/c/github/Azerbaijan-Flutter-Users-Community/Flutter-App-Architecture">
8+
</a>
49

5-
## Getting Started
10+
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/Azerbaijan-Flutter-Users-Community/Flutter-App-Architecture?style=flat">
611

7-
This project is a starting point for a Flutter application.
12+
<img alt="GitHub top language" src="https://img.shields.io/github/languages/top/Azerbaijan-Flutter-Users-Community/Flutter-App-Architecture">
813

9-
A few resources to get you started if this is your first Flutter project:
14+
<center>
15+
<h1 align="center">Flutter App Architecture Example</h1>
16+
</center>
17+
</p>
1018

11-
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12-
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
19+
The app includes some approach to structure Flutter Apps more clear.
1320

14-
For help getting started with Flutter, view our
15-
[online documentation](https://flutter.dev/docs), which offers tutorials,
16-
samples, guidance on mobile development, and a full API reference.
21+
22+
----
23+
### Maintainers
24+
25+
[Kanan Yusubov](https://www.github.com/yusubx)

coverage/lcov.info

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,4 @@ DA:18,3
1818
DA:19,1
1919
LF:6
2020
LH:6
21-
end_of_record
22-
SF:lib\locator.dart
23-
DA:4,0
24-
DA:6,3
25-
DA:8,2
26-
DA:10,0
27-
DA:12,0
28-
DA:14,0
29-
DA:15,0
30-
DA:17,0
31-
DA:18,0
32-
DA:26,1
33-
DA:27,4
34-
DA:28,0
35-
DA:31,1
36-
DA:32,3
37-
DA:35,1
38-
DA:36,2
39-
DA:37,3
40-
DA:40,1
41-
DA:42,2
42-
LF:19
43-
LH:11
44-
end_of_record
21+
end_of_record

lib/services/preferences_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PreferencesService implements BasePreferencesService {
1818
try {
1919
_instance = PreferencesService._();
2020
_instance?._sharedPreferences = await SharedPreferences.getInstance();
21-
} on Exception catch (e) {
21+
} on Exception catch (_) {
2222
// TODO: Something
2323
}
2424
}

0 commit comments

Comments
 (0)