Skip to content

Instantly share code, notes, and snippets.

@teburd
Created January 4, 2018 20:23
Show Gist options
  • Save teburd/e5a855b7c79467247d12c4867f11668c to your computer and use it in GitHub Desktop.
Save teburd/e5a855b7c79467247d12c4867f11668c to your computer and use it in GitHub Desktop.
build.gradle
apply plugin: 'com.android.library'
android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
pickFirst 'protobuf.meta'
}
}
dependencies {
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.google.protobuf:protobuf-java:3.3.0'
implementation 'com.google.android.gms:play-services-base:11.8.0'
implementation 'com.squareup.okhttp3:okhttp:3.7.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.robolectric:robolectric:3.5.1'
testImplementation 'com.squareup.okhttp3:mockwebserver:3.7.0'
testImplementation 'org.hamcrest:hamcrest-library:1.3'
androidTestCompile 'com.android.support.test.espresso:espresso-core:3.0.1'
androidTestCompile 'com.android.support.test:runner:1.0.1'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment