Skip to content

Commit b345040

Browse files
authored
Merge pull request #109 from algolia/develop
1.1.2
2 parents 270b00a + cb577fc commit b345040

File tree

6 files changed

+18
-8
lines changed

6 files changed

+18
-8
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# 1.1.2
2+
3+
- Ktor version 1.2.3
4+
- Minimum version of Kotlin is now 1.3.41
5+
6+
# 1.1.1
7+
8+
- `Compression` is `None` by default
9+
- Added new `searchHierarchical method`
10+
111
# 1.1.0
212

313
- Kotlin version 1.3.41

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
## ✨ Features
2323

24-
- The Kotlin client is compatible with Kotlin `1.3.30` and higher.
24+
- The Kotlin client is compatible with Kotlin `1.3.41` and higher.
2525
- It is compatible with Kotlin project on the JVM, such as backend and Android applications.
2626
- It relies on the open source Kotlin libraries for seamless integration into Kotlin projects:
2727
- [Kotlin multiplatform](https://kotlinlang.org/docs/reference/multiplatform.html).

build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ kotlin {
4242
val commonMain by getting {
4343
kotlin.srcDirs("build/generated")
4444
dependencies {
45-
implementation(kotlin("stdlib-common"))
46-
implementation(Serialization("runtime"))
45+
api(kotlin("stdlib-common"))
4746
api(Ktor("client"))
4847
api(Ktor("client-logging"))
4948
api(Ktor("client-core"))
@@ -60,7 +59,7 @@ kotlin {
6059
}
6160
val jvmMain by getting {
6261
dependencies {
63-
implementation(kotlin("stdlib-jdk8"))
62+
api(kotlin("stdlib-jdk8"))
6463
api(Ktor("client-core-jvm"))
6564
api(Ktor("client-json-jvm"))
6665
api(Ktor("client-logging-jvm"))

buildSrc/src/main/kotlin/Ktor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ object Ktor : Dependency {
22

33
override val group = "io.ktor"
44
override val artifact = "ktor"
5-
override val version = "1.2.3-rc"
5+
override val version = "1.2.3"
66
}

buildSrc/src/main/kotlin/Library.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ object Library: Dependency {
22

33
override val group = "com.algolia"
44
override val artifact = "algoliasearch-client-kotlin"
5-
override val version = "1.1.1"
5+
override val version = "1.1.2"
66
}

src/commonMain/kotlin/com/algolia/search/client/Index.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public data class Index internal constructor(
114114
disjunctiveFacets: List<Attribute> = listOf(),
115115
filters: Set<Filter> = setOf(),
116116
hierarchicalAttributes: List<Attribute> = listOf(),
117-
hierarchicalFilters: List<Filter.Facet> = listOf()
117+
hierarchicalFilters: List<Filter.Facet> = listOf(),
118+
requestOptions: RequestOptions? = null
118119
): ResponseSearch {
119120
val (filtersOr, filtersAnd) = filters.partition { disjunctiveFacets.contains(it.attribute) }
120121
val filtersOrFacet = filtersOr.filterIsInstance<Filter.Facet>()
@@ -145,7 +146,7 @@ public data class Index internal constructor(
145146
.optimize()
146147
}
147148
val queries = listOf(queryForResults) + queriesForDisjunctiveFacets + queriesForHierarchicalFacets
148-
val response = EndpointMultipleIndexImpl(transport).multipleQueries(queries)
149+
val response = EndpointMultipleIndexImpl(transport).multipleQueries(queries, requestOptions = requestOptions)
149150

150151
return response.aggregateResult(disjunctiveFacets.size)
151152
}

0 commit comments

Comments
 (0)