Flutter/firebase/Crashlytics
提供: 初心者エンジニアの簡易メモ
マニュアル
firebase Android公式:https://firebase.google.com/docs/crashlytics/get-started-new-sdk?platform=android&authuser=0
firebase iOS公式:https://firebase.google.com/docs/crashlytics/get-started-new-sdk?platform=ios&authuser=0
インストール
プラグイン公式:https://pub.dev/packages/firebase_crashlytics#-readme-tab-
pubspec.yaml
dependencies: firebase_crashlytics: ^0.1.2+5
Androidインストール
android/build.gradle
buildscript {
dependencies {
// Add the Crashlytics Gradle plugin. start
classpath 'com.android.tools.build:gradle:3.2.1'
// Add the google services classpath
classpath 'com.google.gms:google-services:4.3.0'
// Add fabric classpath
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0-beta02'
// Add the Crashlytics Gradle plugin. end
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
}
}
android/app/build.gradle
// Apply the Crashlytics Gradle plugin start apply plugin: 'com.google.firebase.crashlytics' apply plugin: 'com.google.gms.google-services' // Apply the Crashlytics Gradle plugin end
