Skip to content

Commit

Permalink
Merge pull request #34 from contentstack/next
Browse files Browse the repository at this point in the history
feat: [CS-37836]

- Added support for include metadata in asset, entry and query class
- Added support of Region for Azure-EU
- General code and API document improvements
- Breaking changes : PublishType Enums are updated to all CAPS
- Dependency version released in release build type
- EntryModel publish_details parsing issue fixed #30
  • Loading branch information
ishaileshmishra authored May 10, 2023
2 parents fa700bc + 6638f1d commit 9c33acf
Show file tree
Hide file tree
Showing 52 changed files with 1,194 additions and 2,607 deletions.
116 changes: 65 additions & 51 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# CHANGELOG

## Version 3.12.0

### Date: 02-May-2023

- Added support for include metadata in asset, entry and query class
- Added support of Region for Azure-EU
- General code and API document improvements
- Breaking changes : PublishType Enums are updated to all CAPS
- Kotlin support removed due to build issue
- EntryModel publish_details parsing issue fixed #30

---

## Version 3.11.0

### Date: 08-Feb-2023
Expand Down Expand Up @@ -131,15 +144,8 @@ Below two support from the Config class has been removed permanently
Change:

- Removed support for unsafe (HTTP) request.
- Below two breaking changes from Config class has been deprecated

```java
@Deprecated
public void setSSL(boolean isSSL)setSSL()

@Deprecated
public boolean isSSL()
```
- Deprecated setSSL(boolean isSSL)setSSL() from config class
- Deprecated isSSL() from config class

---

Expand Down Expand Up @@ -172,11 +178,11 @@ Added below function support for sync in Stack class
New Features:

- Entry
- added method ‘addParam’
- added method ‘addParam’
- Query
- added method 'addParam'
- added method 'addParam'
- Asset
- added method ‘addParam'
- added method ‘addParam'

---

Expand All @@ -187,21 +193,21 @@ New Features:
New Features:

- Stack
- added method 'ImageTransform'
- added method 'ImageTransform'
- Query
- added method 'includeContentType'
- added method 'includeContentType'
- QueryResult
- added method 'content_type'
- added method 'content_type'
- API Modifications:
- None
- None

API deprecation:

- Query
- Deprecated method 'includeSchema'
- Deprecated method 'includeSchema'

- Bug Fixes:
- None
- None

---

Expand All @@ -210,18 +216,18 @@ API deprecation:
### Date: 28-July-2017

- New Features:
- None
- None

- API Modifications:
- None
- None

API deprecation:

None

- Bug Fixes:
- Cache Policy bug fixed.
- Cache Policy timeout increased.
- Cache Policy bug fixed.
- Cache Policy timeout increased.

---

Expand All @@ -234,15 +240,18 @@ New Features:
- None

API Modifications:
- None

- None

API deprecation:
- Asset

- Asset

1] Removed getPublishDetails() method. Entry 1] Removed getPublishDetails() method.

Bug Fixes:
- None.

- None.

---

Expand All @@ -251,10 +260,12 @@ Bug Fixes:
### Date: 17-May-2017

New Features:
- None

- None

API Modifications:
- None

- None

API deprecation:

Expand All @@ -275,16 +286,16 @@ New Features:
Added new class Group

Entry
1] Added getAllEntries(String refKey, String refContentType) method.
2] Added getGroups(String key) method.
3] Added getGroup(String key) method.
1] Added getAllEntries(String refKey, String refContentType) method.
2] Added getGroups(String key) method.
3] Added getGroup(String key) method.

Asset
1] Added setCachePolicy(CachePolicy policy) method.
2] Added getTags() method.
1] Added setCachePolicy(CachePolicy policy) method.
2] Added getTags() method.

AssetLibrary
1] Added setCachePolicy(CachePolicy policy) method.
1] Added setCachePolicy(CachePolicy policy) method.

API Modifications:

Expand Down Expand Up @@ -320,7 +331,7 @@ environment, Config config) method.
Stack 1] Added asset() method. 2] Added assetLibrary() method.

Entry
1] Added getPublishDetails() method.
1] Added getPublishDetails() method.

API Modifications:

Expand All @@ -332,20 +343,20 @@ Conetntstack 1] Removed stack(Context context, String stackApiKey, String access
environment, boolean isEnvironmentUid) method.

Stack
1] Removed setVersion(String version) method.
2] Removed setURL(String hostName, boolean isSSL) method.
3] Removed setEnvironment(String environment, boolean isEnvironmentUid) method.
4] Removed isEnvironmentUid() method.
5] Removed getEnvironment() method.
6] Removed getVersion() method.
7] Removed getURL() method
1] Removed setVersion(String version) method.
2] Removed setURL(String hostName, boolean isSSL) method.
3] Removed setEnvironment(String environment, boolean isEnvironmentUid) method.
4] Removed isEnvironmentUid() method.
5] Removed getEnvironment() method.
6] Removed getVersion() method.
7] Removed getURL() method

Entry
1] Removed getMetadata() method.
1] Removed getMetadata() method.

Query
1] Removed afterUid() method.
2] Removed beforeUid() method.
1] Removed afterUid() method.
2] Removed beforeUid() method.

Bug Fixes:

Expand Down Expand Up @@ -379,17 +390,20 @@ Fixed API calls issue for Android 7.0 Nougat.
### Date: 22-September-2016

New Features:
- None
API Modifications:
- None

- None
API Modifications:
- None

API deprecation:
- None

- None

Bug Fixes:
- Query 1] Fixed search method issue causing improper result.
- Entry 1] Fixed includeReference method issue causing improper result. 2] Fixed fetch method which
now return response as per environment.

- Query 1] Fixed search method issue causing improper result.
- Entry 1] Fixed includeReference method issue causing improper result. 2] Fixed fetch method which
now return response as per environment.

---

Expand Down
11 changes: 4 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
buildscript {

ext.jacocoVersion = '0.8.8'

ext.jacoco_version = '0.8.8'
repositories {
maven { url "https://plugins.gradle.org/m2/" }
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:7.0.4' //4.1.3
classpath "com.android.tools.build:gradle:7.2.2" //7.0.4
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'
// NOTE: Do not place your application dependencies here
classpath "org.jacoco:org.jacoco.core:$jacocoVersion"
classpath "org.jacoco:org.jacoco.core:$jacoco_version"
}
}

apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply from: "${rootDir}/scripts/publish-root.gradle"

task clean(type: Delete) {
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
67 changes: 15 additions & 52 deletions contentstack/build.gradle
Original file line number Diff line number Diff line change
@@ -1,61 +1,22 @@
apply plugin: 'com.android.library'
apply plugin: 'jacoco'

ext {
PUBLISH_GROUP_ID = 'com.contentstack.sdk'
PUBLISH_ARTIFACT_ID = 'android'
PUBLISH_VERSION = '3.11.0'
PUBLISH_DESCRIPTION = 'The Content Delivery SDK is used to retrieve content from your Contentstack account and deliver it to your web or mobile properties.'
PUBLISH_URL = 'https://github.com/contentstack/contentstack-android'
PUBLISH_LICENSE_NAME = 'MIT License'
PUBLISH_LICENSE_URL = 'https://github.com/contentstack/contentstack-android/blob/master/LICENSE'
PUBLISH_DEVELOPER_ID = 'ishaileshmishra'
PUBLISH_DEVELOPER_NAME = 'Shailesh Mishra'
PUBLISH_DEVELOPER_EMAIL = '[email protected]'
PUBLISH_SCM_CONNECTION = 'scm:[email protected]:contentstack/contentstack-android'
PUBLISH_SCM_DEVELOPER_CONNECTION = 'scm:[email protected]:contentstack/contentstack-android'
PUBLISH_SCM_URL = 'https://github.com/contentstack/contentstack-android/tree/master'
}

apply from: "${rootProject.projectDir}/scripts/publish-module.gradle"

def localProperties = new Properties()
localProperties.load(new FileInputStream(rootProject.file("local.properties")))

android {
compileSdkVersion 33
compileSdk 33
buildToolsVersion '30.0.2'

defaultConfig {
minSdkVersion 19
minSdk 19
targetSdk 33
versionCode 1
versionName "1.0.0"
versionName "1.0"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
debuggable true
testCoverageEnabled true
buildConfigField "String", "host", localProperties['host']
buildConfigField "String", "APIKey", localProperties['APIKey']
buildConfigField "String", "deliveryToken", localProperties['deliveryToken']
buildConfigField "String", "environment", localProperties['env']
buildConfigField "String", "contentTypeUID", localProperties['contentType']
buildConfigField "String", "assetUID", localProperties['assetUid']
}

release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "String", "host", localProperties['host']
buildConfigField "String", "APIKey", localProperties['APIKey']
buildConfigField "String", "deliveryToken", localProperties['deliveryToken']
buildConfigField "String", "environment", localProperties['env']
buildConfigField "String", "contentTypeUID", localProperties['contentType']
buildConfigField "String", "assetUID", localProperties['assetUid']
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
def localProperties = new Properties()
localProperties.load(new FileInputStream(rootProject.file("local.properties")))
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand All @@ -74,12 +35,14 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//testImplementation 'junit:junit:5.9.2'
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.android.volley:volley:1.2.1'
androidTestImplementation 'androidx.test:core:1.5.0'
androidTestImplementation "androidx.test:runner:1.5.2"
androidTestImplementation "androidx.test:rules:1.5.0"
implementation 'androidx.test:core:1.5.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
Loading

0 comments on commit 9c33acf

Please sign in to comment.