Created
September 13, 2017 09:03
-
-
Save mtilbrook-dev/eb0fef7b724637ddd0d755e080549ca8 to your computer and use it in GitHub Desktop.
example of how to use shared dependencies in android module
This file contains hidden or 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
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