Skip to content

Commit

Permalink
Update sdk references (#6632)
Browse files Browse the repository at this point in the history
* Add SDK library links for v1

* Update data usage policy loc and crosslinks

* Redirects for moved page

* Update to data info pages and directory listings

* Update uninstall app listings and directory

* Improve meta description

* Update meta description for uninstalling an app

* Added canonicalUrl to duplicate pages
  • Loading branch information
heatheramz authored Dec 11, 2023
1 parent ede9b85 commit 18c75be
Show file tree
Hide file tree
Showing 22 changed files with 418 additions and 19 deletions.
16 changes: 14 additions & 2 deletions redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -4135,7 +4135,13 @@
},
{
"source":"/lib-v1/info/overview/q/platform/ios/",
"target":"/swift/prev/build-a-backend/more-features/datastore/data-usage-policy/",
"target":"/swift/prev/build-a-backend/auth/data-usage-policy/",
"status":"301",
"condition":null
},
{
"source":"/swift/prev/build-a-backend/more-features/datastore/data-usage-policy/",
"target":"/swift/prev/build-a-backend/auth/data-usage-policy/",
"status":"301",
"condition":null
},
Expand Down Expand Up @@ -6235,7 +6241,13 @@
},
{
"source":"/lib/info/overview/q/platform/ios/",
"target":"/swift/build-a-backend/more-features/datastore/data-usage-policy/",
"target":"/swift/build-a-backend/auth/data-usage-policy/",
"status":"301",
"condition":null
},
{
"source":"/swift/build-a-backend/more-features/datastore/data-usage-policy/",
"target":"/swift/build-a-backend/auth/data-usage-policy/",
"status":"301",
"condition":null
},
Expand Down
34 changes: 29 additions & 5 deletions src/directory/directory.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ export const directory = {
{
path: 'src/pages/[platform]/build-a-backend/auth/sdk/index.mdx'
},
{
path: 'src/pages/[platform]/build-a-backend/auth/data-usage-policy/index.mdx'
},
{
path: 'src/pages/[platform]/build-a-backend/auth/app-uninstall/index.mdx'
},
Expand Down Expand Up @@ -375,6 +378,9 @@ export const directory = {
},
{
path: 'src/pages/[platform]/build-a-backend/storage/sdk/index.mdx'
},
{
path: 'src/pages/[platform]/build-a-backend/storage/data-usage-policy/index.mdx'
}
]
},
Expand Down Expand Up @@ -442,7 +448,7 @@ export const directory = {
},
{
path: 'src/pages/[platform]/build-a-backend/push-notifications/push-notifications-migration-guide/index.mdx'
},
}
]
},
{
Expand Down Expand Up @@ -503,6 +509,9 @@ export const directory = {
},
{
path: 'src/pages/[platform]/build-a-backend/more-features/predictions/sdk/index.mdx'
},
{
path: 'src/pages/[platform]/build-a-backend/more-features/predictions/data-usage-policy/index.mdx'
}
]
},
Expand Down Expand Up @@ -543,7 +552,10 @@ export const directory = {
path: 'src/pages/[platform]/build-a-backend/more-features/analytics/analytics-migration-guide/index.mdx'
},
{
path: 'src/pages/[platform]/build-a-backend/auth/app-uninstall/index.mdx'
path: 'src/pages/[platform]/build-a-backend/more-features/analytics/data-usage-policy/index.mdx'
},
{
path: 'src/pages/[platform]/build-a-backend/more-features/analytics/app-uninstall/index.mdx'
}
]
},
Expand Down Expand Up @@ -593,7 +605,7 @@ export const directory = {
path: 'src/pages/[platform]/build-a-backend/more-features/datastore/data-usage-policy/index.mdx'
},
{
path: 'src/pages/[platform]/build-a-backend/auth/app-uninstall/index.mdx'
path: 'src/pages/[platform]/build-a-backend/more-features/datastore/app-uninstall/index.mdx'
}
]
},
Expand Down Expand Up @@ -664,7 +676,7 @@ export const directory = {
},
{
path: 'src/pages/[platform]/build-a-backend/more-features/in-app-messaging/in-app-messaging-migration-guide/index.mdx'
},
}
]
},
{
Expand Down Expand Up @@ -1257,6 +1269,9 @@ export const directory = {
{
path: 'src/pages/[platform]/prev/build-a-backend/auth/sdk/index.mdx'
},
{
path: 'src/pages/[platform]/prev/build-a-backend/auth/data-usage-policy/index.mdx'
},
{
path: 'src/pages/[platform]/prev/build-a-backend/auth/app-uninstall/index.mdx'
},
Expand Down Expand Up @@ -1385,6 +1400,9 @@ export const directory = {
},
{
path: 'src/pages/[platform]/prev/build-a-backend/storage/sdk/index.mdx'
},
{
path: 'src/pages/[platform]/prev/build-a-backend/storage/data-usage-policy/index.mdx'
}
]
},
Expand Down Expand Up @@ -1481,6 +1499,9 @@ export const directory = {
},
{
path: 'src/pages/[platform]/prev/build-a-backend/more-features/predictions/sdk/index.mdx'
},
{
path: 'src/pages/[platform]/prev/build-a-backend/more-features/predictions/data-usage-policy/index.mdx'
}
]
},
Expand Down Expand Up @@ -1524,7 +1545,10 @@ export const directory = {
path: 'src/pages/[platform]/prev/build-a-backend/more-features/analytics/sdk/index.mdx'
},
{
path: 'src/pages/[platform]/prev/build-a-backend/auth/app-uninstall/index.mdx'
path: 'src/pages/[platform]/prev/build-a-backend/more-features/analytics/data-usage-policy/index.mdx'
},
{
path: 'src/pages/[platform]/prev/build-a-backend/more-features/analytics/app-uninstall/index.mdx'
}
]
},
Expand Down
6 changes: 4 additions & 2 deletions src/fragments/lib-v1/android-maintenance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

Amplify Android v1 is now in **Maintenance Mode** until May 31st, 2024. This means that we will continue to include updates to ensure compatibility with backend services and security. No new features will be introduced in v1.

Please use the latest version (v2) of [Amplify Library for Android](/android/tools/libraries/) to get started.
Please use the latest version (v2) of [Amplify Library for Android](/[platform]/tools/libraries/) to get started.

If you are currently using v1, follow [these instructions](/android/start/project-setup/upgrade-guide/) to upgrade to v2.
If you are currently using v1, follow [these instructions](/[platform]/start/project-setup/upgrade-guide/) to upgrade to v2.

**Amplify libraries should be used for all new cloud connected applications.** If you are currently using the AWS Mobile SDK for Android, you can [access the documentation here](/[platform]/sdk/).

</Callout>
6 changes: 4 additions & 2 deletions src/fragments/lib-v1/ios-maintenance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

Amplify iOS v1 is now in **Maintenance Mode** until May 31st, 2024. This means that we will continue to include updates to ensure compatibility with backend services and security. No new features will be introduced in v1.

Please use the latest version (v2) of [Amplify Library for Swift](/swift/) to get started.
Please use the latest version (v2) of [Amplify Library for Swift](/[platform]/tools/libraries/) to get started.

If you are currently using v1, follow [these instructions](/swift/start/project-setup/) to upgrade to v2.
If you are currently using v1, follow [these instructions](/[platform]/start/project-setup/upgrade-guide/) to upgrade to v2.

**Amplify libraries should be used for all new cloud connected applications.** If you are currently using the AWS Mobile SDK for iOS, you can [access the documentation here](/[platform]/sdk/).

</Callout>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getCustomStaticPath } from '@/utils/getCustomStaticPath';
export const meta = {
title: 'Uninstalling the app',
description:
'Learn about the data that gets stored persistently on a device.',
'Understand how to handle persistent data on a device when a user uninstalls the app.',
platforms: ['swift', 'android']
};

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { getCustomStaticPath } from '@/utils/getCustomStaticPath';

export const meta = {
title: 'Data usage policy information',
description: "Review the data types gathered by the Amplify library that Apple requires you to disclose in your app's data usage policy when submitting the app to the App Store.",
platforms: ['swift']
};

export const getStaticPaths = async () => {
return getCustomStaticPath(meta.platforms);
};

export function getStaticProps(context) {
return {
props: {
platform: context.params.platform,
meta
}
};
}

import ios0 from '/src/fragments/lib/info/native_common/data-information/common.mdx';

<Fragments fragments={{ swift: ios0 }} />

import ios1 from '/src/fragments/lib/info/native_common/app-uninstall/common.mdx';

<Fragments fragments={{ swift: ios1 }} />
10 changes: 10 additions & 0 deletions src/pages/[platform]/build-a-backend/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,13 @@ export function getStaticProps(context) {
}

<Overview childPageNodes={props.childPageNodes} />

<InlineFilter filters={["swift"]}>

<Callout info>

Apple requires app developers to provide the data usage policy of the app when they submit their app to the App Store. You can review the different categories identified by Apple and the corresponding data type used by the Amplify library in the our **[Data usage policy information](/[platform]/build-a-backend/auth/data-usage-policy/)**.

</Callout>

</InlineFilter>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { getCustomStaticPath } from '@/utils/getCustomStaticPath';

export const meta = {
title: 'Uninstalling the app',
description:
'Understand how to handle persistent data on a device when a user uninstalls the app.',
platforms: ['swift', 'android'],
canonicalUrl: '/[platform]/build-a-backend/auth/app-uninstall'
};

export const getStaticPaths = async () => {
return getCustomStaticPath(meta.platforms);
};

export function getStaticProps(context) {
return {
props: {
platform: context.params.platform,
meta
}
};
}

import android0 from '/src/fragments/lib/info/native_common/app-uninstall/common.mdx';

<Fragments fragments={{ android: android0 }} />

import ios0 from '/src/fragments/lib/info/native_common/app-uninstall/common.mdx';

<Fragments fragments={{ swift: ios0 }} />
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { getCustomStaticPath } from '@/utils/getCustomStaticPath';

export const meta = {
title: 'Data usage policy information',
description: "Review the data types gathered by the Amplify library that Apple requires you to disclose in your app's data usage policy when submitting the app to the App Store.",
platforms: ['swift'],
canonicalUrl: '/[platform]/build-a-backend/auth/data-usage-policy'
};

export const getStaticPaths = async () => {
return getCustomStaticPath(meta.platforms);
};

export function getStaticProps(context) {
return {
props: {
platform: context.params.platform,
meta
}
};
}

import ios0 from '/src/fragments/lib/info/native_common/data-information/common.mdx';

<Fragments fragments={{ swift: ios0 }} />

import ios1 from '/src/fragments/lib/info/native_common/app-uninstall/common.mdx';

<Fragments fragments={{ swift: ios1 }} />
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { getCustomStaticPath } from '@/utils/getCustomStaticPath';

export const meta = {
title: 'Uninstalling the app',
description:
'Understand how to handle persistent data on a device when a user uninstalls the app.',
platforms: ['swift', 'android'],
canonicalUrl: '/[platform]/build-a-backend/auth/app-uninstall'
};

export const getStaticPaths = async () => {
return getCustomStaticPath(meta.platforms);
};

export function getStaticProps(context) {
return {
props: {
platform: context.params.platform,
meta
}
};
}

import android0 from '/src/fragments/lib/info/native_common/app-uninstall/common.mdx';

<Fragments fragments={{ android: android0 }} />

import ios0 from '/src/fragments/lib/info/native_common/app-uninstall/common.mdx';

<Fragments fragments={{ swift: ios0 }} />
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { getCustomStaticPath } from '@/utils/getCustomStaticPath';

export const meta = {
title: 'Data usage policy information',
description: 'Information regarding the data collected by the library',
platforms: ['swift']
description: "Review the data types gathered by the Amplify library that Apple requires you to disclose in your app's data usage policy when submitting the app to the App Store.",
platforms: ['swift'],
canonicalUrl: '/[platform]/build-a-backend/auth/data-usage-policy'
};

export const getStaticPaths = async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { getCustomStaticPath } from '@/utils/getCustomStaticPath';

export const meta = {
title: 'Data usage policy information',
description: "Review the data types gathered by the Amplify library that Apple requires you to disclose in your app's data usage policy when submitting the app to the App Store.",
platforms: ['swift'],
canonicalUrl: '/[platform]/build-a-backend/auth/data-usage-policy'
};

export const getStaticPaths = async () => {
return getCustomStaticPath(meta.platforms);
};

export function getStaticProps(context) {
return {
props: {
platform: context.params.platform,
meta
}
};
}

import ios0 from '/src/fragments/lib/info/native_common/data-information/common.mdx';

<Fragments fragments={{ swift: ios0 }} />

import ios1 from '/src/fragments/lib/info/native_common/app-uninstall/common.mdx';

<Fragments fragments={{ swift: ios1 }} />
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { getCustomStaticPath } from '@/utils/getCustomStaticPath';

export const meta = {
title: 'Data usage policy information',
description: "Review the data types gathered by the Amplify library that Apple requires you to disclose in your app's data usage policy when submitting the app to the App Store.",
platforms: ['swift'],
canonicalUrl: '/[platform]/build-a-backend/auth/data-usage-policy'
};

export const getStaticPaths = async () => {
return getCustomStaticPath(meta.platforms);
};

export function getStaticProps(context) {
return {
props: {
platform: context.params.platform,
meta
}
};
}

import ios0 from '/src/fragments/lib/info/native_common/data-information/common.mdx';

<Fragments fragments={{ swift: ios0 }} />

import ios1 from '/src/fragments/lib/info/native_common/app-uninstall/common.mdx';

<Fragments fragments={{ swift: ios1 }} />
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getCustomStaticPath } from '@/utils/getCustomStaticPath';
export const meta = {
title: 'Uninstalling the app',
description:
'Learn about the data that gets stored persistently on a device.',
'Understand how to handle persistent data on a device when a user uninstalls the app.',
platforms: ['swift']
};

Expand Down
Loading

0 comments on commit 18c75be

Please sign in to comment.