facebook twitter hatena line email

Flutter/firebase/Crashlytics

提供: 初心者エンジニアの簡易メモ
2020年2月15日 (土) 01:53時点におけるAdmin (トーク | 投稿記録)による版 (インストール)

移動: 案内検索

マニュアル

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 pubspec.yaml

インストール

プラグイン公式:https://pub.dev/packages/firebase_crashlytics#-readme-tab-

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

iOSインストール