Skip to content

Commit 208c699

Browse files
committed
Rename
1 parent c8eee70 commit 208c699

23 files changed

Lines changed: 37 additions & 21 deletions

File tree

packages/mobile/examples/authenticated-writes/app.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/mobile/examples/authenticated-writes/server/.env.example

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/mobile/examples/authenticated-writes/.env.example renamed to packages/mobile/examples/update-profile/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Same API key as server — so OAuth connects the user to your developer app
22
EXPO_PUBLIC_AUDIUS_API_KEY=
33

4-
# URL of the authenticated-writes server (run server first).
4+
# URL of the update-profile server (run server first).
55
# iOS simulator: http://localhost:3001
66
# Android emulator: http://10.0.2.2:3001
77
# Physical device (phone): use your computer's LAN IP, e.g. http://192.168.4.107:3001
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
> Why do I have a folder named ".expo" in my project?
2+
3+
The ".expo" folder is created when an Expo project is started using "expo start" command.
4+
5+
> What do the files contain?
6+
7+
- "devices.json": contains information about devices that have recently opened this project. This is used to populate the "Development sessions" list in your development builds.
8+
- "settings.json": contains the server configuration that is used to serve the application manifest.
9+
10+
> Should I commit the ".expo" folder?
11+
12+
No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine.
13+
Upon project creation, the ".expo" folder is already added to your ".gitignore" file.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"devices": []
3+
}
File renamed without changes.

packages/mobile/examples/authenticated-writes/App.tsx renamed to packages/mobile/examples/update-profile/App.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function App() {
3939

4040
const handleRedirect = useCallback(
4141
async (url: string) => {
42-
if (!url.startsWith(REDIRECT_URI) && !url.startsWith('audiuswrites://oauth/callback')) return
42+
if (!url.startsWith(REDIRECT_URI) && !url.startsWith('updateprofile://oauth/callback')) return
4343
setScreen('home')
4444
setLoading(true)
4545
setError(null)
@@ -144,7 +144,7 @@ export default function App() {
144144
state,
145145
responseMode: 'query',
146146
display: 'fullScreen',
147-
...(config.apiKey ? { apiKey: config.apiKey } : { appName: 'AudiusWritesExample' })
147+
...(config.apiKey ? { apiKey: config.apiKey } : { appName: 'UpdateProfileExample' })
148148
})
149149
return (
150150
<View style={styles.container}>
@@ -155,7 +155,7 @@ export default function App() {
155155
source={{ uri: oauthUrl }}
156156
style={styles.webview}
157157
onShouldStartLoadWithRequest={(req) => {
158-
if (req.url.startsWith(REDIRECT_URI) || req.url.startsWith('audiuswrites://oauth/callback')) {
158+
if (req.url.startsWith(REDIRECT_URI) || req.url.startsWith('updateprofile://oauth/callback')) {
159159
handleRedirect(req.url)
160160
return false
161161
}
@@ -224,7 +224,7 @@ export default function App() {
224224
return (
225225
<View style={styles.container}>
226226
<View style={styles.card}>
227-
<Text style={styles.title}>Authenticated writes</Text>
227+
<Text style={styles.title}>Update profile</Text>
228228
<Text style={styles.required}>
229229
Requires your server. Create a .env with:
230230
</Text>
@@ -242,7 +242,7 @@ export default function App() {
242242
return (
243243
<View style={styles.container}>
244244
<View style={styles.center}>
245-
<Text style={styles.title}>Authenticated writes</Text>
245+
<Text style={styles.title}>Update profile</Text>
246246
<Text style={styles.subtitle}>
247247
Sign in with Audius (write scope) to authorize the app, then update your description.
248248
</Text>

packages/mobile/examples/authenticated-writes/README.md renamed to packages/mobile/examples/update-profile/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Authenticated writes example
1+
# Update profile example
22

33
Demonstrates **server-side writes** using your developer app's bearer token. The bearer lives on the server (same token for all writes). Users sign in via OAuth so the client knows their `userId`; they send `{ userId, description }`; your server uses the developer app bearer to perform the write.
44

@@ -16,7 +16,7 @@ From the **apps repo root**:
1616
```bash
1717
npm install
1818
npm run build -w @audius/sdk
19-
cd packages/mobile/examples/authenticated-writes/server
19+
cd packages/mobile/examples/update-profile/server
2020
cp .env.example .env
2121
# Edit .env: AUDIUS_API_KEY, AUDIUS_BEARER_TOKEN (from audius.co/settings)
2222
npm install
@@ -32,7 +32,7 @@ Server runs at `http://localhost:3001`:
3232
In another terminal:
3333

3434
```bash
35-
cd packages/mobile/examples/authenticated-writes
35+
cd packages/mobile/examples/update-profile
3636
cp .env.example .env
3737
# Edit .env: EXPO_PUBLIC_AUDIUS_API_KEY (same as server), EXPO_PUBLIC_WRITE_SERVER_URL=http://localhost:3001
3838
npm install
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"expo":{"name":"Audius Update Profile","slug":"audius-update-profile","version":"1.0.0","orientation":"portrait","userInterfaceStyle":"light","scheme":"updateprofile","newArchEnabled":true,"ios":{"supportsTablet":true},"android":{"adaptiveIcon":{"backgroundColor":"#ffffff"}}}}

packages/mobile/examples/authenticated-writes/babel.config.js renamed to packages/mobile/examples/update-profile/babel.config.js

File renamed without changes.

0 commit comments

Comments
 (0)