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

User profile screen update #27

Merged
merged 13 commits into from
Jun 13, 2024
7 changes: 7 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
EXPO_PUBLIC_FIREBASE_API_KEY=your_api_key
EXPO_PUBLIC_FIREBASE_AUTH_DOMAIN=your_auth_domain
EXPO_PUBLIC_FIREBASE_DATABASE_URL=your_database_url
EXPO_PUBLIC_FIREBASE_PROJECT_ID=your_project_id
EXPO_PUBLIC_FIREBASE_STORAGE_BUCKET=your_storage_bucket
EXPO_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_messaging_sender_id
EXPO_PUBLIC_FIREBASE_APP_ID=your_app_id
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ yarn-error.*
*.pem

# local env files
.env*
.env
.local

# typescript
Expand Down
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