Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisKruegerDev committed Apr 2, 2021
1 parent aaed795 commit 6cb01f0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To use the library in a single-platform project, add a dependency.

```kotlin
dependencies {
implementation("app.moviebase:tmdb-api:0.1.3")
implementation("app.moviebase:tmdb-api:0.2.0")
}
```

Expand All @@ -36,7 +36,7 @@ In Kotlin Multiplatform projects, add the dependency to your commonMain source-s
```kotlin
commonMain {
dependencies {
implementation("app.moviebase:tmdb-api:0.1.3")
implementation("app.moviebase:tmdb-api:0.2.0")
}
}
```
Expand All @@ -49,7 +49,7 @@ Add a dependency to the `<dependencies>` element.
<dependency>
<groupId>app.moviebase</groupId>
<artifactId>tmdb-api</artifactId>
<version>0.1.3</version>
<version>0.2.0</version>
</dependency>
```

Expand All @@ -62,8 +62,8 @@ Most of the library follows the possibilities and naming at the official [TMDb d
For getting a movie or another media content just create a new instance and choose your section

```kotlin
val tmdb = TmdbV3("apiKey")
val movieDetail = tmdb.movie.getDetails(
val tmdb = Tmdb3("apiKey")
val movieDetail = tmdb.movies.getDetails(
id = 12,
language = "EN",
appendResponses = listOf(AppendResponse.MOVIE_CREDITS)
Expand All @@ -81,6 +81,6 @@ val url = TmdbImageUrlBuilder.build("w154", "nBNZadXqJSdt05SHLqgT0HuC5Gm.jpg")
Or create by a image and the best matched width/height.

```kotlin
val movie: TmdbMovie = TmdbMovie(...)
val movie: TmdbMovie
val url = TmdbImageUrlBuilder.build(image = movie.posterImage, width = 200,height = 300)
```
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
object Versions {
val versionMajor = 0
val versionMinor = 1
val versionPatch = 4
val versionMinor = 2
val versionPatch = 0

val versionCode = versionMajor * 1000 + versionMinor * 100 + versionPatch * 10
val versionName = "$versionMajor.$versionMinor.$versionPatch"
Expand All @@ -18,7 +18,7 @@ object Versions {
val nexus = "1.0.0"

// Kotlin
val kotlin = "1.4.31"
val kotlin = "1.4.32"
val coroutines = "1.4.3"
val kotlinxDatetime = "0.1.1"
val ktor = "1.5.2"
Expand Down
2 changes: 1 addition & 1 deletion tmdb-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ afterEvaluate {
publications.withType<MavenPublication>().configureEach {
artifact(javadocJar.get())
pom {
name.set("Multiplatform TMDB API")
name.set("Kotlin Multiplatform TMDB API")
description.set("A Kotlin Multiplatform library to access the TMDB API.")
url.set("https://github.com/MoviebaseApp/tmdb-api")
inceptionYear.set("2021")
Expand Down

0 comments on commit 6cb01f0

Please sign in to comment.