Skip to content

Commit

Permalink
introduce crashlytics
Browse files Browse the repository at this point in the history
  • Loading branch information
ry-itto committed May 16, 2020
1 parent b341590 commit 4ce3590
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 2 deletions.
1 change: 1 addition & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@ dependencies {
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'deploygate'
apply plugin: 'io.fabric'
4 changes: 4 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ buildscript {
repositories {
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.3'
classpath 'com.deploygate:gradle:2.1.0'
classpath 'io.fabric.tools:gradle:1.26.1'
}
}

Expand Down
18 changes: 17 additions & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ PODS:
- Flutter
- cloud_firestore_web (0.1.0):
- Flutter
- Crashlytics (3.14.0):
- Fabric (~> 1.10.2)
- Fabric (1.10.2)
- Firebase/Auth (6.16.0):
- Firebase/CoreOnly
- FirebaseAuth (~> 6.4.3)
Expand Down Expand Up @@ -205,6 +208,11 @@ PODS:
- Flutter
- firebase_core_web (0.1.0):
- Flutter
- firebase_crashlytics (0.0.1):
- Crashlytics
- Fabric
- Firebase/Core
- Flutter
- firebase_dynamic_links (0.1.0):
- Firebase/DynamicLinks
- Flutter
Expand Down Expand Up @@ -363,6 +371,7 @@ DEPENDENCIES:
- firebase_auth_web (from `.symlinks/plugins/firebase_auth_web/ios`)
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
- firebase_core_web (from `.symlinks/plugins/firebase_core_web/ios`)
- firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`)
- firebase_dynamic_links (from `.symlinks/plugins/firebase_dynamic_links/ios`)
- firebase_storage (from `.symlinks/plugins/firebase_storage/ios`)
- Flutter (from `Flutter`)
Expand All @@ -380,6 +389,8 @@ SPEC REPOS:
- abseil
- AppAuth
- BoringSSL-GRPC
- Crashlytics
- Fabric
- Firebase
- FirebaseAnalytics
- FirebaseAnalyticsInterop
Expand Down Expand Up @@ -422,6 +433,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/firebase_core/ios"
firebase_core_web:
:path: ".symlinks/plugins/firebase_core_web/ios"
firebase_crashlytics:
:path: ".symlinks/plugins/firebase_crashlytics/ios"
firebase_dynamic_links:
:path: ".symlinks/plugins/firebase_dynamic_links/ios"
firebase_storage:
Expand Down Expand Up @@ -452,11 +465,14 @@ SPEC CHECKSUMS:
BoringSSL-GRPC: db8764df3204ccea016e1c8dd15d9a9ad63ff318
cloud_firestore: 56ea1a42d4a4b3c9cf22e0e0f73140b5d07376a8
cloud_firestore_web: 9ec3dc7f5f98de5129339802d491c1204462bfec
Crashlytics: 540b7e5f5da5a042647227a5e3ac51d85eed06df
Fabric: 706c8b8098fff96c33c0db69cbf81f9c551d0d74
Firebase: 497158b816d0a86fc31babbd05546fcd7e6083ff
firebase_auth: f8287325aae894aff045dff38bf0667cbeb49563
firebase_auth_web: 0955c07bcc06e84af76b9d4e32e6f31518f2d7de
firebase_core: 0d8be0e0d14c4902953aeb5ac5d7316d1fe4b978
firebase_core_web: d501d8b946b60c8af265428ce483b0fff5ad52d1
firebase_crashlytics: bd8c58df07f107cb7e1a20cb190b9a468e0a69fd
firebase_dynamic_links: 7aaa8cbd086b55de330e34912dd144687e7d5c47
firebase_storage: 5e931af5cdef32331676c659bdd1ebcaba9dc78a
FirebaseAnalytics: cf95d3aab897612783020fbd98401d5366f135ee
Expand Down Expand Up @@ -494,6 +510,6 @@ SPEC CHECKSUMS:
share: 0b2c3e82132f5888bccca3351c504d0003b3b410
sqflite: 4001a31ff81d210346b500c55b17f4d6c7589dd0

PODFILE CHECKSUM: cb0e97ccc9814e29dc4dc09b991512d3243595af
PODFILE CHECKSUM: 89fff8e751041203c5c72fd664243ad7c4203460

COCOAPODS: 1.9.1
19 changes: 19 additions & 0 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
9283EA11A90D1D8DC7842011 /* [CP] Embed Pods Frameworks */,
F5BB7908C51F0C446B7F2622 /* [CP] Copy Pods Resources */,
BF33F069246FDB240068E592 /* Crashlytics */,
);
buildRules = (
);
Expand Down Expand Up @@ -317,6 +318,24 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
BF33F069246FDB240068E592 /* Crashlytics */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = Crashlytics;
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "${PODS_ROOT}/Fabric/run\n";
};
F5BB7908C51F0C446B7F2622 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down
6 changes: 5 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
import 'package:flutter/material.dart';
import 'package:gottiesclient/app.dart';

void main() => runApp(MyApp());
void main() {
FlutterError.onError = Crashlytics.instance.recordFlutterError;
runApp(MyApp());
}
7 changes: 7 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.1+2"
firebase_crashlytics:
dependency: "direct main"
description:
name: firebase_crashlytics
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3+3"
firebase_dynamic_links:
dependency: "direct main"
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dependencies:
transparent_image: ^1.0.0
firebase_dynamic_links: ^0.5.0+11
firebase_storage: ^3.1.5
firebase_crashlytics: ^0.1.3+3
share: ^0.6.4
uuid: 2.0.4
pull_to_refresh: ^1.5.7
Expand Down

0 comments on commit 4ce3590

Please sign in to comment.