Skip to content

Instantly share code, notes, and snippets.

@mtilbrook-dev
Created September 13, 2017 09:03
Show Gist options
  • Save mtilbrook-dev/eb0fef7b724637ddd0d755e080549ca8 to your computer and use it in GitHub Desktop.
Save mtilbrook-dev/eb0fef7b724637ddd0d755e080549ca8 to your computer and use it in GitHub Desktop.
example of how to use shared dependencies in android module
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
// the ext.versions in the dependencies.gradle is accessable
compileSdkVersion versions.compileSdk
buildToolsVersion versions.buildTools
defaultConfig {
applicationId "tilbrook.com.au.appName"
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
versionCode versions.code
versionName versions.name
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
// the ext.libraries in the dependencies.gradle is accessable
implementation libraries.kotlin
implementation libraries.supportAppCompat
implementation libraries.constraintLayout
testImplementation libraries.junit
androidTestImplementation libraries.supportTestRunner
androidTestImplementation libraries.espressoCore
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment