Skip to content

Commit

Permalink
Version Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
stanlp1 committed Feb 16, 2024
1 parent 9bdfae5 commit 9d67709
Show file tree
Hide file tree
Showing 14 changed files with 163 additions and 163 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Full API documentation is available on [Github Pages](https://constructor-io.git

## 1. Install

Please follow the directions at [Jitpack.io](https://jitpack.io/#Constructor-io/constructorio-client-android/v2.27.0) to add the client to your project.
Please follow the directions at [Jitpack.io](https://jitpack.io/#Constructor-io/constructorio-client-android/v2.28.0) to add the client to your project.

## 2. Retrieve an API key

Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ android {
multiDexEnabled true
testInstrumentationRunner "${applicationId}.runner.RxAndroidJUnitRunner"
versionCode 1
versionName '2.27.0'
versionName '2.28.0'
buildConfigField("String", "CLIENT_VERSION", "\"cioand-${versionName}\"")
buildConfigField("String", "DEFAULT_ITEM_SECTION", "\"Products\"")
buildConfigField("String", "SERVICE_URL", "\"ac.cnstrc.com\"")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ConstructorIoAutocompleteTest {
}
val request = mockServer.takeRequest()
val path =
"/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
"/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -87,7 +87,7 @@ class ConstructorIoAutocompleteTest {
}
val request = mockServer.takeRequest()
val path =
"/autocomplete/titanic?filters%5BstoreLocation%5D=CA&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
"/autocomplete/titanic?filters%5BstoreLocation%5D=CA&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -110,7 +110,7 @@ class ConstructorIoAutocompleteTest {
}
val request = mockServer.takeRequest()
val path =
"/autocomplete/titanic?filters%5BstoreLocation%5D=CA&filters%5BSearch%20Suggestions%5D%5BstoreLocation%5D=US&filters%5BProducts%5D%5Bbrand%5D=Top%20Brand&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
"/autocomplete/titanic?filters%5BstoreLocation%5D=CA&filters%5BSearch%20Suggestions%5D%5BstoreLocation%5D=US&filters%5BProducts%5D%5Bbrand%5D=Top%20Brand&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -126,7 +126,7 @@ class ConstructorIoAutocompleteTest {
}
val request = mockServer.takeRequest()
val path =
"/autocomplete/titanic?filters%5Bgroup_id%5D=101&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
"/autocomplete/titanic?filters%5Bgroup_id%5D=101&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -140,7 +140,7 @@ class ConstructorIoAutocompleteTest {
}
val request = mockServer.takeRequest()
val path =
"/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
"/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -156,7 +156,7 @@ class ConstructorIoAutocompleteTest {
}
val request = mockServer.takeRequest()
val path =
"/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
"/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -172,7 +172,7 @@ class ConstructorIoAutocompleteTest {
}
val request = mockServer.takeRequest()
val path =
"/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
"/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -189,7 +189,7 @@ class ConstructorIoAutocompleteTest {
).test()
val request = mockServer.takeRequest()
val path =
"/autocomplete/bbq?fmt_options%5Bhidden_fields%5D=hiddenField1&fmt_options%5Bhidden_fields%5D=hiddenField2&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
"/autocomplete/bbq?fmt_options%5Bhidden_fields%5D=hiddenField1&fmt_options%5Bhidden_fields%5D=hiddenField2&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -201,7 +201,7 @@ class ConstructorIoAutocompleteTest {
val observer = constructorIo.getAutocompleteResults("2% cheese").test()
val request = mockServer.takeRequest()
val path =
"/autocomplete/2%25%20cheese?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
"/autocomplete/2%25%20cheese?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -224,7 +224,7 @@ class ConstructorIoAutocompleteTest {
}
val request = mockServer.takeRequest()
val path =
"/autocomplete/titanic?filters%5BstoreLocation%5D=CA&filters%5Bgroup_id%5D=101&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
"/autocomplete/titanic?filters%5BstoreLocation%5D=CA&filters%5Bgroup_id%5D=101&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -247,7 +247,7 @@ class ConstructorIoAutocompleteTest {
}
val request = mockServer.takeRequest()
val path =
"/autocomplete/titanic?num_results_Products=5&num_results_Search%20Suggestions=10&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
"/autocomplete/titanic?num_results_Products=5&num_results_Search%20Suggestions=10&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand Down Expand Up @@ -281,7 +281,7 @@ class ConstructorIoAutocompleteTest {
"i" to "guido-the-guid",
"ui" to "player-one",
"s" to "79",
"c" to "cioand-2.27.0",
"c" to "cioand-2.28.0",
"_dt" to "1"
)
assertThat(queryParameterNames).containsExactlyInAnyOrderElementsOf(queryParams.keys)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ConstructorIoRecommendationsTest {
assertEquals(recommendationResponse?.response?.resultCount, 225)

val request = mockServer.takeRequest()
val path = "/recommendations/v1/pods/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
val path = "/recommendations/v1/pods/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -88,7 +88,7 @@ class ConstructorIoRecommendationsTest {
it.networkError
}
val request = mockServer.takeRequest()
val path = "/recommendations/v1/pods/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
val path = "/recommendations/v1/pods/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -102,7 +102,7 @@ class ConstructorIoRecommendationsTest {
it.isError
}
val request = mockServer.takeRequest()
val path = "/recommendations/v1/pods/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
val path = "/recommendations/v1/pods/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -119,7 +119,7 @@ class ConstructorIoRecommendationsTest {
assertEquals(recommendationResponse?.response?.resultCount, 0)

val request = mockServer.takeRequest()
val path = "/recommendations/v1/pods/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
val path = "/recommendations/v1/pods/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -141,7 +141,7 @@ class ConstructorIoRecommendationsTest {
assertEquals(recommendationResponse?.response?.resultCount, 225)

val request = mockServer.takeRequest()
val path = "/recommendations/v1/pods/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
val path = "/recommendations/v1/pods/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand All @@ -165,7 +165,7 @@ class ConstructorIoRecommendationsTest {
assertEquals(recommendationResponse?.response?.resultCount, 225)

val request = mockServer.takeRequest()
val path = "/recommendations/v1/pods/titanic?item_id=item_id_1&item_id=item_id_2&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.27.0&_dt="
val path = "/recommendations/v1/pods/titanic?item_id=item_id_1&item_id=item_id_2&key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.28.0&_dt="
assert(request.path!!.startsWith(path))
}

Expand Down Expand Up @@ -200,7 +200,7 @@ class ConstructorIoRecommendationsTest {
"i" to "guido-the-guid",
"ui" to "player-one",
"s" to "79",
"c" to "cioand-2.27.0",
"c" to "cioand-2.28.0",
"_dt" to "1"
)
assertThat(queryParameterNames).containsExactlyInAnyOrderElementsOf(queryParams.keys)
Expand Down
Loading

0 comments on commit 9d67709

Please sign in to comment.