Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Flutter V2 Gen1 Docs Update #7499

Merged
merged 89 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from 49 commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
9926a9b
chore: analytics transfer
khatruong2009 Apr 23, 2024
28f8974
chore: authentication transfer from current to prev
khatruong2009 Apr 24, 2024
caaca24
chore: API transfer v1 from current to previous
khatruong2009 Apr 24, 2024
5a2a795
chore: Storage and functions v1 transfer from current to prev
khatruong2009 Apr 24, 2024
8486919
chore: transfer push notifications v1 docs from current to prev
khatruong2009 Apr 24, 2024
d838426
chore: transfer existing resources v1 from current to prev
khatruong2009 Apr 24, 2024
158d57a
chore: transfer datastore v1 from current to prev
khatruong2009 Apr 24, 2024
9af0e40
[Gen 2][Bugfix] Update the flutter mobile support doc. (#7245)
salihgueler Apr 24, 2024
2b79263
chore: change link and maintenance call out from v0 to v1
khatruong2009 Apr 25, 2024
4813ea6
chore: update flutter storage apis (#7326)
Jordan-Nelson Apr 26, 2024
6e2ef08
chore: update flutter v2 migration guide (#7327)
Jordan-Nelson Apr 26, 2024
7ee47f8
chore: update flutter v2 docs to use plugin options (#7336)
NikaHsn Apr 26, 2024
e2b528c
chore: add multi auth back to v1 previous (#7335)
khatruong2009 Apr 29, 2024
7d6d797
StoragePath Documentation for Gen1 (#7279)
tylerjroach Apr 29, 2024
25b4ab1
chore: add kotlin update to docs and formatting changes for flutter (…
khatruong2009 Apr 29, 2024
c978ee8
chore: apply suggestions from code review
Jordan-Nelson Apr 29, 2024
f6dc40c
Chore: Removed v0 flutter fragments (#7349)
khatruong2009 Apr 29, 2024
6b05e17
chore: fix broken links by adding inline filters (#7356)
khatruong2009 Apr 30, 2024
e7d8ffb
chore: added filter to fix broken link (#7382)
khatruong2009 Apr 30, 2024
aec7c35
chore: remove move from directory
khatruong2009 May 6, 2024
a2de1ef
chore: fix gen1 v1 authentication section
khatruong2009 May 6, 2024
0e453ed
chore: fixed flutter v1 gen1 docs
khatruong2009 May 6, 2024
7450a47
chore: fix v1 rest api gen 1
khatruong2009 May 7, 2024
1db0e42
chore: fix storage and functions v1 gen 1 and
khatruong2009 May 7, 2024
fd83de1
chore: fix datastore v1 gen1
khatruong2009 May 7, 2024
1387357
chore: cleanup broken links
khatruong2009 May 7, 2024
0e44f08
chore: add maintenance banner to all push notification pages
khatruong2009 May 7, 2024
77f1c30
chore: add maintenance banner on all sub headings
khatruong2009 May 7, 2024
66ade8c
chore: add missing maintenance banners to auth section
khatruong2009 May 7, 2024
5df9bb7
chore: add existing resources section
khatruong2009 May 7, 2024
7b7db83
chore: remove duplicated paragraph in auth section and updated callou…
khatruong2009 May 7, 2024
e271b64
chore: fix code snippet in graphql authorization modes section
khatruong2009 May 7, 2024
ecf201e
chore: fix code snippets in rest api section
khatruong2009 May 7, 2024
0dd2ee0
chore: fix function links flutter v1 gen 1
khatruong2009 May 7, 2024
25423d2
chore: fix storage snippets
khatruong2009 May 7, 2024
4a32cec
chore: fix childnodes for best practices and existing aws resources
khatruong2009 May 7, 2024
2229aa2
chore: fixed looking for legacy docs links
khatruong2009 May 7, 2024
745696a
chore: fixed here links in configure storage
khatruong2009 May 7, 2024
a87861a
chore: fix configure amplify cli links
khatruong2009 May 7, 2024
994da31
chore: fix tools links
khatruong2009 May 7, 2024
5fe87ca
chore: fix android pages
khatruong2009 May 8, 2024
40920f9
chore: update pubspec.yaml snippets to use the new version of flutter
khatruong2009 May 8, 2024
4abbae3
chore: fix inline filters for swift v1 pages
khatruong2009 May 8, 2024
abb2086
chore: update storage v2 snippets to use path
khatruong2009 May 8, 2024
f674ef3
chore: add storage path for flutter (#7536)
Jordan-Nelson May 8, 2024
c65f32d
chore: remove environment section of pubspec snippets
khatruong2009 May 8, 2024
112fa77
chore: flutter v2 cleanup (#7545)
Jordan-Nelson May 8, 2024
8cce5e3
fix: correct the sendUserAttributeConfirmationCode API name (#7547)
khatruong2009 May 8, 2024
02cb540
fix: added custom primary key migration
Equartey May 9, 2024
d0bca49
fix: CPK table verbiage
Equartey May 10, 2024
2b99744
chore: fix typo in admin_actions name, use one header for all platfor…
khatruong2009 May 10, 2024
58acad3
chore: remove duplicate pages that don't exist on gen2 and edit paths
khatruong2009 May 10, 2024
ec5321c
Flutter v2 gen2 remove pages (#7579)
khatruong2009 May 13, 2024
7ac992a
chore: fix flutter v2 PN docs (#7580)
Jordan-Nelson May 13, 2024
03a0c65
chore: update analytics enable example
Jordan-Nelson May 13, 2024
31a7cfc
chore: remove references to min flutter version
Jordan-Nelson May 13, 2024
b1fa2e3
chore: fix path typos
khatruong2009 May 14, 2024
2db33c0
chore: change existing resources link to the correct page
khatruong2009 May 14, 2024
fb552ca
chore: move set up cli link to current since it doesn't exist on prev
khatruong2009 May 14, 2024
9f495fc
chore: add flutter back into platforms export in the under the hood a…
khatruong2009 May 14, 2024
7c799b6
chore: addressed comments regarding removing split up context between…
khatruong2009 May 15, 2024
a8fa618
Flutter v2 gen2 comment fixes (#7598)
khatruong2009 May 16, 2024
c7648b3
Apply suggestions from code review
khatruong2009 May 16, 2024
b5a0829
chore: revert white space changes
khatruong2009 May 16, 2024
7108c6b
chore: revert bash back to console
khatruong2009 May 17, 2024
fae2ccf
chore: remove inline filters and add fragment back in
khatruong2009 May 17, 2024
2a60bf8
chore: add statement about models back in
khatruong2009 May 17, 2024
a8645f8
chore: remove unused "datastore coming soon" file
khatruong2009 May 17, 2024
923ec2d
chore: remove callout
khatruong2009 May 17, 2024
70b9820
chore: revert user pool capitalization changes: out of scope
khatruong2009 May 17, 2024
cf4f87d
chore: change the order of query data beginsWith back to original
khatruong2009 May 17, 2024
42f75f5
chore: remove callouts
khatruong2009 May 17, 2024
60fbf78
chore: revert spacing change
khatruong2009 May 17, 2024
7d5bace
chore: fixes for auth category (#7612)
Jordan-Nelson May 17, 2024
b1fc984
chore: flutter v2 storage fixes (#7615)
Jordan-Nelson May 17, 2024
d3e90b0
Update src/fragments/lib-v1/auth/native_common/user_attributes/common…
khatruong2009 May 17, 2024
920b133
Flutter v2 fix analytics (#7618)
khatruong2009 May 17, 2024
38ce2ec
chore: revert changes in mutate-data file and fix formatting
khatruong2009 May 17, 2024
1204d15
Update src/fragments/lib-v1/datastore/flutter/sync/50-selectiveSync.mdx
khatruong2009 May 17, 2024
cdd75b4
Update src/fragments/lib-v1/storage/existing-resources.mdx
khatruong2009 May 17, 2024
63b2261
chore: revert out of scope changes
khatruong2009 May 17, 2024
e823368
chore: update storage import existing resource
Jordan-Nelson May 17, 2024
b54ac07
chore: remove changes to js only files
khatruong2009 May 17, 2024
58ece63
chore: clean up gen 2 pre-req
Jordan-Nelson May 20, 2024
16aa222
chore: remove link to platform setup guide in gen 2
Jordan-Nelson May 20, 2024
a3db3c8
chore: update pre-reqs and getting started
Jordan-Nelson May 20, 2024
bd2f456
chore: add move back into vPrevious docs
khatruong2009 May 20, 2024
43f87c3
chore: add redirect from previous move page to the vPrevious move page
khatruong2009 May 20, 2024
603f34f
Merge branch 'main' into flutter-v2-gen2
khatruong2009 May 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,7 @@
"resolver's",
"resourcename",
"Resources.S3Bucket.Properties.BucketName",
"respectprimarykeyattributesonconnectionfield",
"RESTAPI",
"RESTENDPOINT",
"resubscription",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Breadcrumbs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const overrides = {
'/gen1/javascript/prev': 'V5',
'/gen1/swift/prev': 'V1',
'/gen1/android/prev': 'V1',
'/gen1/flutter/prev': 'V0',
'/gen1/flutter/prev': 'V1',
'/gen1/react/prev': 'V5',
'/gen1/react-native/prev': 'V5',
'/gen1/angular/prev': 'V5',
Expand Down
6 changes: 0 additions & 6 deletions src/constants/feature-lists-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,6 @@ const featureListData = {
'Upload and download files to and from cloud storage with advanced controls like pausing and resuming upload operations.',
linkText: 'Upload and Download files',
link: 'build-a-backend/storage/upload/'
},
{
content:
'Manage content through APIs for listing, accessing, and manipulating files. Set file permission levels, configure automatic events and triggers, and more.',
linkText: 'Advanced file operations and access control',
link: 'build-a-backend/storage/configure-access/'
}
],
heading: 'Storage'
Expand Down
4 changes: 2 additions & 2 deletions src/data/platforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export const PLATFORM_VERSIONS = {
current: 'v2'
},
flutter: {
prev: 'v0',
current: 'v1'
prev: 'v1',
current: 'v2'
},
javascript: {
prev: 'v5',
Expand Down
133 changes: 128 additions & 5 deletions src/directory/directory.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1256,9 +1256,6 @@ export const directory = {
{
path: 'src/pages/gen1/[platform]/build-a-backend/storage/copy/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/build-a-backend/storage/move/index.mdx'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please coordinate with @katiegoines to get a redirect in place for this page.

},
{
path: 'src/pages/gen1/[platform]/build-a-backend/storage/remove/index.mdx'
},
Expand Down Expand Up @@ -1688,6 +1685,9 @@ export const directory = {
{
path: 'src/pages/gen1/[platform]/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/index.mdx'
},
{
path: 'src/pages/[platform]/prev/build-a-backend/restapi/test-api/index.mdx'
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't these all be prefixed with "gen1" as none of these pages actually exist in Gen 2.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are already paths for src/pages/gen1/[platform]/prev/build-a-backend/restapi/test-api/index.mdx in the directory. These paths for Gen2 were just added in case we had a need for the pages in the future but they can be removed if you want.

{
path: 'src/pages/gen1/[platform]/build-a-backend/troubleshooting/library-not-configured/index.mdx'
}
Expand Down Expand Up @@ -1757,12 +1757,18 @@ export const directory = {
{
path: 'src/pages/gen1/[platform]/build-ui/uibuilder/slots/index.mdx'
},
{
path: 'src/pages/[platform]/prev/build-a-backend/storage/import/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/build-ui/uibuilder/theming/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/build-ui/uibuilder/responsive/index.mdx'
},
{
path: 'src/pages/[platform]/prev/build-a-backend/storage/modify-amplify-generated-resources/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/build-ui/uibuilder/override/index.mdx'
},
Expand Down Expand Up @@ -2169,10 +2175,10 @@ export const directory = {
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/sign-in-with-web-ui/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/enable-guest-access/index.mdx'
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/multi-step-sign-in/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/multi-step-sign-in/index.mdx'
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/enable-guest-access/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/add-social-provider/index.mdx'
Expand Down Expand Up @@ -2204,9 +2210,24 @@ export const directory = {
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/delete-user-account/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/admin-actions/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/user-group-management/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/existing-resources/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/import-existing-resources/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/existing-resources-no-cli/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/override-cognito/index.mdx'
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't rename pages. don't add pages that aren't relevant.

{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/auth/auth-events/index.mdx'
},
Expand All @@ -2230,12 +2251,24 @@ export const directory = {
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/set-up-graphql-api/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/connect-api-to-existing-database/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/data-modeling/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/customize-authorization-rules/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/connect-to-api/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/api-graphql-concepts/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/customize-authorization-modes/index.mdx'
},
khatruong2009 marked this conversation as resolved.
Show resolved Hide resolved
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/customize-authz-modes/index.mdx'
},
Expand All @@ -2248,6 +2281,12 @@ export const directory = {
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/subscribe-data/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/custom-business-logic/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/search-and-result-aggregations/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/working-with-files/index.mdx'
},
Expand All @@ -2260,20 +2299,52 @@ export const directory = {
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/offline/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/client-code-generation/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/advanced-workflows/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/existing-resources/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/connect-machine-learning-services/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/schema-evolution/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/modify-amplify-generated-resources/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/troubleshooting/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/upgrade-guide/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/best-practice/index.mdx',
children: [
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/best-practice/batch-put-custom-resolver/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/best-practice/query-with-sorting/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/best-practice/warehouse-management/index.mdx'
}
]
}
]
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/restapi/index.mdx',
children: [
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/restapi/configure-rest-api/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/restapi/set-up-rest-api/index.mdx'
},
Expand All @@ -2292,14 +2363,23 @@ export const directory = {
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/restapi/customize-authz/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/restapi/test-api/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/restapi/existing-resources/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/restapi/override-api-gateway/index.mdx'
}
]
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/storage/index.mdx',
children: [
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/storage/configure-storage/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/storage/set-up-storage/index.mdx'
},
Expand Down Expand Up @@ -2336,12 +2416,18 @@ export const directory = {
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/storage/lambda-triggers/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/storage/import/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/storage/custom-plugin/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/storage/existing-resources/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/storage/modify-amplify-generated-resources/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/storage/sdk/index.mdx'
},
Expand All @@ -2350,6 +2436,32 @@ export const directory = {
}
]
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/functions/index.mdx',
children: [
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/functions/set-up-function/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/functions/layers/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/functions/environment-variables/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/functions/secrets/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/functions/build-options/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/functions/configure-options/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/functions/graphql-from-lambda/index.mdx'
}
]
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/push-notifications/index.mdx',
children: [
Expand Down Expand Up @@ -2385,6 +2497,17 @@ export const directory = {
}
]
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/existing-resources/index.mdx',
children: [
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/existing-resources/cli/index.mdx'
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/existing-resources/cdk/index.mdx'
}
]
},
{
path: 'src/pages/gen1/[platform]/prev/build-a-backend/server-side-rendering/index.mdx'
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```dart
await Amplify.Analytics.enable();
Amplify.Analytics.enable();
khatruong2009 marked this conversation as resolved.
Show resolved Hide resolved
Jordan-Nelson marked this conversation as resolved.
Show resolved Hide resolved
```
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
- [Install and configure Amplify CLI](/gen1/[platform]/tools/cli/start/set-up-cli/)
- A Flutter application targeting Flutter SDK >= 2.10.0 (stable version) with Amplify libraries integrated
- An iOS configuration targeting at least iOS 11.0
- An Android configuration targeting at least Android API level 21 (Android 5.0) or above
- A Flutter application targeting Flutter SDK >=3.3.0 with Amplify libraries integrated

The following are also required, depending on which platforms you are targeting:
Jordan-Nelson marked this conversation as resolved.
Show resolved Hide resolved

- An iOS configuration targeting at least iOS 13.0 and XCode version >=13.2
- An Android configuration targeting at least Android API level 24 (Android 7.0) or above
- Any browser supported by Flutter for Web (you can check the list of supported browsers [here](https://docs.flutter.dev/development/platform-integration/web/faq#which-web-browsers-are-supported-by-flutter))
- Any Windows OS meeting Flutter minimums
- macOS version 10.15 or higher
- Any Ubuntu Linux distribution meeting Flutter minimums
khatruong2009 marked this conversation as resolved.
Show resolved Hide resolved
- For a full example please follow the [project setup walkthrough](/gen1/[platform]/prev/start/project-setup/create-application/)
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@ In your Flutter project directory, open **pubspec.yaml**.
Add Analytics by adding these libraries into your dependencies block:

```yaml
environment:
sdk: '>=2.15.0 <3.0.0'

dependencies:
# Should already be added during Project Setup walkthrough
amplify_flutter: ^0.6.0

# Add these lines in `dependencies` if you have not added it earlier during the Project Setup
amplify_auth_cognito: ^0.6.0
amplify_analytics_pinpoint: ^0.6.0
amplify_analytics_pinpoint: ^1.0.0
amplify_auth_cognito: ^1.0.0
amplify_flutter: ^1.0.0
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ Future<void> _configureAmplify() async {
}
```

Make sure that the `amplifyconfiguration.dart` file generated in the project setup is included and sent to `Amplify.configure`:
<Callout>

When running your app on MacOS you will need to enable keychain sharing in Xcode, as described in the [Project setup guide](/gen1/[platform]/prev/start/project-setup/platform-setup/#enable-keychain).
khatruong2009 marked this conversation as resolved.
Show resolved Hide resolved

</Callout>

Make sure that the amplifyconfiguration.dart file generated in the project setup is included and sent to Amplify.configure:
khatruong2009 marked this conversation as resolved.
Show resolved Hide resolved

```dart
import 'package:amplify_analytics_pinpoint/amplify_analytics_pinpoint.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ To record an event, create an `AnalyticsEvent` and call `Amplify.Analytics.recor
Future<void> trackEventsWithProperties() async {
final event = AnalyticsEvent('test');

event.properties
event.customProperties
..addBoolProperty('boolKey', true)
..addDoubleProperty('doubleKey', 10)
..addIntProperty('intKey', 10)
Expand Down