Skip to content

Commit

Permalink
Version Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
rubikzube committed Jan 8, 2021
1 parent 2c97dbf commit 1a10ce3
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 64 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ An Android Client for [Constructor.io](http://constructor.io/). [Constructor.io

## 1. Install

Please follow the directions at [Jitpack.io](https://jitpack.io/#Constructor-io/constructorio-client-android/v2.3.3) to add the client to your project.
Please follow the directions at [Jitpack.io](https://jitpack.io/#Constructor-io/constructorio-client-android/v2.4.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 @@ -28,7 +28,7 @@ android {
targetSdkVersion 28
testInstrumentationRunner "${applicationId}.runner.RxAndroidJUnitRunner"
versionCode 1
versionName '2.3.3'
versionName '2.4.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 @@ -63,7 +63,7 @@ class ConstructorIoAutocompleteTest {
suggestions?.isNotEmpty()!! && suggestions.size == 5
}
val request = mockServer.takeRequest()
val path = "/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.3.3&_dt="
val path = "/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.4.0&_dt="
assert(request.path.startsWith(path))
}

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

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

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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class ConstructorIoBrowseTest {
it.get()!!.response?.resultCount == 367
}
val request = mockServer.takeRequest()
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.3.3&_dt"
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.4.0&_dt"
assert(request.path.startsWith(path))
}

Expand All @@ -84,7 +84,7 @@ class ConstructorIoBrowseTest {
it.networkError
}
val request = mockServer.takeRequest()
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.3.3&_dt"
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.4.0&_dt"
assert(request.path.startsWith(path))
}

Expand All @@ -98,7 +98,7 @@ class ConstructorIoBrowseTest {
it.isError
}
val request = mockServer.takeRequest()
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.3.3&_dt"
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.4.0&_dt"
assert(request.path.startsWith(path))
}

Expand All @@ -114,7 +114,7 @@ class ConstructorIoBrowseTest {
it.get()!!.response?.resultCount == 0
}
val request = mockServer.takeRequest()
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.3.3&_dt"
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.4.0&_dt"
assert(request.path.startsWith(path))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ConstructorIoSearchTest {
it.get()!!.response?.resultCount == 225
}
val request = mockServer.takeRequest()
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.3.3&_dt="
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.4.0&_dt="
assert(request.path.startsWith(path))
}

Expand All @@ -85,7 +85,7 @@ class ConstructorIoSearchTest {
it.networkError
}
val request = mockServer.takeRequest()
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.3.3&_dt="
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.4.0&_dt="
assert(request.path.startsWith(path))
}

Expand All @@ -99,7 +99,7 @@ class ConstructorIoSearchTest {
it.isError
}
val request = mockServer.takeRequest()
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.3.3&_dt="
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.4.0&_dt="
assert(request.path.startsWith(path))
}

Expand All @@ -115,7 +115,7 @@ class ConstructorIoSearchTest {
it.get()!!.response?.resultCount == 0
}
val request = mockServer.takeRequest()
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.3.3&_dt="
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.4.0&_dt="
assert(request.path.startsWith(path))
}

Expand All @@ -129,7 +129,7 @@ class ConstructorIoSearchTest {
it.get()!!.response?.redirect?.matchedTerms!![0] == "bbq"
}
val request = mockServer.takeRequest()
val path = "/search/bbq?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.3.3&_dt="
val path = "/search/bbq?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.4.0&_dt="
assert(request.path.startsWith(path))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ConstructorioSegmentsTest {
suggestions?.isNotEmpty()!! && suggestions.size == 5
}
val request = mockServer.takeRequest()
val path = "/autocomplete/titanic?key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.3.3&_dt="
val path = "/autocomplete/titanic?key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.4.0&_dt="
assert(request.path.startsWith(path))
}

Expand All @@ -74,7 +74,7 @@ class ConstructorioSegmentsTest {
val observer = constructorIo.trackSessionStartInternal().test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/behavior?action=session_start&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.3.3&_dt=";
val path = "/behavior?action=session_start&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.4.0&_dt=";
assert(request.path.startsWith(path))
}

Expand All @@ -85,7 +85,7 @@ class ConstructorioSegmentsTest {
val observer = ConstructorIo.trackInputFocusInternal("tita").test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/behavior?term=tita&action=focus&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.3.3&_dt=";
val path = "/behavior?term=tita&action=focus&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.4.0&_dt=";
assert(request.path.startsWith(path))
}

Expand All @@ -96,7 +96,7 @@ class ConstructorioSegmentsTest {
val observer = ConstructorIo.trackAutocompleteSelectInternal("titanic", "tit", "Search Suggestions").test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/autocomplete/titanic/select?section=Search%20Suggestions&original_query=tit&tr=click&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.3.3&_dt="
val path = "/autocomplete/titanic/select?section=Search%20Suggestions&original_query=tit&tr=click&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.4.0&_dt="
assert(request.path.startsWith(path))
}

Expand All @@ -107,7 +107,7 @@ class ConstructorioSegmentsTest {
val observer = ConstructorIo.trackSearchSubmitInternal("titanic", "tit", null).test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/autocomplete/titanic/search?original_query=tit&tr=search&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.3.3&_dt=";
val path = "/autocomplete/titanic/search?original_query=tit&tr=search&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.4.0&_dt=";
assert(request.path.startsWith(path))
}

Expand All @@ -118,7 +118,7 @@ class ConstructorioSegmentsTest {
val observer = ConstructorIo.trackSearchResultsLoadedInternal("titanic", 10).test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/behavior?term=titanic&num_results=10&action=search-results&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.3.3&_dt=";
val path = "/behavior?term=titanic&num_results=10&action=search-results&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.4.0&_dt=";
assert(request.path.startsWith(path))
}

Expand All @@ -129,7 +129,7 @@ class ConstructorioSegmentsTest {
val observer = ConstructorIo.trackSearchResultClickInternal("titanic replica", "TIT-REP-1997", "titanic").test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/autocomplete/titanic/click_through?name=titanic%20replica&customer_id=TIT-REP-1997&section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.3.3&_dt=";
val path = "/autocomplete/titanic/click_through?name=titanic%20replica&customer_id=TIT-REP-1997&section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.4.0&_dt=";
assert(request.path.startsWith(path))
}

Expand All @@ -140,7 +140,7 @@ class ConstructorioSegmentsTest {
val observer = ConstructorIo.trackConversionInternal("titanic replica", "TIT-REP-1997", 89.00).test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/autocomplete/TERM_UNKNOWN/conversion?name=titanic%20replica&customer_id=TIT-REP-1997&revenue=89.00&section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.3.3&_dt=";
val path = "/autocomplete/TERM_UNKNOWN/conversion?name=titanic%20replica&customer_id=TIT-REP-1997&revenue=89.00&section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.4.0&_dt=";
assert(request.path.startsWith(path))
}

Expand All @@ -151,7 +151,7 @@ class ConstructorioSegmentsTest {
val observer = ConstructorIo.trackPurchaseInternal(arrayOf("TIT-REP-1997", "QE2-REP-1969"), 12.99, "ORD-1312343").test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/v2/behavioral_action/purchase?section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.3.3&_dt=";
val path = "/v2/behavioral_action/purchase?section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&us=mobile&us=COUNTRY_US&c=cioand-2.4.0&_dt=";
assertTrue(request.bodySize > 250)
assert(request.path.startsWith(path))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ConstructorioTestCellTest {
suggestions?.isNotEmpty()!! && suggestions.size == 5
}
val request = mockServer.takeRequest()
val path = "/autocomplete/titanic?key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.3.3&_dt="
val path = "/autocomplete/titanic?key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.4.0&_dt="
assert(request.path.startsWith(path))
}

Expand All @@ -75,7 +75,7 @@ class ConstructorioTestCellTest {
val observer = constructorIo.trackSessionStartInternal().test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/behavior?action=session_start&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.3.3&_dt=";
val path = "/behavior?action=session_start&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.4.0&_dt=";
assert(request.path.startsWith(path))
}

Expand All @@ -86,7 +86,7 @@ class ConstructorioTestCellTest {
val observer = ConstructorIo.trackInputFocusInternal("tita").test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/behavior?term=tita&action=focus&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.3.3&_dt=";
val path = "/behavior?term=tita&action=focus&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.4.0&_dt=";
assert(request.path.startsWith(path))
}

Expand All @@ -97,7 +97,7 @@ class ConstructorioTestCellTest {
val observer = ConstructorIo.trackAutocompleteSelectInternal("titanic", "tit", "Search Suggestions").test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/autocomplete/titanic/select?section=Search%20Suggestions&original_query=tit&tr=click&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.3.3&_dt="
val path = "/autocomplete/titanic/select?section=Search%20Suggestions&original_query=tit&tr=click&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.4.0&_dt="
assert(request.path.startsWith(path))
}

Expand All @@ -108,7 +108,7 @@ class ConstructorioTestCellTest {
val observer = ConstructorIo.trackSearchSubmitInternal("titanic", "tit", null).test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/autocomplete/titanic/search?original_query=tit&tr=search&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.3.3&_dt=";
val path = "/autocomplete/titanic/search?original_query=tit&tr=search&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.4.0&_dt=";
assert(request.path.startsWith(path))
}

Expand All @@ -119,7 +119,7 @@ class ConstructorioTestCellTest {
val observer = ConstructorIo.trackSearchResultsLoadedInternal("titanic", 10).test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/behavior?term=titanic&num_results=10&action=search-results&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.3.3&_dt=";
val path = "/behavior?term=titanic&num_results=10&action=search-results&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.4.0&_dt=";
assert(request.path.startsWith(path))
}

Expand All @@ -130,7 +130,7 @@ class ConstructorioTestCellTest {
val observer = ConstructorIo.trackSearchResultClickInternal("titanic replica", "TIT-REP-1997", "titanic").test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/autocomplete/titanic/click_through?name=titanic%20replica&customer_id=TIT-REP-1997&section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.3.3&_dt=";
val path = "/autocomplete/titanic/click_through?name=titanic%20replica&customer_id=TIT-REP-1997&section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.4.0&_dt=";
assert(request.path.startsWith(path))
}

Expand All @@ -141,7 +141,7 @@ class ConstructorioTestCellTest {
val observer = ConstructorIo.trackConversionInternal("titanic replica", "TIT-REP-1997", 89.00).test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/autocomplete/TERM_UNKNOWN/conversion?name=titanic%20replica&customer_id=TIT-REP-1997&revenue=89.00&section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.3.3&_dt=";
val path = "/autocomplete/TERM_UNKNOWN/conversion?name=titanic%20replica&customer_id=TIT-REP-1997&revenue=89.00&section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.4.0&_dt=";
assert(request.path.startsWith(path))
}

Expand All @@ -152,7 +152,7 @@ class ConstructorioTestCellTest {
val observer = ConstructorIo.trackPurchaseInternal(arrayOf("TIT-REP-1997", "QE2-REP-1969"), 12.99, "ORD-1312343").test()
observer.assertComplete()
val request = mockServer.takeRequest()
val path = "/v2/behavioral_action/purchase?section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.3.3&_dt=";
val path = "/v2/behavioral_action/purchase?section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.4.0&_dt=";
assertTrue(request.bodySize > 230)
assert(request.path.startsWith(path))
}
Expand Down

0 comments on commit 1a10ce3

Please sign in to comment.