mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 07:56:19 +00:00
58 lines
1.7 KiB
Groovy
58 lines
1.7 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
dependencies {
|
|
api 'com.squareup.okhttp3:okhttp:4.6.0'
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
|
|
api 'com.gitlab.ownclouders:dav4android:oc_support_2.1.5'
|
|
api 'com.github.AppDevNext.Logcat:LogcatCore:2.1.1'
|
|
api 'net.openid:appauth:0.7.1'
|
|
|
|
// Moshi
|
|
implementation ("com.squareup.moshi:moshi-kotlin:$moshiVersion") {
|
|
exclude module: "kotlin-reflect"
|
|
}
|
|
kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshiVersion"
|
|
|
|
testImplementation 'junit:junit:4.13'
|
|
testImplementation 'org.robolectric:robolectric:4.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
|
androidTestImplementation 'androidx.test:core:1.3.0'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
androidTestImplementation 'androidx.test:rules:1.3.0'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
targetSdkVersion 29
|
|
|
|
versionCode = 10000800
|
|
versionName = "1.0.8"
|
|
|
|
// This is pretty ugly but manifest placeholders don't seem to work very well when using different modules
|
|
// See https://github.com/openid/AppAuth-Android/issues/325
|
|
manifestPlaceholders = [appAuthRedirectScheme: '']
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
ignoreWarnings true
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
testOptions {
|
|
unitTests {
|
|
includeAndroidResources = true
|
|
}
|
|
}
|
|
}
|