Skip to content

Commit

Permalink
Merge pull request #28 from contentstack/3.11.0
Browse files Browse the repository at this point in the history
v3.11.0 locale support added for string
  • Loading branch information
ishaileshmishra authored Feb 27, 2023
2 parents 5cdd8fa + 014460b commit 45f5542
Show file tree
Hide file tree
Showing 147 changed files with 6,599 additions and 24,041 deletions.
222 changes: 103 additions & 119 deletions CHANGELOG.md

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ android:enabled="true">
To initialize the SDK, specify application context, the API key, access token, and environment name of the stack as shown in the snippet given below:

```java
Stack stack = Contentstack.stack(context, "api_key", "delivery_token", "environment");
Stack stack = Contentstack.stack(context, "apiKey", "deliveryToken", "environment");
```

Once you have initialized the SDK, you can query entries to fetch the required content.
Expand Down Expand Up @@ -116,7 +116,7 @@ A publishing environment corresponds to one or more deployment servers or a cont
To initialize the SDK, specify application context, the API key, access token, and environment name of the stack as shown in the snippet given below:

```java
Stack stack = Contentstack.stack(context, "api_key", "access_token", "enviroment_name");
Stack stack = Contentstack.stack(context, "apiKey", "deliveryToken", "environment");
```

Once you have initialized the SDK, you can query entries to fetch the required content.
Expand All @@ -125,10 +125,12 @@ Once you have initialized the SDK, you can query entries to fetch the required c

To retrieve a single entry from a content type use the code snippet given below:

ContentType contentType = stack.contentType("content_type_uid");
```java
ContentType contentType = stack.contentType("contentTypeUid");
```

```java
Entry blogEntry = contentType.entry("entry_uid");
Entry blogEntry = contentType.entry("entryUid");
blogEntry.fetch(new EntryResultCallBack() {
@Override
public void onCompletion(ResponseType responseType, Error error) {
Expand All @@ -146,7 +148,7 @@ To retrieve multiple entries of a particular content type, use the code snippet

```java
//stack is an instance of Stack class
Query blogQuery = stack.contentType("content_type_uid").query();
Query blogQuery = stack.contentType("contentTypeUid").query();
blogQuery.find(new QueryResultsCallBack() {
@Override
public void onCompletion(ResponseType responseType, QueryResult queryResult, Error error) {
Expand Down Expand Up @@ -219,7 +221,7 @@ Pagination token can be used in case you want to fetch only selected batches. It

```java
//stack is an instance of Stack class
stack.syncPaginationToken("pagination_token", new SyncResultCallBack() {
stack.syncPaginationToken("paginationToken", new SyncResultCallBack() {
@Override
public void onCompletion(SyncStack syncStack, Error error) {
if(error == null){
Expand All @@ -236,7 +238,7 @@ You can use the sync token (that you receive after initial sync) to get the upda

```java
//stack is an instance of Stack class
stack.syncToken("sync_token", new SyncResultCallBack() {
stack.syncToken("syncToken", new SyncResultCallBack() {
@Override
public void onCompletion(SyncStack syncStack,Error error) {
if(error == null){
Expand All @@ -259,7 +261,7 @@ You can use advanced sync queries to fetch custom results while performing initi

### The MIT License (MIT)

Copyright © 2012-2022 [Contentstack](https://www.contentstack.com/). All Rights Reserved
Copyright © 2012-2023 [Contentstack](https://www.contentstack.com/). All Rights Reserved

Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
Expand Down
27 changes: 27 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Security

Contentstack takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations.

If you believe you have found a security vulnerability in any Contentstack-owned repository, please report it to us as described below.

## Reporting Security Issues

**Please do not report security vulnerabilities through public GitHub issues.**

Send email to [[email protected]](mailto:[email protected]).

You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message.

Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:

* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue

This information will help us triage your report more quickly.

[https://www.contentstack.com/trust/](https://www.contentstack.com/trust/)
19 changes: 12 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
buildscript {

ext.jacocoVersion = '0.8.8'

repositories {
maven { url "https://plugins.gradle.org/m2/" }
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'org.jacoco:org.jacoco.core:0.8.6'
classpath 'com.android.tools.build:gradle:7.0.4' //4.1.3
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"
}
}

allprojects {
repositories {
maven { url "https://maven.google.com" }
}
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply from: "${rootDir}/scripts/publish-root.gradle"

task clean(type: Delete) {
delete rootProject.buildDir
}
Loading

0 comments on commit 45f5542

Please sign in to comment.