diff --git a/app.json b/app.json index 643eb2b..c4e2199 100644 --- a/app.json +++ b/app.json @@ -40,6 +40,12 @@ ], "experiments": { "typedRoutes": true + }, + "extra": { + "router": {}, + "eas": { + "projectId": "cfe34fb8-da8c-4004-b5c6-29d07df75cf2" + } } } } diff --git a/bun.lockb b/bun.lockb index 61cbf84..e93878d 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/eas.json b/eas.json new file mode 100644 index 0000000..145f1bf --- /dev/null +++ b/eas.json @@ -0,0 +1,21 @@ +{ + "cli": { + "version": ">= 16.10.0", + "appVersionSource": "remote" + }, + "build": { + "development": { + "developmentClient": true, + "distribution": "internal" + }, + "preview": { + "distribution": "internal" + }, + "production": { + "autoIncrement": true + } + }, + "submit": { + "production": {} + } +} diff --git a/lib/api.ts b/lib/api.ts index 5257d26..1290c73 100644 --- a/lib/api.ts +++ b/lib/api.ts @@ -21,6 +21,15 @@ export const apiGetProfile = async ({ id }: { id: string }) => { return response.data; }; +export const apiEditProfile = async (data: FormData) => { + const response = await api.put(`/mobile/user/profile`, data, { + headers: { + 'Content-Type': 'multipart/form-data', + }, + }) + return response.data; +}; + export const apiGetSearch = async ({ text, user }: { text: string, user: string }) => { const response = await api.get(`mobile/home/search?search=${text}&user=${user}`); return response.data; diff --git a/package.json b/package.json index 13a07ed..4f7d372 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,6 @@ "expo-linear-gradient": "~14.1.4", "expo-linking": "~7.1.5", "expo-media-library": "~17.1.6", - "expo-permissions": "^14.4.0", "expo-router": "~5.0.7", "expo-sharing": "^13.1.5", "expo-splash-screen": "~0.30.8",