diff --git a/README.md b/README.md index 5fc721b..6ece0f5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# P61 - Projet +# Habits Tracker - P61 Projet ## À propos @@ -69,24 +69,24 @@ npm run start Ce n'est pas strictement nécessaire pour le développement de l'application (même si recommandé), de lancer [Supabase](https://supabase.io/) en local, car l'application est déjà déployée sur un serveur [Supabase](https://supabase.io/) en production (`.env.example` est pré-configuré avec cet environnement). ```sh -npm run supabase start +npm run supabase-cli start ``` #### Principales Commandes Supabase ```sh # Pour réinitialiser la base de données avec les données de test (seed.sql) -npm run supabase db reset +npm run supabase-cli db reset # Pour synchroniser le modèle (local) avec la base de données (remote) -npm run supabase db pull +npm run supabase-cli db pull # Pour synchroniser la base de données (remote) avec le modèle (local) -npm run supabase db push +npm run supabase-cli db push # Pour générer les types TypeScript -npm run supabase gen types typescript -- --local > ./infrastructure/supabase/supabase-types.ts +npm run supabase-cli gen types typescript -- --local > ./infrastructure/supabase/supabase-types.ts # Crée un nouveau script de migration à partir des modifications déjà appliquées à votre base de données locale (remplacer `` avec le nom de la migration) -npm run supabase db diff -- -f +npm run supabase-cli db diff -- -f ``` diff --git a/app.json b/app.json index a1c67b0..94cd5c1 100644 --- a/app.json +++ b/app.json @@ -1,26 +1,29 @@ { "expo": { - "name": "p61-project", + "name": "Habits Tracker", "slug": "p61-project", - "version": "1.0.0", + "version": "1.0.0-staging.3", "orientation": "portrait", "icon": "./presentation/assets/images/icon.png", "scheme": "p61-project", "userInterfaceStyle": "automatic", "splash": { - "image": "./presentation/assets/images/splashscreen.jpg", + "image": "./presentation/assets/images/splashscreen.png", "resizeMode": "cover", "backgroundColor": "#74b6cb" }, "assetBundlePatterns": ["**/*"], "ios": { - "supportsTablet": true + "supportsTablet": true, + "buildNumber": "1.0.0" }, "android": { "adaptiveIcon": { "foregroundImage": "./presentation/assets/images/adaptive-icon.png", "backgroundColor": "#ffffff" - } + }, + "package": "com.theoludwig.p61project", + "versionCode": 1 }, "web": { "bundler": "metro", @@ -30,6 +33,14 @@ "plugins": ["expo-router"], "experiments": { "typedRoutes": true + }, + "extra": { + "router": { + "origin": false + }, + "eas": { + "projectId": "5c0a922a-564b-4d62-8231-ce5aef7ff978" + } } } } diff --git a/eas.json b/eas.json new file mode 100644 index 0000000..6f91d89 --- /dev/null +++ b/eas.json @@ -0,0 +1,15 @@ +{ + "build": { + "development": { + "developmentClient": true, + "distribution": "internal" + }, + "staging": { + "distribution": "internal", + "android": { + "buildType": "apk" + } + }, + "production": {} + } +} diff --git a/package.json b/package.json index 5d7a23e..0bd7107 100644 --- a/package.json +++ b/package.json @@ -9,13 +9,14 @@ "ios": "expo start --ios", "web": "expo start --web", "expo:typed-routes": "expo customize tsconfig.json", + "build-staging:android": "eas build --platform=android --profile=staging", "lint:commit": "commitlint", "lint:prettier": "prettier . --check", "lint:eslint": "eslint . --max-warnings 0 --report-unused-disable-directives --ignore-path .gitignore", "lint:typescript": "tsc --noEmit", "lint:staged": "lint-staged", "test": "jest --reporters=default --reporters=jest-junit", - "supabase": "supabase --workdir \"./infrastructure\"", + "supabase-cli": "supabase --workdir \"./infrastructure\"", "postinstall": "husky" }, "dependencies": { diff --git a/presentation/assets/images/splashscreen.jpg b/presentation/assets/images/splashscreen.jpg deleted file mode 100755 index ef3a770..0000000 Binary files a/presentation/assets/images/splashscreen.jpg and /dev/null differ diff --git a/presentation/assets/images/splashscreen.png b/presentation/assets/images/splashscreen.png new file mode 100644 index 0000000..03be6a3 Binary files /dev/null and b/presentation/assets/images/splashscreen.png differ