Skip to content

Commit

Permalink
Merge pull request #1335 from Luennemann/patch-1
Browse files Browse the repository at this point in the history
add kotlin build configuration to groovy build configuration
  • Loading branch information
AndyScherzinger authored Jan 28, 2024
2 parents 146f04d + 02a3c5b commit 4c221aa
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ thanks to it you will learn how to use the library.
### Gradle / Maven dependency
At the moment we do not have a publishing mechanism to a maven repository so the easiest way to add the library to your app is via a JitPack Dependency [![](https://jitpack.io/v/nextcloud/android-library.svg)](https://jitpack.io/#nextcloud/android-library)


#### build via Groovy configuration
```
repositories {
...
Expand All @@ -40,6 +42,28 @@ dependencies {
exclude group: 'org.ogce', module: 'xpp3' // unused in Android and brings wrong Junit version
}
```
#### build via Kotlin configuration

in settings.gradle.kts
```
dependencyResolutionManagement {
...
repositories {
...
maven(url = "https://jitpack.io")
}
}
```

in build.gradle.kts
```
dependencies {
...
implementation("com.github.nextcloud:android-library:$androidLibraryVersion") {
exclude(group = "org.ogce", module = "xpp3") // unused in Android and brings wrong Junit version
}
```


### As a git submodule
Basically get this code and compile it having it integrated via a git submodule:
Expand Down

0 comments on commit 4c221aa

Please sign in to comment.