Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Expo Doctor check to CI #23

Merged
merged 6 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,15 @@ jobs:
run: npm install
- name: Eslint
run: npm run lint:check
Expo-Doctor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install
run: npm install
- name: Expo-Doctor
run: npm run doctor
11 changes: 6 additions & 5 deletions src/App.tsx → App.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import 'react-native-gesture-handler';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import {QueryClient, QueryClientProvider} from '@tanstack/react-query';
import React from 'react';
import {enableScreens} from 'react-native-screens';

import {WithSplashScreen} from './components/splash';
import Authenticated from './screens/Authenticated';
import HomeScreen from './screens/HomeScreen';
import ProfileScreen from './screens/ProfileScreen';
import {WithSplashScreen} from './src/components/splash';
import Authenticated from './src/screens/Authenticated';
import HomeScreen from './src/screens/HomeScreen';
import ProfileScreen from './src/screens/ProfileScreen';
import 'react-native-url-polyfill/auto';
import {initializeFirebase} from './firebase/localGetAuth';
import {initializeFirebase} from './src/firebase/localGetAuth';

initializeFirebase();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'react-native';
import {it} from '@jest/globals';
import React from 'react';
import {render} from '@testing-library/react-native';
import App from '../src/App';
import App from '../App';

it('renders correctly', async () => {
const {findByText} = render(<App />);
Expand Down
2 changes: 1 addition & 1 deletion __tests__/taskPopup.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {render} from '@testing-library/react-native';
import React from 'react';

import App from '../src/App';
import App from '../App';

describe('TaskPopup', () => {
it('does not render at login', () => {
Expand Down
9 changes: 7 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@
"ios": {
"bundleIdentifier": "com.taskratchet.mobile",
"supportsTablet": true,
"buildNumber": "4",
"requiresFullScreen": false
"buildNumber": "11",
"infoPlist": {
"MinimumOSVersion": "12.0"
},
"entitlements": {
"aps-environment": "production"
}
},
"android": {
"package": "com.taskratchet.mobile",
Expand Down
12 changes: 12 additions & 0 deletions config-plugins/withRemoveiOSNotificationEntitlement.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const withEntitlementsPlist =
require('@expo/config-plugins').withEntitlementsPlist;

const withRemoveiOSNotificationEntitlement = config => {
return withEntitlementsPlist(config, mod => {
delete mod.modResults['aps-environment'];
return mod;
});
};

module.exports = withRemoveiOSNotificationEntitlement;
18 changes: 18 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"cli": {
"version": ">= 7.6.1"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {}
},
"submit": {
"production": {}
}
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
'^.+\\.tsx?$': 'ts-jest',
},
transformIgnorePatterns: [
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg|firebase|@firebase/util|@react-native-async-storage/async-storage|@react-native-community/datetimepicker|@tanstack/react-query|@react-native-date-picker|react-native-secure-key-store|react-native-url-polyfill|react-native-webview|expo-secure-store|expo-status-bar)',
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg|firebase|@firebase/util|@react-native-async-storage/async-storage|@react-native-community/datetimepicker|@tanstack/react-query|@react-native-date-picker|react-native-url-polyfill|react-native-webview|expo-secure-store|expo-status-bar)',
],
setupFilesAfterEnv: ['./jest.setup.ts'],
testEnvironment: 'jsdom',
Expand Down
Loading
Loading