Skip to content

Commit

Permalink
update outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay2113 committed May 2, 2024
1 parent 6d57dee commit 5013408
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ npx ampx generate outputs --app-id <your-amplify-app-id> --branch <your-git-bran
</Callout>

```bash title="Terminal" showLineNumbers={false}
npx ampx generate outputs --app-id <your-amplify-app-id> --branch <your-git-branch-name> --format json-mobile --out-dir app/src/main/res/raw
npx ampx generate outputs --app-id <your-amplify-app-id> --branch <your-git-branch-name> --out-dir app/src/main/res/raw
```
</InlineFilter>
<InlineFilter filters={['flutter']}>
Expand All @@ -101,7 +101,7 @@ npx ampx generate outputs --app-id <your-amplify-app-id> --branch <your-git-bran
</InlineFilter>
<InlineFilter filters={['swift']}>
```bash title="Terminal" showLineNumbers={false}
npx ampx generate outputs --app-id <your-amplify-app-id> --branch <your-git-branch-name> --format=json-mobile
npx ampx generate outputs --app-id <your-amplify-app-id> --branch <your-git-branch-name>
```

Once the sandbox environment is running, you would also generate the configuration file for your application. However, Xcode won't recognize the file by default. To recognize the files, you need to drag and drop the generated configuration file to your project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ npx ampx generate outputs --branch main --app-id BACKEND-APP-ID

<InlineFilter filters={['flutter']}>
```bash title="Terminal" showLineNumbers={false}
npx ampx generate outputs --app-id BACKEND-APP-ID --branch main --format dart --out-dir lib
npx ampx generate outputs --app-id <your-backend-amplify-app-id> --branch main --format dart --out-dir lib
```
</InlineFilter>

Expand All @@ -95,13 +95,13 @@ npx ampx generate outputs --app-id BACKEND-APP-ID --branch main --format dart --
</Callout>

```bash title="Terminal" showLineNumbers={false}
npx ampx generate outputs --app-id BACKEND-APP-ID --branch main --format json-mobile --out-dir app/src/main/res/raw
npx ampx generate outputs --app-id <your-backend-amplify-app-id> --branch main --out-dir app/src/main/res/raw
```
</InlineFilter>

<InlineFilter filters={['swift']}>
```bash title="Terminal" showLineNumbers={false}
npx ampx generate outputs --app-id BACKEND-APP-ID --format json-mobile
npx ampx generate outputs --app-id <your-backend-amplify-app-id> --branch main
```

Once the sandbox environment is running, you would also generate the configuration files for your application. However, Xcode won't be able to recognize them. For recognizing the files, you need to drag and drop the generated files to your project.
Expand Down

0 comments on commit 5013408

Please sign in to comment.