Skip to content

Commit b838517

Browse files
committed
fix: add android install and amplify data example
1 parent 18b7017 commit b838517

File tree

1 file changed

+37
-0
lines changed
  • src/pages/[platform]/build-a-backend/data/aws-appsync-apollo-extensions

1 file changed

+37
-0
lines changed

src/pages/[platform]/build-a-backend/data/aws-appsync-apollo-extensions/index.mdx

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@ AWS AppSync Apollo Extensions provide AWS AppSync authorizers to be used with th
4444

4545
The Amplify library provides components to facilitate configuring the authorizers with Apollo client by providing configuration values to connect to your Amplify Data backend.
4646

47+
<InlineFilter filters={["android"]}>
48+
49+
### Install the AWS AppSync Apollo library
50+
51+
Add AWS AppSync Apollo Extensions dependency to your app/build.gradle.kts file:
52+
53+
```kotlin title="app/build.gradle.kts"
54+
dependencies {
55+
// highlight-start
56+
implementation("com.amplifyframework:aws-appsync-apollo-extensions-android:1.0.0")
57+
// highlight-end
58+
}
59+
```
60+
61+
</InlineFilter>
62+
4763
<InlineFilter filters={["swift"]}>
4864

4965
### Install the AWS AppSync Apollo library
@@ -198,6 +214,27 @@ func createApolloClient() throws -> ApolloClient {
198214

199215
</InlineFilter>
200216

217+
<InlineFilter filters={["android"]}>
218+
219+
220+
Add Amplify AppSync Extensions dependency to your app/build.gradle.kts file:
221+
222+
```kotlin title="app/build.gradle.kts"
223+
dependencies {
224+
// highlight-start
225+
implementation("com.amplifyframework:amplify-appsync-apollo:1.0.0")
226+
// highlight-end
227+
}
228+
```
229+
230+
</InlineFilter>
231+
232+
```kotlin
233+
Code Sample
234+
```
235+
236+
</InlineFilter>
237+
201238
Depending on your authorization strategy defined on your schema, you can use the corresponding Authorizer. To read more about the strategies and their corresponding auth modes, see [Available authorization strategies](/[platform]/build-a-backend/data/customize-authz/#available-authorization-strategies).
202239

203240

0 commit comments

Comments
 (0)