From 5458b091f76864169c10cc489f73804efa2e321f Mon Sep 17 00:00:00 2001 From: Bennett Schoonerman Date: Thu, 6 Feb 2025 15:37:20 -0500 Subject: [PATCH 1/7] init pr preview workflow --- .eas/workflows/development-build.yml | 18 +++++++++++++ .github/workflows/preview.yml | 40 ++++++++++++++++++++++++++++ app.json | 9 +++++-- eas.json | 27 +++++++++++++++++++ package.json | 3 ++- 5 files changed, 94 insertions(+), 3 deletions(-) create mode 100644 .eas/workflows/development-build.yml create mode 100644 .github/workflows/preview.yml create mode 100644 eas.json diff --git a/.eas/workflows/development-build.yml b/.eas/workflows/development-build.yml new file mode 100644 index 0000000..3b05724 --- /dev/null +++ b/.eas/workflows/development-build.yml @@ -0,0 +1,18 @@ +name: Development Build + +jobs: + android_development_build: + type: build + params: + platform: android + profile: development + ios_device_development_build: + type: build + params: + platform: ios + profile: development + ios_simulator_development_build: + type: build + params: + platform: ios + profile: development-simulator diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 0000000..1928ee6 --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,40 @@ +name: preview +on: pull_request + +jobs: + update: + name: EAS Update + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - name: Check for EXPO_TOKEN + run: | + if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then + echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions" + exit 1 + fi + + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 22.x + cache: npm + + - name: Setup EAS + uses: expo/expo-github-action@v8 + with: + eas-version: latest + token: ${{ secrets.EXPO_TOKEN }} + + - name: Install dependencies + run: npm install + + - name: Create preview + uses: expo/expo-github-action/preview@v8 + with: + command: eas update --auto diff --git a/app.json b/app.json index b5d007f..3342a8a 100644 --- a/app.json +++ b/app.json @@ -9,13 +9,18 @@ "userInterfaceStyle": "automatic", "newArchEnabled": true, "ios": { - "supportsTablet": true + "supportsTablet": true, + "bundleIdentifier": "com.builtbybennett.nameflame", + "infoPlist": { + "ITSAppUsesNonExemptEncryption": false + } }, "android": { "adaptiveIcon": { "foregroundImage": "./assets/images/adaptive-icon.png", "backgroundColor": "#ffffff" - } + }, + "package": "com.builtbybennett.nameflame" }, "web": { "bundler": "metro", diff --git a/eas.json b/eas.json new file mode 100644 index 0000000..c05438e --- /dev/null +++ b/eas.json @@ -0,0 +1,27 @@ +{ + "cli": { + "version": ">= 15.0.5", + "appVersionSource": "remote" + }, + "build": { + "development": { + "developmentClient": true, + "distribution": "internal" + }, + "preview": { + "distribution": "internal" + }, + "production": { + "autoIncrement": true, + "android": { + "image": "latest" + }, + "ios": { + "image": "latest" + } + } + }, + "submit": { + "production": {} + } +} diff --git a/package.json b/package.json index bd7651c..4203c25 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "ios": "expo start --ios", "web": "expo start --web", "test": "jest --watchAll", - "lint": "expo lint" + "lint": "expo lint", + "deploy:web": "npx expo export --platform web && eas deploy" }, "jest": { "preset": "jest-expo" From cbcf821d85c7c90908a48e2b503c24cc50cb771e Mon Sep 17 00:00:00 2001 From: Bennett Schoonerman Date: Thu, 6 Feb 2025 15:52:53 -0500 Subject: [PATCH 2/7] add deploy for main config --- .eas/workflows/deploy.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .eas/workflows/deploy.yml diff --git a/.eas/workflows/deploy.yml b/.eas/workflows/deploy.yml new file mode 100644 index 0000000..dbbc0e8 --- /dev/null +++ b/.eas/workflows/deploy.yml @@ -0,0 +1,13 @@ +name: Deploy + +on: + push: + branches: ['main'] + +jobs: + deploy: + type: deploy + name: Deploy + environment: production + params: + prod: true \ No newline at end of file From dc9367053733a16de62d8b739744f47fa8e9df92 Mon Sep 17 00:00:00 2001 From: Bennett Schoonerman Date: Thu, 6 Feb 2025 20:38:23 -0500 Subject: [PATCH 3/7] style up auth pages and add font --- app.json | 6 + app/sign-in.tsx | 72 +- app/sign-up.tsx | 58 +- assets/fonts/BricolageGrotesque-Variable.ttf | Bin 0 -> 407844 bytes components/ThemedText.tsx | 1 + components/ThemedView.tsx | 5 +- constants/Colors.ts | 34 +- package-lock.json | 1758 ++++++++++-------- package.json | 10 +- 9 files changed, 1154 insertions(+), 790 deletions(-) create mode 100644 assets/fonts/BricolageGrotesque-Variable.ttf diff --git a/app.json b/app.json index 3342a8a..f55cc44 100644 --- a/app.json +++ b/app.json @@ -37,6 +37,12 @@ "resizeMode": "contain", "backgroundColor": "#ffffff" } + ], + [ + "expo-font", + { + "fonts": ["./assets/fonts/BricolageGrotesque-Variable.ttf"] + } ] ], "experiments": { diff --git a/app/sign-in.tsx b/app/sign-in.tsx index 90a38a6..1ec00cc 100644 --- a/app/sign-in.tsx +++ b/app/sign-in.tsx @@ -1,8 +1,11 @@ import { useState } from "react"; import { router } from 'expo-router'; -import { Text, Button, TextInput, View } from 'react-native'; +import { TextInput, StyleSheet, View, Text, TouchableOpacity } from 'react-native'; +import { ThemedView } from "@/components/ThemedView"; +import { ThemedText } from "@/components/ThemedText"; import { useToken } from '../contexts/authCtx'; +import { Colors } from "@/constants/Colors"; export default function SignIn() { const { signIn } = useToken(); @@ -18,20 +21,57 @@ export default function SignIn() { } return ( - - Sign In - - -