forked from upstream-mirrors/quik
67 lines
2.5 KiB
Groovy
67 lines
2.5 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
android {
|
|
compileSdkVersion 28
|
|
publishNonDefault true
|
|
flavorDimensions "analytics"
|
|
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
targetSdkVersion 28
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
buildConfigField "String", "AMPLITUDE_API_KEY", "\"${System.getenv("AMPLITUDE_API_KEY")}\""
|
|
buildConfigField "String", "MIXPANEL_API_KEY", "\"${System.getenv("MIXPANEL_API_KEY")}\""
|
|
}
|
|
|
|
productFlavors {
|
|
withAnalytics { dimension "analytics" }
|
|
noAnalytics { dimension "analytics" }
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
// androidx
|
|
implementation "androidx.appcompat:appcompat:$androidx_version"
|
|
implementation "androidx.exifinterface:exifinterface:$androidx_version"
|
|
|
|
// dagger
|
|
implementation "com.google.dagger:dagger:$dagger_version"
|
|
implementation "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"
|
|
compileOnly "javax.annotation:jsr250-api:1.0"
|
|
|
|
// rxjava
|
|
implementation "io.reactivex.rxjava2:rxandroid:$rxandroid_version"
|
|
implementation "io.reactivex.rxjava2:rxjava:$rxjava_version"
|
|
implementation "io.reactivex.rxjava2:rxkotlin:$rxkotlin_version"
|
|
|
|
// testing
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:$espresso_version", {
|
|
exclude group: "com.android.support", module: "support-annotations"
|
|
})
|
|
androidTestImplementation "org.mockito:mockito-android:$mockito_version"
|
|
testImplementation "androidx.test:runner:$androidx_testrunner_version"
|
|
testImplementation "junit:junit:$junit_version"
|
|
testImplementation "org.mockito:mockito-core:$mockito_version"
|
|
|
|
implementation "androidx.core:core-ktx:$ktx_version"
|
|
implementation "com.f2prateek.rx.preferences2:rx-preferences:$rx_preferences_version"
|
|
implementation "com.jakewharton.timber:timber:$timber_version"
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
implementation "me.leolin:ShortcutBadger:1.1.21"
|
|
implementation project(":android-smsmms")
|
|
implementation project(':common')
|
|
implementation project(':domain')
|
|
withAnalyticsImplementation "com.amplitude:android-sdk:2.16.0"
|
|
withAnalyticsImplementation "com.mixpanel.android:mixpanel-android:5.2.1"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|