Skip to content

Commit f996286

Browse files
committed
Version bump
1 parent 35c8b87 commit f996286

File tree

7 files changed

+57
-57
lines changed

7 files changed

+57
-57
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ An Android Client for [Constructor.io](http://constructor.io/). [Constructor.io
66

77
## 1. Install
88

9-
Please follow the directions at [Jitpack.io](https://jitpack.io/#Constructor-io/constructorio-client-android/v2.1.1) to add the client to your project.
9+
Please follow the directions at [Jitpack.io](https://jitpack.io/#Constructor-io/constructorio-client-android/v2.2.0) to add the client to your project.
1010

1111
## 2. Retrieve an API key
1212

library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ android {
2828
targetSdkVersion 28
2929
testInstrumentationRunner "${applicationId}.runner.RxAndroidJUnitRunner"
3030
versionCode 1
31-
versionName '2.1.1'
31+
versionName '2.2.0'
3232
buildConfigField("String", "CLIENT_VERSION", "\"cioand-${versionName}\"")
3333
buildConfigField("String", "DEFAULT_ITEM_SECTION", "\"Products\"")
3434
buildConfigField("String", "SERVICE_URL", "\"ac.cnstrc.com\"")

library/src/test/java/io/constructor/core/ConstructorIoAutocompleteTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class ConstructorIoAutocompleteTest {
6262
suggestions?.isNotEmpty()!! && suggestions.size == 5
6363
}
6464
val request = mockServer.takeRequest()
65-
val path = "/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.1.1&_dt="
65+
val path = "/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.2.0&_dt="
6666
assert(request.path.startsWith(path))
6767
}
6868

@@ -75,7 +75,7 @@ class ConstructorIoAutocompleteTest {
7575
it.networkError
7676
}
7777
val request = mockServer.takeRequest()
78-
val path = "/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.1.1&_dt="
78+
val path = "/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.2.0&_dt="
7979
assert(request.path.startsWith(path))
8080
}
8181

@@ -89,7 +89,7 @@ class ConstructorIoAutocompleteTest {
8989
it.isError
9090
}
9191
val request = mockServer.takeRequest()
92-
val path = "/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.1.1&_dt="
92+
val path = "/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.2.0&_dt="
9393
assert(request.path.startsWith(path))
9494
}
9595

@@ -103,7 +103,7 @@ class ConstructorIoAutocompleteTest {
103103
suggestions?.isEmpty()!!
104104
}
105105
val request = mockServer.takeRequest()
106-
val path = "/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.1.1&_dt="
106+
val path = "/autocomplete/titanic?key=golden-key&i=guido-the-guid&ui=player-one&s=79&c=cioand-2.2.0&_dt="
107107
assert(request.path.startsWith(path))
108108
}
109109
}

library/src/test/java/io/constructor/core/ConstructorIoTrackingTest.kt

Lines changed: 34 additions & 34 deletions
Large diffs are not rendered by default.

library/src/test/java/io/constructor/core/ConstructorioBrowseTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class ConstructorIoBrowseTest {
7070
it.get()!!.response?.resultCount == 367
7171
}
7272
val request = mockServer.takeRequest()
73-
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.1.1&_dt"
73+
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.2.0&_dt"
7474
assert(request.path.startsWith(path))
7575
}
7676

@@ -83,7 +83,7 @@ class ConstructorIoBrowseTest {
8383
it.networkError
8484
}
8585
val request = mockServer.takeRequest()
86-
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.1.1&_dt"
86+
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.2.0&_dt"
8787
assert(request.path.startsWith(path))
8888
}
8989

@@ -97,7 +97,7 @@ class ConstructorIoBrowseTest {
9797
it.isError
9898
}
9999
val request = mockServer.takeRequest()
100-
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.1.1&_dt"
100+
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.2.0&_dt"
101101
assert(request.path.startsWith(path))
102102
}
103103

@@ -113,7 +113,7 @@ class ConstructorIoBrowseTest {
113113
it.get()!!.response?.resultCount == 0
114114
}
115115
val request = mockServer.takeRequest()
116-
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.1.1&_dt"
116+
val path = "/browse/group_id/Beverages?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.2.0&_dt"
117117
assert(request.path.startsWith(path))
118118
}
119119
}

library/src/test/java/io/constructor/core/ConstructorioSearchTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class ConstructorIoSearchTest {
7171
it.get()!!.response?.resultCount == 225
7272
}
7373
val request = mockServer.takeRequest()
74-
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.1.1&_dt="
74+
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.2.0&_dt="
7575
assert(request.path.startsWith(path))
7676
}
7777

@@ -84,7 +84,7 @@ class ConstructorIoSearchTest {
8484
it.networkError
8585
}
8686
val request = mockServer.takeRequest()
87-
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.1.1&_dt="
87+
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.2.0&_dt="
8888
assert(request.path.startsWith(path))
8989
}
9090

@@ -98,7 +98,7 @@ class ConstructorIoSearchTest {
9898
it.isError
9999
}
100100
val request = mockServer.takeRequest()
101-
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.1.1&_dt="
101+
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.2.0&_dt="
102102
assert(request.path.startsWith(path))
103103
}
104104

@@ -114,7 +114,7 @@ class ConstructorIoSearchTest {
114114
it.get()!!.response?.resultCount == 0
115115
}
116116
val request = mockServer.takeRequest()
117-
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.1.1&_dt="
117+
val path = "/search/corn?key=silver-key&i=guapo-the-guid&ui=player-two&s=92&c=cioand-2.2.0&_dt="
118118
assert(request.path.startsWith(path))
119119
}
120120
}

library/src/test/java/io/constructor/core/ConstructorioTestCellTest.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ConstructorioTestCellTest {
6161
suggestions?.isNotEmpty()!! && suggestions.size == 5
6262
}
6363
val request = mockServer.takeRequest()
64-
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.1.1&_dt="
64+
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.2.0&_dt="
6565
assert(request.path.startsWith(path))
6666
}
6767

@@ -72,7 +72,7 @@ class ConstructorioTestCellTest {
7272
val observer = constructorIo.trackSessionStartInternal().test()
7373
observer.assertComplete()
7474
val request = mockServer.takeRequest()
75-
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.1.1&_dt=";
75+
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.2.0&_dt=";
7676
assert(request.path.startsWith(path))
7777
}
7878

@@ -83,7 +83,7 @@ class ConstructorioTestCellTest {
8383
val observer = ConstructorIo.trackInputFocusInternal("tita").test()
8484
observer.assertComplete()
8585
val request = mockServer.takeRequest()
86-
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.1.1&_dt=";
86+
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.2.0&_dt=";
8787
assert(request.path.startsWith(path))
8888
}
8989

@@ -94,7 +94,7 @@ class ConstructorioTestCellTest {
9494
val observer = ConstructorIo.trackAutocompleteSelectInternal("titanic", "tit", "Search Suggestions").test()
9595
observer.assertComplete()
9696
val request = mockServer.takeRequest()
97-
val path = "/autocomplete/titanic/select?autocomplete_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.1.1&_dt="
97+
val path = "/autocomplete/titanic/select?autocomplete_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.2.0&_dt="
9898
assert(request.path.startsWith(path))
9999
}
100100

@@ -105,7 +105,7 @@ class ConstructorioTestCellTest {
105105
val observer = ConstructorIo.trackSearchSubmitInternal("titanic", "tit", null).test()
106106
observer.assertComplete()
107107
val request = mockServer.takeRequest()
108-
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.1.1&_dt=";
108+
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.2.0&_dt=";
109109
assert(request.path.startsWith(path))
110110
}
111111

@@ -116,7 +116,7 @@ class ConstructorioTestCellTest {
116116
val observer = ConstructorIo.trackSearchResultsLoadedInternal("titanic", 10).test()
117117
observer.assertComplete()
118118
val request = mockServer.takeRequest()
119-
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.1.1&_dt=";
119+
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.2.0&_dt=";
120120
assert(request.path.startsWith(path))
121121
}
122122

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

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

@@ -149,7 +149,7 @@ class ConstructorioTestCellTest {
149149
val observer = ConstructorIo.trackPurchaseInternal(arrayOf("TIT-REP-1997", "QE2-REP-1969"), 12.99, "ORD-1312343").test()
150150
observer.assertComplete()
151151
val request = mockServer.takeRequest()
152-
val path = "/autocomplete/TERM_UNKNOWN/purchase?customer_ids=TIT-REP-1997&customer_ids=QE2-REP-1969&revenue=12.99&order_id=ORD-1312343&autocomplete_section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.1.1&_dt=";
152+
val path = "/autocomplete/TERM_UNKNOWN/purchase?customer_ids=TIT-REP-1997&customer_ids=QE2-REP-1969&revenue=12.99&order_id=ORD-1312343&autocomplete_section=Products&key=aluminium-key&i=koopa-the-guid&ui=player-two&s=14&ef-cellone=vanilla&ef-celltwo=whipped-cream&c=cioand-2.2.0&_dt=";
153153
assert(request.path.startsWith(path))
154154
}
155155
}

0 commit comments

Comments
 (0)