From af07ecb804adf7be3c1933215440665c4b47e86c Mon Sep 17 00:00:00 2001 From: heyethereum Date: Mon, 8 Jul 2024 07:47:34 +0800 Subject: [PATCH] initial development build for google sign in --- .easignore | 23 + App.tsx | 42 +- app.json | 10 +- eas.json | 18 + ios/Podfile.lock | 302 ++ ios/SafeQR.xcodeproj/project.pbxproj | 32 +- .../xcshareddata/IDEWorkspaceChecks.plist | 8 + navigation/AppNavigator.tsx | 10 +- package-lock.json | 3655 ++++++++++++++++- package.json | 13 +- 10 files changed, 4068 insertions(+), 45 deletions(-) create mode 100644 .easignore create mode 100644 eas.json create mode 100644 ios/SafeQR.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/.easignore b/.easignore new file mode 100644 index 0000000..5e47857 --- /dev/null +++ b/.easignore @@ -0,0 +1,23 @@ +# Ignore node_modules (handled by EAS) +node_modules/ + +# Ignore build output +build/ +dist/ + +# Ignore local environment files +.env +.env.local + +# Ignore logs +*.log + +# Ignore macOS specific files +.DS_Store + +# Ignore Amplify generated files (if you want to manage them manually) + + +# Ignore other temporary files +tmp/ +temp/ diff --git a/App.tsx b/App.tsx index a9a4ef5..ef7129a 100644 --- a/App.tsx +++ b/App.tsx @@ -1,12 +1,31 @@ import React, { useState } from 'react'; +import { NavigationContainer } from '@react-navigation/native'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; -import { QRCode, QRCodeContext } from './types'; -import AppNavigator from './navigation/AppNavigator'; +import QRScannerScreen from './screens/QRScannerScreen'; +import HistoryScreen from './screens/HistoryScreen'; +import SettingsScreen from './screens/SettingsScreen'; +import { QRCodeContext } from './types'; +import CustomTabBar from './components/CustomTabBar'; + +import { Button } from 'react-native'; +import { Authenticator, useAuthenticator, withAuthenticator } from '@aws-amplify/ui-react-native'; +import { Amplify } from 'aws-amplify'; +import config from './src/aws-exports'; +import { enableScreens } from 'react-native-screens'; + +enableScreens(); + +Amplify.configure(config); + +function SignOutButton() { + const { signOut } = useAuthenticator(); + return