Skip to content

Commit 1e500ed

Browse files
authored
Merge pull request #71 from Resgrid/develop
CU-868cu9311 Build changes
2 parents 35c613d + 8d05b2b commit 1e500ed

File tree

13 files changed

+1292
-484
lines changed

13 files changed

+1292
-484
lines changed

.github/workflows/react-native-cicd.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ on:
1919
- prod-apk
2020
- prod-aab
2121
- ios-dev
22+
- ios-adhoc
2223
- ios-prod
2324
- all
2425
platform:
@@ -180,6 +181,14 @@ jobs:
180181
env:
181182
NODE_ENV: development
182183

184+
- name: 📱 Build iOS Ad-Hoc
185+
if: (github.event.inputs.buildType == 'all' || github.event.inputs.buildType == 'ios-adhoc') && (matrix.platform == 'ios' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'ios')
186+
run: |
187+
export NODE_OPTIONS="--openssl-legacy-provider --max_old_space_size=4096"
188+
eas build --platform ios --profile internal --local --non-interactive --output=./app-ios-adhoc.app
189+
env:
190+
NODE_ENV: production
191+
183192
- name: 📱 Build iOS Production
184193
if: (github.event.inputs.buildType == 'all' || github.event.inputs.buildType == 'ios-prod') && (matrix.platform == 'ios' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'ios')
185194
run: |

eas.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44
},
55
"build": {
66
"production": {
7+
"distribution": "store",
8+
"pnpm": "9.12.3",
9+
"ios": {
10+
"image": "latest"
11+
},
12+
"android": {
13+
"image": "latest"
14+
},
15+
"env": {
16+
"EXPO_NO_DOTENV": "1",
17+
"APP_ENV": "production",
18+
"FLIPPER_DISABLE": "1"
19+
}
20+
},
21+
"production-apk": {
722
"distribution": "store",
823
"pnpm": "9.12.3",
924
"ios": {

jest.config.js

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,35 @@ module.exports = {
22
preset: 'jest-expo',
33
setupFilesAfterEnv: ['<rootDir>/jest-setup.ts'],
44
testMatch: ['**/?(*.)+(spec|test).ts?(x)'],
5-
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/coverage/**', '!**/node_modules/**', '!**/babel.config.js', '!**/jest.setup.js', '!**/docs/**', '!**/cli/**'],
5+
collectCoverage: true,
6+
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/coverage/**', '!**/node_modules/**', '!**/babel.config.js', '!**/jest.setup.js', '!**/docs/**', '!**/cli/**', '!**/ios/**', '!**/android/**'],
67
moduleFileExtensions: ['js', 'ts', 'tsx'],
78
moduleDirectories: ['node_modules', '<rootDir>/'],
89
transformIgnorePatterns: [
9-
`node_modules/(?!(?:.pnpm/)?((jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|@sentry/.*|native-base|react-native-svg|@gluestack-ui/.*|lucide-react-native|@tanstack/.*|moti|nativewind|tailwind-variants|@react-native-aria/.*))`,
10+
'node_modules/(?:\.pnpm|\.store)',
11+
'node_modules/(?!jest-react-native)',
12+
'node_modules/(?!react-native)',
13+
'node_modules/(?!@react-native)',
14+
'node_modules/(?!@react-native-community)',
15+
'node_modules/(?!expo)',
16+
'node_modules/(?!exponent)',
17+
'node_modules/(?!@expo)',
18+
'node_modules/(?!@exponent)',
19+
'node_modules/(?!@expo-google-fonts)',
20+
'node_modules/(?!react-navigation)',
21+
'node_modules/(?!@react-navigation)',
22+
'node_modules/(?!@unimodules)',
23+
'node_modules/(?!unimodules)',
24+
'node_modules/(?!@sentry)',
25+
'node_modules/(?!native-base)',
26+
'node_modules/(?!react-native-svg)',
27+
'node_modules/(?!lucide-react-native)',
28+
'node_modules/(?!@tanstack)',
29+
'node_modules/(?!moti)',
30+
'node_modules/(?!nativewind)',
31+
'node_modules/(?!tailwind-variants)',
32+
'node_modules/(?!@react-native-aria)',
33+
'node_modules/(?!@gluestack-ui)',
1034
],
1135
coverageReporters: ['json-summary', ['text', { file: 'coverage.txt' }]],
1236
reporters: [

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"type-check": "tsc --noemit",
3535
"lint:translations": "eslint ./src/translations/ --fix --ext .json ",
3636
"test": "jest",
37-
"check-all": "pnpm run lint && pnpm run type-check && pnpm run lint:translations && pnpm run test",
37+
"check-all": "pnpm run lint && pnpm run type-check && pnpm run lint:translations",
3838
"test:ci": "pnpm run test --coverage",
3939
"test:watch": "pnpm run test --watch",
4040
"install-maestro": "curl -Ls 'https://get.maestro.mobile.dev' | bash",
@@ -110,6 +110,7 @@
110110
"expo-status-bar": "~2.0.0",
111111
"expo-system-ui": "~4.0.9",
112112
"expo-task-manager": "^12.0.6",
113+
"geojson": "^0.5.0",
113114
"i18next": "^23.14.0",
114115
"lodash.memoize": "^4.1.2",
115116
"lucide-react-native": "^0.475.0",
@@ -150,15 +151,16 @@
150151
"@dev-plugins/react-query": "^0.2.0",
151152
"@expo/config": "~10.0.3",
152153
"@testing-library/jest-dom": "^6.5.0",
153-
"@testing-library/react-native": "^12.7.2",
154+
"@testing-library/react-native": "^12.9.0",
154155
"@types/geojson": "^7946.0.16",
155156
"@types/i18n-js": "^3.8.9",
156-
"@types/jest": "^29.5.12",
157+
"@types/jest": "^29.5.14",
157158
"@types/lodash.memoize": "^4.1.9",
158159
"@types/react": "~18.3.12",
159160
"@types/react-native-base64": "^0.2.2",
160161
"@typescript-eslint/eslint-plugin": "^5.62.0",
161162
"@typescript-eslint/parser": "^5.62.0",
163+
"babel-jest": "^30.0.0",
162164
"babel-plugin-module-resolver": "^5.0.2",
163165
"cross-env": "^7.0.3",
164166
"dotenv": "^16.4.5",

0 commit comments

Comments
 (0)