Skip to content

Commit

Permalink
[Enhancement] Crashlytics & Connection Loss (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobkoerber authored Dec 13, 2023
1 parent c3b76e7 commit 542ec4a
Show file tree
Hide file tree
Showing 159 changed files with 1,544 additions and 860 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
with:
distribution: 'corretto'
java-version: '17'
cache: 'gradle'

- name: Install Flutter Packages
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/lint_test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
with:
distribution: 'corretto'
java-version: '17'
cache: 'gradle'

- name: Build iOS
run: flutter build ipa --no-codesign
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ protoc --dart_out=grpc:lib/base/networking/apis -I./protos google/protobuf/times

To ensure that Campus-Flutter runs on every supported platform, we need to make some modifications to packages.

| Package | Reason | Link |
|-------------------------|------------------------------------------|----------------------------------------------|
| gRPC | Caching | https://github.com/jakobkoerber/grpc-dart |
| Google Maps Flutter iOS | Enable usage of SDK in ARM iOS Siulators | https://github.com/jakobkoerber/packages |
| Xml2Json | Fix Parsing of XML to JSON | https://github.com/jakobkoerber/xml2json |
| Package | Reason | Link |
|-------------------------|-------------------------------------------|----------------------------------------------|
| gRPC | Caching | https://github.com/jakobkoerber/grpc-dart |
| Google Maps Flutter iOS | Enable usage of SDK in ARM iOS Simulators | https://github.com/jakobkoerber/packages |
| Xml2Json | Fix Parsing of XML to JSON | https://github.com/jakobkoerber/xml2json |



6 changes: 6 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ if (flutterVersionName == null) {
}

apply plugin: 'com.android.application'
// START: FlutterFire Configuration
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
// END: FlutterFire Configuration
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

Expand Down Expand Up @@ -84,3 +88,5 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:multidex'
}

apply plugin: 'com.google.firebase.crashlytics'
138 changes: 138 additions & 0 deletions android/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
{
"project_info": {
"project_number": "944892355389",
"firebase_url": "https://tca-backend-0001.firebaseio.com",
"project_id": "tca-backend-0001",
"storage_bucket": "tca-backend-0001.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:944892355389:android:48ced28754063978",
"android_client_info": {
"package_name": "de.tum.in.tca.ticketcheck"
}
},
"oauth_client": [
{
"client_id": "944892355389-5ql9uckm68cmeejqqvqujj6e9atd6b80.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyD917lW3Y2-x8UiWfUdzKDnI1iO7Qt7Z5s"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "944892355389-5ql9uckm68cmeejqqvqujj6e9atd6b80.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "944892355389-l9qq6ekquoal46shionj0utr7sjbg4lp.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "de.tum.campusapp",
"app_store_id": "1217412716"
}
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:944892355389:android:3fec122c5eb51ef4",
"android_client_info": {
"package_name": "de.tum.in.tumcampus"
}
},
"oauth_client": [
{
"client_id": "944892355389-jat7kf35dqlvc2uvlsh3vbuq8ge6s6s5.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "de.tum.in.tumcampus",
"certificate_hash": "fa8436ae46f44a276d59db577810070203a0a663"
}
},
{
"client_id": "944892355389-t2igukqg4jjlhac5ejhbno14tig805f8.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "de.tum.in.tumcampus",
"certificate_hash": "52d9be542408f7bc4473aae24107f0cdd4dd6905"
}
},
{
"client_id": "944892355389-5ql9uckm68cmeejqqvqujj6e9atd6b80.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyD917lW3Y2-x8UiWfUdzKDnI1iO7Qt7Z5s"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "944892355389-5ql9uckm68cmeejqqvqujj6e9atd6b80.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "944892355389-l9qq6ekquoal46shionj0utr7sjbg4lp.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "de.tum.campusapp",
"app_store_id": "1217412716"
}
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:944892355389:android:510d92307b08a9c352db54",
"android_client_info": {
"package_name": "de.tum.tca_flutter"
}
},
"oauth_client": [
{
"client_id": "944892355389-5ql9uckm68cmeejqqvqujj6e9atd6b80.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyD917lW3Y2-x8UiWfUdzKDnI1iO7Qt7Z5s"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "944892355389-5ql9uckm68cmeejqqvqujj6e9atd6b80.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "944892355389-l9qq6ekquoal46shionj0utr7sjbg4lp.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "de.tum.campusapp",
"app_store_id": "1217412716"
}
}
]
}
}
}
],
"configuration_version": "1"
}
4 changes: 4 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ buildscript {

dependencies {
classpath 'com.android.tools.build:gradle:7.2.0'
// START: FlutterFire Configuration
classpath 'com.google.gms:google-services:4.3.10'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
// END: FlutterFire Configuration
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
102 changes: 92 additions & 10 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,47 @@
PODS:
- connectivity_plus (0.0.1):
- Flutter
- ReachabilitySwift
- device_info_plus (0.0.1):
- Flutter
- Firebase/CoreOnly (10.18.0):
- FirebaseCore (= 10.18.0)
- Firebase/Crashlytics (10.18.0):
- Firebase/CoreOnly
- FirebaseCrashlytics (~> 10.18.0)
- firebase_core (2.24.2):
- Firebase/CoreOnly (= 10.18.0)
- Flutter
- firebase_crashlytics (3.4.8):
- Firebase/Crashlytics (= 10.18.0)
- firebase_core
- Flutter
- FirebaseCore (10.18.0):
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.12)
- GoogleUtilities/Logger (~> 7.12)
- FirebaseCoreExtension (10.19.0):
- FirebaseCore (~> 10.0)
- FirebaseCoreInternal (10.19.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseCrashlytics (10.18.0):
- FirebaseCore (~> 10.5)
- FirebaseInstallations (~> 10.0)
- FirebaseSessions (~> 10.5)
- GoogleDataTransport (~> 9.2)
- GoogleUtilities/Environment (~> 7.8)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (~> 2.1)
- FirebaseInstallations (10.19.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
- PromisesObjC (~> 2.1)
- FirebaseSessions (10.19.0):
- FirebaseCore (~> 10.5)
- FirebaseCoreExtension (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleDataTransport (~> 9.2)
- GoogleUtilities/Environment (~> 7.10)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesSwift (~> 2.1)
- Flutter (1.0.0)
- flutter_native_splash (0.0.1):
- Flutter
Expand All @@ -17,19 +55,37 @@ PODS:
- google_maps_flutter_ios (0.0.1):
- Flutter
- GoogleMaps (< 9.0)
- GoogleDataTransport (9.3.0):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleMaps (8.3.1):
- GoogleMaps/Maps (= 8.3.1)
- GoogleMaps/Base (8.3.1)
- GoogleMaps/Maps (8.3.1):
- GoogleMaps/Base
- GoogleUtilities/Environment (7.12.0):
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.12.0):
- GoogleUtilities/Environment
- "GoogleUtilities/NSData+zlib (7.12.0)"
- GoogleUtilities/UserDefaults (7.12.0):
- GoogleUtilities/Logger
- map_launcher (0.0.1):
- Flutter
- nanopb (2.30909.1):
- nanopb/decode (= 2.30909.1)
- nanopb/encode (= 2.30909.1)
- nanopb/decode (2.30909.1)
- nanopb/encode (2.30909.1)
- package_info_plus (0.4.5):
- Flutter
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- ReachabilitySwift (5.0.0)
- PromisesObjC (2.3.1)
- PromisesSwift (2.3.1):
- PromisesObjC (= 2.3.1)
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
Expand Down Expand Up @@ -65,8 +121,9 @@ PODS:
- FlutterMacOS

DEPENDENCIES:
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
- firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`)
- Flutter (from `Flutter`)
- flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`)
- flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`)
Expand All @@ -83,17 +140,30 @@ DEPENDENCIES:

SPEC REPOS:
trunk:
- Firebase
- FirebaseCore
- FirebaseCoreExtension
- FirebaseCoreInternal
- FirebaseCrashlytics
- FirebaseInstallations
- FirebaseSessions
- FMDB
- GoogleDataTransport
- GoogleMaps
- ReachabilitySwift
- GoogleUtilities
- nanopb
- PromisesObjC
- PromisesSwift
- TensorFlowLiteC
- TensorFlowLiteSwift

EXTERNAL SOURCES:
connectivity_plus:
:path: ".symlinks/plugins/connectivity_plus/ios"
device_info_plus:
:path: ".symlinks/plugins/device_info_plus/ios"
firebase_core:
:path: ".symlinks/plugins/firebase_core/ios"
firebase_crashlytics:
:path: ".symlinks/plugins/firebase_crashlytics/ios"
Flutter:
:path: Flutter
flutter_native_splash:
Expand Down Expand Up @@ -122,19 +192,31 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/video_player_avfoundation/darwin"

SPEC CHECKSUMS:
connectivity_plus: bf0076dd84a130856aa636df1c71ccaff908fa1d
device_info_plus: c6fb39579d0f423935b0c9ce7ee2f44b71b9fce6
Firebase: 414ad272f8d02dfbf12662a9d43f4bba9bec2a06
firebase_core: 0af4a2b24f62071f9bf283691c0ee41556dcb3f5
firebase_crashlytics: 55714f63ae0973c54b3a721c451ae5f815086c1f
FirebaseCore: 2322423314d92f946219c8791674d2f3345b598f
FirebaseCoreExtension: c08d14c7b22e07994e876d837e6f58642f340087
FirebaseCoreInternal: b444828ea7cfd594fca83046b95db98a2be4f290
FirebaseCrashlytics: 86d5bce01f42fa1db265f87ff1d591f04db610ec
FirebaseInstallations: 033d199474164db20c8350736842a94fe717b960
FirebaseSessions: e5f4caa188dc8bc6142abc974355be75b042215e
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_native_splash: 52501b97d1c0a5f898d687f1646226c1f93c56ef
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
geolocator_apple: cc556e6844d508c95df1e87e3ea6fa4e58c50401
google_maps_flutter_ios: a831c6f6a127f58333ec7654217c067f02cb5da9
GoogleDataTransport: 57c22343ab29bc686febbf7cbb13bad167c2d8fe
GoogleMaps: b47b67bd63d708477d6ff457da2d695c0d8ceb5f
GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34
map_launcher: e325db1261d029ff33e08e03baccffe09593ffea
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
PromisesSwift: 28dca69a9c40779916ac2d6985a0192a5cb4a265
shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a
TensorFlowLiteC: 20785a69299185a379ba9852b6625f00afd7984a
Expand Down
Loading

0 comments on commit 542ec4a

Please sign in to comment.