Skip to content

Commit c29fe76

Browse files
mshaileshr@gmail.commshaileshr@gmail.com
authored andcommitted
v1.4.1
# Removed support for Google Internet Connection check before call # Added support of whereIn and whereNotIn for $in_query and $nin_query support in Query class
1 parent d014bea commit c29fe76

5 files changed

Lines changed: 3 additions & 41 deletions

File tree

CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11

22
## CHANGELOG
33

4-
## Version 1.4.2
5-
###### Date: 23-August-2019
6-
- [Config] - Added support for ContentstackRegion in Config class
7-
84
------------------------------------------------
95

106
## Version 1.4.1

src/main/java/com/contentstack/sdk/Config.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,6 @@ public class Config {
3030
protected String URL = "cdn.contentstack.io";
3131
protected String VERSION = "v3";
3232
protected String environment = null;
33-
protected ContentstackRegion region = ContentstackRegion.US;
34-
35-
public enum ContentstackRegion { US, EU }
36-
37-
public ContentstackRegion getRegion() { return this.region; }
38-
39-
/**
40-
* Sets region allow you to set your region for the Contentstack server.
41-
*
42-
* @param region
43-
*
44-
* <p>
45-
* <b>Note:</b> Default region sets to us </a>
46-
*
47-
* <br><br><b>Example :</b><br>
48-
* <pre class="prettyprint">
49-
* config.setRegion(ContentstackRegion.US);
50-
* </pre>
51-
*/
52-
53-
public ContentstackRegion setRegion(ContentstackRegion region) {
54-
this.region = region;
55-
return this.region;
56-
}
5733

5834

5935

src/main/java/com/contentstack/sdk/Stack.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*
3535
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3636
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
37-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37+
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
3838
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3939
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4040
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
@@ -100,16 +100,6 @@ protected void setConfig(Config config){
100100
setHeader("environment", config.environment);
101101
}
102102

103-
if (!config.region.name().isEmpty()){
104-
String region = config.region.name().toLowerCase();
105-
if (!region.equalsIgnoreCase("us")){
106-
if(URL.equalsIgnoreCase("cdn.contentstack.io")) {
107-
URL=URL.replace("io", "com");
108-
URL = region + "-" + URL;
109-
}
110-
}
111-
}
112-
113103
}
114104

115105

src/main/java/com/contentstack/sdk/utility/CSAppConstants.java

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

3232
public class CSAppConstants {
3333

34-
public static final String SDK_VERSION = "1.4.2";
34+
public static final String SDK_VERSION = "1.4.1";
3535

3636
public static enum RequestMethod
3737
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1.4.2
1+
1.4.1
22

0 commit comments

Comments
 (0)