Skip to content

Instantly share code, notes, and snippets.

@renaudmathieu
Created November 2, 2020 14:44
Show Gist options
  • Save renaudmathieu/b1c7deb835b3a4590b30cc5183bbf47d to your computer and use it in GitHub Desktop.
Save renaudmathieu/b1c7deb835b3a4590b30cc5183bbf47d to your computer and use it in GitHub Desktop.
EitherNet + MultiDex + minSDK 19
plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.2"
defaultConfig {
applicationId "com.innovorder.android.eithernetmultidex"
minSdkVersion 19
targetSdkVersion 30
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
// Depending on minSDK
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'com.slack.eithernet:eithernet:0.2.0'
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.3'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment