Last active
September 11, 2019 18:35
-
-
Save dlew/deda38ecea717c953e1b to your computer and use it in GitHub Desktop.
Sample gradle.build for Crashlytics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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