diff --git a/frontend-mobile/.gitignore b/frontend-mobile/.gitignore index d914c32..f0cb0a7 100644 --- a/frontend-mobile/.gitignore +++ b/frontend-mobile/.gitignore @@ -1,22 +1,17 @@ -# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files - -# dependencies -node_modules/ - # Expo .expo/ dist/ web-build/ -expo-env.d.ts # Native -.kotlin/ -*.orig.* +ios/ +android/ *.jks *.p8 *.p12 *.key *.mobileprovision +*.orig.* # Metro .metro-health-check* @@ -26,16 +21,22 @@ npm-debug.* yarn-debug.* yarn-error.* -# macOS +# env files +.env +.env.local +.env.production + +# EAS +eas-cli.json + +# Dependencies +node_modules/ + +# OS .DS_Store -*.pem +Thumbs.db -# local env files -.env*.local - -# typescript -*.tsbuildinfo - -# generated native folders -/ios -/android +# Build artifacts +*.apk +*.aab +*.ipa diff --git a/frontend-mobile/eas.json b/frontend-mobile/eas.json new file mode 100644 index 0000000..b68a6a6 --- /dev/null +++ b/frontend-mobile/eas.json @@ -0,0 +1,27 @@ +{ + "cli": { + "version": ">= 12.0.0" + }, + "build": { + "development": { + "developmentClient": true, + "distribution": "internal" + }, + "preview": { + "distribution": "internal" + }, + "production": {} + }, + "submit": { + "production": { + "ios": { + "appleId": "", + "ascAppId": "", + "appleTeamId": "" + }, + "android": { + "serviceAccountKeyPath": "./google-service-account.json" + } + } + } +} diff --git a/package.json b/package.json index 22ec9c2..74f2109 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,17 @@ "dev": "npm-run-all --parallel dev:backend dev:frontend", "dev:backend": "npm run dev --prefix backend", "dev:frontend": "npm run dev --prefix frontend", + "dev:mobile": "cd frontend-mobile && npx expo start", + "dev:mobile:android": "cd frontend-mobile && npx expo start --android", + "dev:mobile:ios": "cd frontend-mobile && npx expo start --ios", "start": "npm-run-all --parallel start:backend start:frontend", "start:backend": "npm start --prefix backend", "start:frontend": "npm run preview --prefix frontend", - "install:all": "npm install && npm install --prefix backend && npm install --prefix frontend", + "install:all": "npm install && npm install --prefix backend && npm install --prefix frontend && npm install --prefix frontend-mobile", "build:web": "npm run build --prefix frontend", + "build:mobile": "cd frontend-mobile && eas build", + "submit:android": "cd frontend-mobile && eas submit --platform android", + "submit:ios": "cd frontend-mobile && eas submit --platform ios", "cap:sync": "npm run build:web && cap sync", "cap:copy": "npm run build:web && cap copy", "cap:open:android": "cap open android",