facebook twitter hatena line email

「Flutter/firebase/Crashlytics」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(ページの作成:「==インストール== プラグイン公式:https://pub.dev/packages/firebase_crashlytics#-readme-tab- firebase公式:https://firebase.google.com/docs/crashlytics/g...」)
(相違点なし)

2020年2月15日 (土) 01:51時点における版

インストール

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

firebase公式:https://firebase.google.com/docs/crashlytics/get-started-new-sdk?platform=android&authuser=0

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

iOSインストール