Skip to content

Commit

Permalink
Merge branch 'main' into 173-frontend-create-new-workout-functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Hen committed Apr 14, 2024
2 parents 07390eb + db8c1d0 commit 4dddd29
Show file tree
Hide file tree
Showing 117 changed files with 4,816 additions and 4,945 deletions.
44 changes: 30 additions & 14 deletions .github/workflows/cov.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Barbell Github Action
name: Barbell Github Action

on:
pull_request:
branches: ["*"]
branches: ['*']
push:
branches: ["main"]
branches: ['main']

jobs:
# > Jobs 1
Expand All @@ -16,44 +16,60 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8.x
version: 8.x

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'

- name: Install root dependencies
run: pnpm install --no-frozen-lockfile

- name: Install dependencies and setup Prisma

- name: Setup Prisma Schema
working-directory: .
run: |
cd packages/db && pnpm prisma generate && pnpm dotenv -e ../../.env prisma db push
working-directory: .

# - name: Run tests and collect coverage
# run: |
# pnpm run jest
# env:
# CI: true

- name: Run tests in expo
working-directory: .
env:
CI: true
run: |
cd apps/expo && pnpm run test
cd apps/expo && pnpm run jest
- name: Run tests in api
working-directory: .
env:
CI: true
run: |
cd packages/api && pnpm run vitest
- name: Upload coverage reports to Codecov
- name: Upload expo coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: UNLV-CS472-672/2024-S-GROUP3-Barbell
directory: ./apps/expo/coverage/
directory: ./apps/expo/jest-coverage/
fail_ci_if_error: true

# - name: Upload api coverage reports to Codecov
# uses: codecov/codecov-action@v4.0.1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# slug: UNLV-CS472-672/2024-S-GROUP3-Barbell
# directory: ./packages/api/vitest-coverage/
# fail_ci_if_error: true
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ Tasks are assigned to team members by their first name. For tasks with multiple
- [ ] [Ah yes, you can only for android OS on an Apple OS](https://github.com/expo/eas-cli/issues/1726)
- [ ] [Invarient Violation](https://github.com/JesperLekland/react-native-svg-charts/issues/201)
- [ ] [svg being funny](https://github.com/software-mansion/react-native-svg/issues/1405)
- [ ] [nativewind is really really really bad](https://github.com/marklawlor/nativewind/issues/556)
- [ ] [isn't this amazing SafeAreaView, Fk you](https://github.com/marklawlor/nativewind/issues/628)

In case you encountered, Failed to get localhost. Please point to your production server.

Expand All @@ -102,3 +104,13 @@ In case you encountered, Failed to get localhost. Please point to your productio
### Adding/changing the database schema

TBA

### EAS UPDATE BRANCHES

```
<!-- sync development build with [yap] -->
eas update --auto
<!-- build android aab (apk successor) -->
eas build --platform android
```
12 changes: 0 additions & 12 deletions app.json

This file was deleted.

19 changes: 8 additions & 11 deletions apps/expo/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ExpoConfig } from '@expo/config'
import type { ExpoConfig } from 'expo/config'

const defineConfig = (): ExpoConfig => ({
name: 'expo',
Expand All @@ -7,7 +7,7 @@ const defineConfig = (): ExpoConfig => ({
version: '0.1.0',
orientation: 'portrait',
icon: './assets/icon.png',
userInterfaceStyle: 'light',
userInterfaceStyle: 'automatic',
splash: {
image: './assets/icon.png',
resizeMode: 'contain',
Expand All @@ -30,19 +30,13 @@ const defineConfig = (): ExpoConfig => ({
},
jsEngine: 'hermes',
},
// extra: {
// eas: {
// projectId: "your-eas-project-id",
// },
// },
extra: {
// this is commented out so you don't have to log in to run expo start locally
// eas: {
// projectId: 'a5b98934-bf53-4573-ba91-972c22a6759a',
// },
clerkPublishableKey: process.env.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY,
expoPublicClerkPublishableKey:
process.env.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY,
expoPublicClerkPublishableKey: process.env.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY,
},
runtimeVersion: {
policy: 'appVersion',
Expand All @@ -54,8 +48,11 @@ const defineConfig = (): ExpoConfig => ({
// jsEngine: 'hermes',
plugins: [
/* don't touch this */
'expo-router',
'./expo-plugins/with-modify-gradle.js',
["expo-router", { "root": "./src/app/" }],
'expo-font',
'expo-secure-store',
// 'expo-router',
// './expo-plugins/with-modify-gradle.js',
],
})

Expand Down
Binary file removed apps/expo/assets/fonts/IstokWeb.ttf
Binary file not shown.
Binary file removed apps/expo/assets/fonts/Koulen.ttf
Binary file not shown.
Binary file removed apps/expo/assets/fonts/Sora.ttf
Binary file not shown.
30 changes: 30 additions & 0 deletions apps/expo/assets/svgs/arrow-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions apps/expo/assets/svgs/circle-arrow-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions apps/expo/assets/svgs/friends.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions apps/expo/assets/svgs/notification.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions apps/expo/assets/svgs/write.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 7 additions & 16 deletions apps/expo/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,15 @@ module.exports = (api) => {
api.cache(true)

return {
presets: [
'nativewind/babel',
['babel-preset-expo', { jsxImportSource: 'nativewind' }],
],
presets: [['babel-preset-expo', { jsxImportSource: 'nativewind' }], 'nativewind/babel'],
plugins: [
['module:react-native-dotenv'],
require.resolve('expo-router/babel'),
require.resolve('react-native-reanimated/plugin'),
/* 50 */
'react-native-reanimated/plugin',

/* aliases */
[
'module-resolver',
{
alias: {
'~assets': './assets',
},
},
],
/* 49 */
// ['module:react-native-dotenv'],
// require.resolve('expo-router/babel'),
// require.resolve('react-native-reanimated/plugin'),
],
}
}
84 changes: 41 additions & 43 deletions apps/expo/eas.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,46 @@
{
"cli": {
"version": ">= 5.8.0"
{
"cli": {
"version": ">= 4.1.2"
},
"build": {
"base": {
"node": "18.18.2",
"pnpm": "8.15.4",
"ios": {
"resourceClass": "m-medium"
}
},
"build": {
"base": {
"node": "18.16.1",
"ios": {
"resourceClass": "m-medium"
}
},
"development": {
"extends": "base",
"developmentClient": true,
"distribution": "internal",
"releaseChannel": "default",
"android": {
"buildType": "apk"
}
},
"preview": {
"extends": "base",
"distribution": "internal",
"releaseChannel": "preview",
"android": {
"buildType": "apk"
}
},
"production": {
"extends": "base"
},
"devclient": {
"extends": "base",
"releaseChannel": "default",
"distribution": "internal",
"developmentClient": true,
"android": {
"buildType": "apk"
},
"ios": {
"simulator": true
}
"development": {
"extends": "base",
"developmentClient": true,
"distribution": "internal",
"releaseChannel": "default"
},
"preview": {
"extends": "base",
"distribution": "internal",
"ios": {
"simulator": true
}
},
"submit": {
"production": {}
"production": {
"extends": "base",
"releaseChannel": "default"
},
"devclient": {
"extends": "base",
"releaseChannel": "default",
"distribution": "internal",
"developmentClient": true,
"android": {
"buildType": "apk"
},
"ios": {
"simulator": true
}
}
},
"submit": {
"production": {}
}
}
Loading

0 comments on commit 4dddd29

Please sign in to comment.