79 lines
2.5 KiB
Groovy
79 lines
2.5 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
|
|
defaultConfig {
|
|
minSdkVersion 16
|
|
targetSdkVersion 29
|
|
versionCode 45
|
|
versionName '6.1.0'
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
kapt {
|
|
generateStubs true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
// AndroidX
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.preference:preference:1.1.0'
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
|
|
// Lifecycle
|
|
api 'android.arch.lifecycle:extensions:1.1.1'
|
|
implementation "android.arch.lifecycle:viewmodel:1.1.1"
|
|
|
|
// Amplitude
|
|
implementation 'com.amplitude:android-sdk:2.23.2'
|
|
|
|
// Dagger
|
|
def dagger_version='2.21'
|
|
api "com.google.dagger:dagger-android:$dagger_version"
|
|
api "com.google.dagger:dagger-android-support:$dagger_version"
|
|
kapt "com.google.dagger:dagger-android-processor:$dagger_version"
|
|
kapt "com.google.dagger:dagger-compiler:$dagger_version"
|
|
|
|
// Room
|
|
def room_version = '2.2.3'
|
|
api "androidx.room:room-runtime:$room_version"
|
|
api "androidx.room:room-ktx:$room_version"
|
|
kapt "androidx.room:room-compiler:$room_version"
|
|
testImplementation "androidx.room:room-testing:$room_version"
|
|
|
|
// Moshi - Json
|
|
def moshi_version = '1.9.1'
|
|
api "com.squareup.moshi:moshi:$moshi_version"
|
|
api "com.squareup.moshi:moshi-kotlin:$moshi_version"
|
|
kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshi_version"
|
|
|
|
// Coroutines
|
|
def coroutines_version = '1.3.0'
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
|
|
|
|
// Kotlin Lib
|
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.61'
|
|
|
|
// Unit Tests
|
|
testImplementation 'junit:junit:4.12'
|
|
testImplementation 'org.mockito:mockito-core:2.24.0'
|
|
testImplementation 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0'
|
|
|
|
// Core library
|
|
androidTestImplementation 'androidx.test:core:1.2.0'
|
|
|
|
// AndroidJUnitRunner and JUnit Rules
|
|
androidTestImplementation 'androidx.test:runner:1.2.0'
|
|
androidTestImplementation 'androidx.test:rules:1.2.0'
|
|
androidTestUtil 'androidx.test:orchestrator:1.2.0'
|
|
}
|