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

updates to remove additional mentions of XR in critical flows #5119

Merged
merged 2 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ describe('FeaturesGrid', () => {
'REST API',
'Analytics',
'Push Notifications',
'XR',
'PubSub',
'Interactions',
'AI / ML Predictions'
Expand Down
10 changes: 0 additions & 10 deletions src/components/FeaturesGrid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,6 @@ export default function FeaturesGrid() {
</p>
</CardDetail>
</Card>
<Card href="/lib/xr/getting-started" className="border-radius">
<CardGraphic alt="XR icon" src="/assets/features/xr.svg" />
<CardDetail>
<h4>XR</h4>
<p>
Engage your customers in a different dimension with augmented
reality (AR) and virtual reality (VR) content within your app
</p>
</CardDetail>
</Card>
<Card href="/lib/pubsub/getting-started" className="border-radius">
<CardGraphic alt="PubSub icon" src="/assets/features/pubsub.svg" />
<CardDetail>
Expand Down
18 changes: 0 additions & 18 deletions src/fragments/lib/client-configuration/js/js-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -386,21 +386,3 @@ Amplify.configure({
}
});
```

## XR

### Top level configuration

```js
Amplify.configure({
XR: {
region: 'us-west-2', // Sumerian region
scenes: {
scene1: {
// Friendly scene name
sceneConfig: scene1Config // Scene configuration from Sumerian
}
}
}
});
```
1 change: 0 additions & 1 deletion src/fragments/lib/js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ What's next? Here are some things you can add to your app:
- [Analytics](/lib/analytics/getting-started)
- [AI/ML](/lib/predictions/getting-started)
- [PubSub](/lib/pubsub/getting-started)
- [AR/VR](/lib/xr/getting-started)
1 change: 0 additions & 1 deletion src/fragments/lib/utilities/js/hub.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ A channel is a logical group name that you use to organize messages and listen o
* interactions
* pubsub
* storage
* xr
* datastore

### Listening for messages
Expand Down
3 changes: 1 addition & 2 deletions src/fragments/start/getting-started/angular/nextsteps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
- [Analytics](/lib/analytics/getting-started)
- [AI/ML](/lib/predictions/getting-started)
- [Push Notification](/lib/push-notifications/getting-started)
- [PubSub](/lib/pubsub/getting-started)
- [AR/VR](/lib/xr/getting-started)
- [PubSub](/lib/pubsub/getting-started)
3 changes: 1 addition & 2 deletions src/fragments/start/getting-started/react/nextsteps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
- [Analytics](/lib/analytics/getting-started)
- [AI/ML](/lib/predictions/getting-started)
- [Push Notification](/lib/push-notifications/getting-started)
- [PubSub](/lib/pubsub/getting-started)
- [AR/VR](/lib/xr/getting-started)
- [PubSub](/lib/pubsub/getting-started)
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
- [AI/ML](/lib/predictions/getting-started)
- [Push Notification](/lib/push-notifications/getting-started)
- [PubSub](/lib/pubsub/getting-started)
- [AR/VR](/lib/xr/getting-started)
46 changes: 0 additions & 46 deletions src/fragments/ui-legacy/auth/react/tutorial.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -443,52 +443,6 @@ Save the file and run `amplify publish`. After the API is deployed along with th

In your project directory, open `./amplify/backend/function` and you'll see the Lambda function that you created. The `app.js` file runs the Express function and all of the HTTP method routes are available for you to manipulate. For example, the `API.post()` in your React app corresponded to the `app.post(path, function(req, res){...})` code in this Lambda function. If you choose to customize the Lambda function, you can update it in the cloud using `amplify push`.

## Adding XR Sumerian Scene

To load Amazon Sumerian scenes you will need to activate the [Amplify Auth category](/lib/auth/getting-started.md?platform=js).

```bash
amplify add auth
```

The `./src/aws-exports.js` file that's created has all of the appropriate cloud resources defined for your application. Edit `./src/App.js` to include the Amplify library and configurations. Then, initialize the library as follows:

```javascript
import { Amplify } from 'aws-amplify';
import awsconfig from './aws-exports';
import { SumerianScene } from 'aws-amplify-react';
import scene1Config from './sumerian_exports_<sceneId>'; // This file will be generated by the Sumerian AWS Console

Amplify.configure({
...awsconfig,
XR: {
region: 'us-east-1', // Sumerian region
scenes: {
scene1: {
// Friendly scene name
sceneConfig: scene1Config // Scene configuration from Sumerian publish
}
}
}
});
```

Update the `render()` method to include the Sumerian Scene component:

{% include_relative common/scene-size-note.md %}

```javascript
render() {
return (
<div className="App">
// sceneName: the configured friendly scene you would like to load
<SumerianScene sceneName="scene1" />
</div>
);
}
```

See the [XR documentation](/lib/xr/getting-started.md?platform=js) for information on creating and publishing a Sumerian scene.

## Testing Serverless Functions

Expand Down
1 change: 0 additions & 1 deletion src/pages/cli/plugins/plugins.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Plugins are explicitly managed in the Amplify CLI pluggable platform. Plugins en
- amplify-category-notifications
- amplify-category-predictions
- amplify-category-storage
- amplify-category-xr
- amplify-codegen
- amplify-frontend-javascript
- amplify-frontend-android
Expand Down