Skip to content

Commit

Permalink
chore: update gradle version in readme to match sdk gradle version (#385
Browse files Browse the repository at this point in the history
)

Co-authored-by: Dhuka <[email protected]>
  • Loading branch information
sdhuka and Dhuka authored Jun 9, 2022
1 parent fb86285 commit d15d4fd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Step by step documentation can be found here: https://aws-amplify.github.io/docs
In the project's `build.gradle`, add a dependency to the `dependencies` inside the `buildscript` block:

```groovy
classpath 'com.amazonaws:aws-android-sdk-appsync-gradle-plugin:3.1.1'
classpath 'com.amazonaws:aws-android-sdk-appsync-gradle-plugin:3.1.3'
```

Also, add the maven plugins repository to your `repositories`.
Expand Down Expand Up @@ -69,8 +69,8 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.amazonaws:aws-android-sdk-appsync-gradle-plugin:3.1.1'
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.amazonaws:aws-android-sdk-appsync-gradle-plugin:3.1.3'
}
}
Expand Down Expand Up @@ -195,7 +195,7 @@ Create a file named `awsconfiguration.json` under your app's `res/raw` directory
}
```

The `AWSConfiguration` represents the configuration information present in `awsconfiguration.json` file. By default, the information under `Default` section will be used.
The `AWSConfiguration` represents the configuration information present in `awsconfiguration.json` file. By default, the information under `Default` section will be used.

```java
AWSAppSyncClient client = AWSAppSyncClient.builder()
Expand Down Expand Up @@ -423,7 +423,7 @@ public void addPost() {
// Error handling
}
};

AddPostMutation addPostMutation = AddPostMutation.builder()
.id(UUID.randomUUID().toString())
.title(title)
Expand All @@ -434,7 +434,7 @@ public void addPost() {
.downs(0)
.expectedVersion(1)
.build();

client.mutate(addPostMutation).enqueue(postsCallback);
}
```
Expand Down

0 comments on commit d15d4fd

Please sign in to comment.