126 lines
4.9 KiB
Groovy
126 lines
4.9 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'org.jetbrains.kotlin.plugin.compose'
|
|
id 'org.jetbrains.kotlin.plugin.serialization'
|
|
}
|
|
|
|
android {
|
|
compileSdk 36
|
|
|
|
Properties properties = new Properties()
|
|
properties.load(project.rootProject.file("local.properties").newDataInputStream())
|
|
|
|
defaultConfig {
|
|
applicationId "ulk.co.rossbeazley.photoprism.upload"
|
|
minSdk 33
|
|
targetSdk 33
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
buildConfigField "String", "webdavHostName", "\""+properties.getProperty('webdav.host', "").toString()+"\""
|
|
buildConfigField "String", "webdavUserName", "\""+properties.getProperty('webdav.user', "").toString()+"\""
|
|
buildConfigField "String", "webdavPassword", "\""+properties.getProperty('webdav.password', "").toString()+"\""
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
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'
|
|
}
|
|
packagingOptions {
|
|
android.packagingOptions.resources.excludes += "META-INF/DEPENDENCIES"
|
|
android.packagingOptions.resources.excludes += "META-INF/LICENSE.md"
|
|
android.packagingOptions.resources.excludes += "META-INF/NOTICE.md"
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDirs += 'src/main/kotlin'
|
|
}
|
|
}
|
|
}
|
|
namespace 'ulk.co.rossbeazley.photoprism.upload'
|
|
androidResources {
|
|
noCompress 'png'
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
//implementation 'com.github.thegrizzlylabs:sardine-android:0.8'
|
|
//implementation 'com.github.lookfirst:sardine:5.10'
|
|
implementation ('com.github.bitfireAT:dav4jvm:2.2.1') {
|
|
exclude group: 'junit', module: 'junit'
|
|
}
|
|
|
|
implementation 'androidx.security:security-crypto:1.0.0'
|
|
implementation 'androidx.activity:activity-ktx:1.9.3'
|
|
implementation 'androidx.activity:activity-compose:1.9.3'
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.7.3'
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
|
|
implementation("com.squareup.okhttp3:logging-interceptor:4.9.3")
|
|
implementation 'androidx.core:core:1.9.0'
|
|
implementation 'androidx.core:core-ktx:1.9.0'
|
|
implementation 'androidx.appcompat:appcompat:1.7.0'
|
|
implementation 'com.google.android.material:material:1.12.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
|
|
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.8.7'
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7'
|
|
implementation "androidx.lifecycle:lifecycle-runtime-compose:2.8.7"
|
|
implementation 'androidx.work:work-runtime-ktx:2.7.1'
|
|
|
|
// image previews
|
|
implementation("io.coil-kt:coil-compose:2.6.0")
|
|
implementation("me.saket.telephoto:zoomable:0.16.0")
|
|
|
|
implementation 'androidx.preference:preference-ktx:1.2.1'
|
|
implementation 'androidx.work:work-testing:2.7.1'
|
|
implementation 'androidx.compose.ui:ui-android:1.8.3'
|
|
implementation 'androidx.compose.material3:material3-android:1.4.0-alpha17'
|
|
implementation("androidx.compose.material3:material3:1.4.0-alpha17")
|
|
implementation("androidx.compose.material:material:1.8.3")
|
|
implementation("androidx.compose.material:material-icons-core-android:1.7.8")
|
|
|
|
implementation "androidx.navigation:navigation-compose:2.9.1"
|
|
implementation "androidx.navigation3:navigation3-runtime:1.0.0-alpha05"
|
|
implementation "androidx.navigation3:navigation3-ui:1.0.0-alpha05"
|
|
implementation 'androidx.core:core-ktx:1.1 7.0'
|
|
|
|
testImplementation 'androidx.test:rules:1.6.1'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
testImplementation 'androidx.test.ext:junit:1.2.1'
|
|
testImplementation 'androidx.test.ext:junit-ktx:1.2.1'
|
|
testImplementation "androidx.test:core:1.6.1"
|
|
testImplementation "androidx.arch.core:core-testing:2.2.0"
|
|
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3"
|
|
|
|
testImplementation "com.natpryce:hamkrest:1.8.0.1"
|
|
|
|
//androidTestImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
|
|
androidTestImplementation 'androidx.test.ext:junit-ktx:1.2.1'
|
|
androidTestImplementation "androidx.test:core:1.6.1"
|
|
androidTestImplementation "androidx.test:rules:1.6.1"
|
|
androidTestImplementation "androidx.arch.core:core-testing:2.2.0"
|
|
androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3"
|
|
|
|
androidTestImplementation "com.natpryce:hamkrest:1.8.0.1"
|
|
} |