Skip to content

Instantly share code, notes, and snippets.

@arkilis
Last active March 28, 2018 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arkilis/8e2fff579e542b5a7c4d41f3189bc413 to your computer and use it in GitHub Desktop.
Save arkilis/8e2fff579e542b5a7c4d41f3189bc413 to your computer and use it in GitHub Desktop.
build.gradle exmpale
Dbuildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
flavorDimensions "default"
compileSdkVersion 26
defaultConfig {
applicationId "com.example.ben.buildvariantswithfabric"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
free {
applicationId 'com.example.ben.buildvariantswithfabric.free'
}
pro {
applicationId 'com.example.ben.buildvariantswithfabric.pro'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:26.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
transitive = true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment