mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-09 02:15:32 +00:00
Using Crashlytics for crash reporting. Trying Firebase and Crashlytics.Answers for logging events (like km_add_keyboard) for analytics Firebase events don't persist between app launches
61 lines
2 KiB
Groovy
61 lines
2 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion 25
|
|
buildToolsVersion "26.0.2"
|
|
|
|
defaultConfig {
|
|
minSdkVersion 15
|
|
targetSdkVersion 25
|
|
|
|
if (project.hasProperty("build.number")) {
|
|
versionCode project.ext['build_counter'] as Integer // Because TeamCity does not bubble build.counter into system properties...
|
|
versionName "${project.ext['build.number']}"
|
|
} else {
|
|
versionCode 100
|
|
versionName '10.0.0.0'
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
|
}
|
|
}
|
|
|
|
testOptions {
|
|
unitTests {
|
|
// Allows use of a simulated Android API for tests. (Thanks, roboelectric!)
|
|
includeAndroidResources = true
|
|
}
|
|
unitTests.all {
|
|
testLogging {
|
|
// May also add "passed", "skipped".
|
|
events "failed"//, "standardOut", "standardError" if we want them to show in builds.
|
|
outputs.upToDateWhen {false}
|
|
//showStandardStreams = true // If we want test console log output to show during builds.
|
|
}
|
|
workingDir = "../" // Defaults to the `app` subdirectory, which is different from Android Studio's default.
|
|
}
|
|
}
|
|
}
|
|
|
|
ext {
|
|
currentFirebaseVersion = "11.8.0"
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.android.support:support-v4:25.4.0'
|
|
implementation 'commons-io:commons-io:2.6'
|
|
implementation 'org.apache.commons:commons-text:1.2'
|
|
testImplementation 'junit:junit:4.12'
|
|
testImplementation "org.robolectric:robolectric:3.5.1"
|
|
|
|
/* We only want these Firebase Crashlytics dependencies for KMEA */
|
|
implementation "com.google.firebase:firebase-analytics:$currentFirebaseVersion"
|
|
implementation "com.google.firebase:firebase-crash:$currentFirebaseVersion"
|
|
implementation('com.crashlytics.sdk.android:crashlytics:2.9.0@aar') {
|
|
transitive = true;
|
|
}
|
|
}
|