Skip to content

Commit da2740b

Browse files
authored
Merge pull request #217 from Eldar2021/ai/adding-crashlytics
Integrated FirebaseCrashlytics
2 parents aa1a608 + 823dfd8 commit da2740b

34 files changed

+392
-66
lines changed

.fvmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"flutter": "3.19.5"
3+
}

.github/workflows/analyze_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
channel: "stable"
1919
- run: flutter doctor
2020

21+
- run: dart pub global activate flutterfire_cli
22+
2123
- name: "Melos Install"
2224
run: dart pub global activate melos
2325

.github/workflows/build_android.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
channel: "stable"
2323
- run: flutter doctor
2424

25+
- run: dart pub global activate flutterfire_cli
26+
2527
- name: "Melos Install"
2628
run: dart pub global activate melos
2729

.github/workflows/build_ios.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build_ios:
11-
runs-on: macos-12
11+
runs-on: macos-latest
1212
steps:
1313
- uses: actions/checkout@v3
1414
- uses: subosito/flutter-action@v2
@@ -18,6 +18,8 @@ jobs:
1818
architecture: x64
1919
- run: flutter doctor
2020

21+
- run: dart pub global activate flutterfire_cli
22+
2123
- name: "Melos Install"
2224
run: dart pub global activate melos
2325

.github/workflows/ci_android.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
cache: gradle
3131
- run: flutter doctor -v
3232

33+
- run: dart pub global activate flutterfire_cli
34+
3335
- name: "Melos Install"
3436
run: dart pub global activate melos
3537

.github/workflows/ci_ios.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
channel: stable
2727
- run: flutter doctor -v
2828

29+
- run: dart pub global activate flutterfire_cli
30+
2931
- name: "Melos Install"
3032
run: dart pub global activate melos
3133

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
# Miscellaneous
43
*.class
54
*.log
@@ -65,3 +64,5 @@ app/android/fastlane/metadata/android/en-US/images/phoneScreenshots/
6564
**/build/
6665
# keep the .lock file from the workspace and the app.
6766
packages/**/pubspec.lock
67+
# FVM Version Cache
68+
.fvm/

.vscode/settings.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
2-
"dart.lineLength": 120,
3-
"git.ignoreLimitWarning": true,
4-
"explorer.autoReveal": false,
2+
"dart.lineLength": 120,
3+
"git.ignoreLimitWarning": true,
4+
"explorer.autoReveal": false,
5+
"dart.flutterSdkPath": ".fvm/versions/3.19.5",
6+
"search.exclude": {
7+
"**/.fvm": true
8+
},
9+
"files.watcherExclude": {
10+
"**/.fvm": true
11+
}
512
}

README.md

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,56 +26,78 @@ My Quran Hatim Aplication.
2626
### Getting Started
2727

2828
## Requirements
29+
2930
- Dart sdk: ">=3.3.0 <4.0.0"
3031
- Flutter: "3.19.5"
3132
- Android: minSdkVersion 19
3233
- iOS: --ios-language swift, Xcode version >= 15.0.0
3334

3435
## Melos
36+
3537
[Melos](https://melos.invertase.dev/) splitting up large code bases into separate independently versioned packages is extremely useful for code sharing. However, making changes across many repositories is messy and difficult to track, and testing across repositories gets complicated really fast.
3638
To solve these (and many other) problems, some projects will organize their code bases into multi-package repositories (sometimes called [monorepos](https://en.wikipedia.org/wiki/Monorepo)).
3739

38-
* Install melos
40+
- Install melos
41+
3942
```shell
4043
dart pub global activate melos
4144
```
45+
4246
Setup
47+
4348
```shell
4449
melos bootstrap
4550
```
4651

4752
## Run App
48-
* If you have an AVD or real device attached, you can do
53+
54+
- If you have an AVD or real device attached, you can do
55+
4956
```shell
5057
melos run-app
5158
```
5259

5360
## Run tests
54-
* run all tests from the command line:
61+
62+
- run all tests from the command line:
63+
5564
```shell
5665
melos test
5766
```
5867

5968
## Integration tests
60-
* run integration tests in `test_driver` directory:
69+
70+
- run integration tests in `test_driver` directory:
71+
6172
```shell
6273
melos integration-test
6374
```
6475

6576
## Fmt
66-
`dartfmt` lacks config file support, which implies that customizations need to be done by users individually. The default
67-
limit of 80 characters line length conflicts with the deeply nested structure of flutter's declarative code for designing
77+
78+
`dartfmt` lacks config file support, which implies that customizations need to be done by users individually. The default
79+
limit of 80 characters line length conflicts with the deeply nested structure of flutter's declarative code for designing
6880
widgets. This causes many unwanted linebreaks that reduce the readability of flutter code. Hence, we increase the line
6981
length of the code to 120.
7082

71-
* Settings > Dart > Line length 120.
72-
* Autoformat on save: Settings > Languages and Frameworks > then tick: `Format code on save`, `Organize imports on save`.
73-
* Format the whole codebase with:
83+
- Settings > Dart > Line length 120.
84+
- Autoformat on save: Settings > Languages and Frameworks > then tick: `Format code on save`, `Organize imports on save`.
85+
- Format the whole codebase with:
86+
7487
```shell
7588
melos format-all
7689
```
90+
7791
## Generate
78-
* Re generate .g files run:
92+
93+
- Re generate .g files run:
94+
7995
```shell
8096
melos run-build-runner-all
81-
```
97+
```
98+
99+
### Installing iOS Dependencies
100+
101+
```sh
102+
./scripts/pod_install.sh
103+
```

app/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ if (flutterVersionName == null) {
3030
apply plugin: 'com.android.application'
3131
// START: FlutterFire Configuration
3232
apply plugin: 'com.google.gms.google-services'
33+
apply plugin: 'com.google.firebase.crashlytics'
3334
// END: FlutterFire Configuration
3435
apply plugin: 'kotlin-android'
3536
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

app/android/app/google-services.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
"client_type": 3
5656
},
5757
{
58-
"client_id": "417182149715-jknocdcmfmmahvr2fup4slmkltqdq9l4.apps.googleusercontent.com",
58+
"client_id": "417182149715-icusnhceqetnqlinprnn9o8tamct4g7q.apps.googleusercontent.com",
5959
"client_type": 2,
6060
"ios_info": {
61-
"bundle_id": "com.example"
61+
"bundle_id": "com.alee.hatimapp"
6262
}
6363
}
6464
]

app/android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ buildscript {
88
dependencies {
99
// START: FlutterFire Configuration
1010
classpath 'com.google.gms:google-services:4.3.15'
11+
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
1112
// END: FlutterFire Configuration
1213
classpath 'com.android.tools.build:gradle:7.1.2'
1314
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

app/firebase.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"default": {
1313
"projectId": "my-quran-01",
1414
"appId": "1:417182149715:ios:f6d207c487b6110e76eaa6",
15-
"uploadDebugSymbols": false,
15+
"uploadDebugSymbols": true,
1616
"fileOutput": "ios/Runner/GoogleService-Info.plist"
1717
}
1818
},

0 commit comments

Comments
 (0)