Skip to content

Instantly share code, notes, and snippets.

@dlew dlew/build.gradle
Last active Jun 23, 2017

Embed
What would you like to do?
Sample gradle.build for Crashlytics
// Follow the five numbered instructions for setting up Crashlytics
buildscript {
repositories {
maven { url 'http://repo1.maven.org/maven2' }
// 1. Add the Crashlytics Maven repository to your build script.
maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
classpath 'com.android.tools.build:gradle:+'
// 2. Add a reference to the Crashlytics Gradle plugin to your dependencies.
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
}
}
apply plugin: 'android'
// 3. Apply the Crashlytics plugin after the Android plugin has been applied.
apply plugin: 'crashlytics'
repositories {
// 4. Add the Maven repository.
maven { url 'http://download.crashlytics.com/maven' }
}
android {
compileSdkVersion 18
buildToolsVersion "18.0.0"
defaultConfig {
minSdkVersion 7
targetSdkVersion 18
}
}
dependencies {
compile files('libs/android-support-v4.jar')
// 5. Add the Crashlytics SDK to the Android project.
compile 'com.crashlytics.android:crashlytics:1.+'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.