Skip to content

Commit

Permalink
Add Google Login
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier3372 committed Jun 7, 2020
1 parent 725ee21 commit c6da25f
Show file tree
Hide file tree
Showing 10 changed files with 308 additions and 68 deletions.
5 changes: 5 additions & 0 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import {SettingsThemePage} from './src/pages/SettingsTheme';
import {FindPage} from './src/pages/Find';
import {LandingPage} from './src/pages/Landing';
import {SettingsPeoplePage} from './src/pages/SettingsPeople';
import {AccountLoadingPage} from './src/pages/Loading'
import {ManageAccountPage} from './src/pages/AccountManage'

import {store} from './index.js';

Expand All @@ -41,6 +43,9 @@ const SettingsPageNest = () => {
<Stack.Screen name="Settings" component={SettingsPage} />
<Stack.Screen name="Theme" component={SettingsThemePage} />
<Stack.Screen name="People" component={SettingsPeoplePage} />
<Stack.Screen name="Account" component={AccountLoadingPage} />
<Stack.Screen name="Signup" component={LandingPage} />
<Stack.Screen name="ManageAccount" component={ManageAccountPage} />
</Stack.Navigator>
);
};
Expand Down
1 change: 1 addition & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ target 'lost' do
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

pod 'Firebase/Analytics'
pod 'GoogleSignIn', '~> 5.0.2'

target 'lostTests' do
inherit! :search_paths
Expand Down
191 changes: 124 additions & 67 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
PODS:
- AppAuth (1.4.0):
- AppAuth/Core (= 1.4.0)
- AppAuth/ExternalUserAgent (= 1.4.0)
- AppAuth/Core (1.4.0)
- AppAuth/ExternalUserAgent (1.4.0)
- boost-for-react-native (1.63.0)
- DoubleConversion (1.1.6)
- FBLazyVector (0.61.5)
Expand All @@ -9,43 +14,49 @@ PODS:
- React-Core (= 0.61.5)
- React-jsi (= 0.61.5)
- ReactCommon/turbomodule/core (= 0.61.5)
- Firebase/Analytics (6.16.0):
- Firebase/Analytics (6.25.0):
- Firebase/Core
- Firebase/Core (6.16.0):
- Firebase/Auth (6.25.0):
- Firebase/CoreOnly
- FirebaseAnalytics (= 6.2.2)
- Firebase/CoreOnly (6.16.0):
- FirebaseCore (= 6.6.1)
- FirebaseAnalytics (6.2.2):
- FirebaseCore (~> 6.6)
- FirebaseInstanceID (~> 4.3)
- GoogleAppMeasurement (= 6.2.2)
- FirebaseAuth (~> 6.5.3)
- Firebase/Core (6.25.0):
- Firebase/CoreOnly
- FirebaseAnalytics (= 6.5.1)
- Firebase/CoreOnly (6.25.0):
- FirebaseCore (= 6.7.1)
- FirebaseAnalytics (6.5.1):
- FirebaseCore (~> 6.7)
- FirebaseInstallations (~> 1.2)
- GoogleAppMeasurement (= 6.5.1)
- GoogleUtilities/AppDelegateSwizzler (~> 6.0)
- GoogleUtilities/MethodSwizzler (~> 6.0)
- GoogleUtilities/Network (~> 6.0)
- "GoogleUtilities/NSData+zlib (~> 6.0)"
- nanopb (= 0.3.9011)
- FirebaseCore (6.6.1):
- FirebaseCoreDiagnostics (~> 1.2)
- nanopb (~> 1.30905.0)
- FirebaseAuth (6.5.3):
- FirebaseAuthInterop (~> 1.0)
- FirebaseCore (~> 6.6)
- GoogleUtilities/AppDelegateSwizzler (~> 6.5)
- GoogleUtilities/Environment (~> 6.5)
- GTMSessionFetcher/Core (~> 1.1)
- FirebaseAuthInterop (1.1.0)
- FirebaseCore (6.7.1):
- FirebaseCoreDiagnostics (~> 1.3)
- FirebaseCoreDiagnosticsInterop (~> 1.2)
- GoogleUtilities/Environment (~> 6.5)
- GoogleUtilities/Logger (~> 6.5)
- FirebaseCoreDiagnostics (1.2.0):
- FirebaseCoreDiagnostics (1.3.0):
- FirebaseCoreDiagnosticsInterop (~> 1.2)
- GoogleDataTransportCCTSupport (~> 1.3)
- GoogleDataTransportCCTSupport (~> 3.1)
- GoogleUtilities/Environment (~> 6.5)
- GoogleUtilities/Logger (~> 6.5)
- nanopb (~> 0.3.901)
- nanopb (~> 1.30905.0)
- FirebaseCoreDiagnosticsInterop (1.2.0)
- FirebaseInstallations (1.1.0):
- FirebaseInstallations (1.3.0):
- FirebaseCore (~> 6.6)
- GoogleUtilities/UserDefaults (~> 6.5)
- GoogleUtilities/Environment (~> 6.6)
- GoogleUtilities/UserDefaults (~> 6.6)
- PromisesObjC (~> 1.2)
- FirebaseInstanceID (4.3.0):
- FirebaseCore (~> 6.6)
- FirebaseInstallations (~> 1.0)
- GoogleUtilities/Environment (~> 6.5)
- GoogleUtilities/UserDefaults (~> 6.5)
- Folly (2018.10.22.00):
- boost-for-react-native
- DoubleConversion
Expand All @@ -56,39 +67,52 @@ PODS:
- DoubleConversion
- glog
- glog (0.3.5)
- GoogleAppMeasurement (6.2.2):
- GoogleAppMeasurement (6.5.1):
- GoogleUtilities/AppDelegateSwizzler (~> 6.0)
- GoogleUtilities/MethodSwizzler (~> 6.0)
- GoogleUtilities/Network (~> 6.0)
- "GoogleUtilities/NSData+zlib (~> 6.0)"
- nanopb (= 0.3.9011)
- GoogleDataTransport (3.3.1)
- GoogleDataTransportCCTSupport (1.3.1):
- GoogleDataTransport (~> 3.3)
- nanopb (~> 0.3.901)
- GoogleUtilities/AppDelegateSwizzler (6.5.1):
- nanopb (~> 1.30905.0)
- GoogleDataTransport (6.2.1)
- GoogleDataTransportCCTSupport (3.1.0):
- GoogleDataTransport (~> 6.1)
- nanopb (~> 1.30905.0)
- GoogleSignIn (5.0.2):
- AppAuth (~> 1.2)
- GTMAppAuth (~> 1.0)
- GTMSessionFetcher/Core (~> 1.1)
- GoogleUtilities/AppDelegateSwizzler (6.6.0):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (6.5.1)
- GoogleUtilities/Logger (6.5.1):
- GoogleUtilities/Environment (6.6.0):
- PromisesObjC (~> 1.2)
- GoogleUtilities/Logger (6.6.0):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (6.5.1):
- GoogleUtilities/MethodSwizzler (6.6.0):
- GoogleUtilities/Logger
- GoogleUtilities/Network (6.5.1):
- GoogleUtilities/Network (6.6.0):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (6.5.1)"
- GoogleUtilities/Reachability (6.5.1):
- "GoogleUtilities/NSData+zlib (6.6.0)"
- GoogleUtilities/Reachability (6.6.0):
- GoogleUtilities/Logger
- GoogleUtilities/UserDefaults (6.5.1):
- GoogleUtilities/UserDefaults (6.6.0):
- GoogleUtilities/Logger
- nanopb (0.3.9011):
- nanopb/decode (= 0.3.9011)
- nanopb/encode (= 0.3.9011)
- nanopb/decode (0.3.9011)
- nanopb/encode (0.3.9011)
- GTMAppAuth (1.0.0):
- AppAuth/Core (~> 1.0)
- GTMSessionFetcher (~> 1.1)
- GTMSessionFetcher (1.4.0):
- GTMSessionFetcher/Full (= 1.4.0)
- GTMSessionFetcher/Core (1.4.0)
- GTMSessionFetcher/Full (1.4.0):
- GTMSessionFetcher/Core (= 1.4.0)
- nanopb (1.30905.0):
- nanopb/decode (= 1.30905.0)
- nanopb/encode (= 1.30905.0)
- nanopb/decode (1.30905.0)
- nanopb/encode (1.30905.0)
- PromisesObjC (1.2.8)
- RCTRequired (0.61.5)
- RCTTypeSafety (0.61.5):
Expand Down Expand Up @@ -253,7 +277,7 @@ PODS:
- React-cxxreact (= 0.61.5)
- React-jsi (= 0.61.5)
- React-jsinspector (0.61.5)
- react-native-appearance (0.3.3):
- react-native-appearance (0.3.4):
- React
- react-native-safe-area-context (0.7.3):
- React
Expand Down Expand Up @@ -292,15 +316,25 @@ PODS:
- React-cxxreact (= 0.61.5)
- React-jsi (= 0.61.5)
- ReactCommon/jscallinvoker (= 0.61.5)
- RNCMaskedView (0.1.7):
- RNCMaskedView (0.1.10):
- React
- RNFBApp (7.1.0):
- Firebase/CoreOnly (~> 6.25.0)
- React
- RNFBAuth (7.1.0):
- Firebase/Auth (~> 6.25.0)
- React
- RNFBApp
- RNGestureHandler (1.6.1):
- React
- RNGestureHandler (1.6.0):
- RNGoogleSignin (4.0.3):
- GoogleSignIn (~> 5.0.0)
- React
- RNReanimated (1.7.0):
- RNReanimated (1.9.0):
- React
- RNScreens (2.3.0):
- RNScreens (2.8.0):
- React
- RNSVG (12.0.3):
- RNSVG (12.1.0):
- React
- RNVectorIcons (6.6.0):
- React
Expand All @@ -313,6 +347,7 @@ DEPENDENCIES:
- Firebase/Analytics
- Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`)
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
- GoogleSignIn (~> 5.0.2)
- RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
- RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
- React (from `../node_modules/react-native/`)
Expand All @@ -338,7 +373,10 @@ DEPENDENCIES:
- ReactCommon/jscallinvoker (from `../node_modules/react-native/ReactCommon`)
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
- "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)"
- "RNFBApp (from `../node_modules/@react-native-firebase/app`)"
- "RNFBAuth (from `../node_modules/@react-native-firebase/auth`)"
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
- "RNGoogleSignin (from `../node_modules/@react-native-community/google-signin`)"
- RNReanimated (from `../node_modules/react-native-reanimated`)
- RNScreens (from `../node_modules/react-native-screens`)
- RNSVG (from `../node_modules/react-native-svg`)
Expand All @@ -347,18 +385,23 @@ DEPENDENCIES:

SPEC REPOS:
trunk:
- AppAuth
- boost-for-react-native
- Firebase
- FirebaseAnalytics
- FirebaseAuth
- FirebaseAuthInterop
- FirebaseCore
- FirebaseCoreDiagnostics
- FirebaseCoreDiagnosticsInterop
- FirebaseInstallations
- FirebaseInstanceID
- GoogleAppMeasurement
- GoogleDataTransport
- GoogleDataTransportCCTSupport
- GoogleSignIn
- GoogleUtilities
- GTMAppAuth
- GTMSessionFetcher
- nanopb
- PromisesObjC

Expand Down Expand Up @@ -417,8 +460,14 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon"
RNCMaskedView:
:path: "../node_modules/@react-native-community/masked-view"
RNFBApp:
:path: "../node_modules/@react-native-firebase/app"
RNFBAuth:
:path: "../node_modules/@react-native-firebase/auth"
RNGestureHandler:
:path: "../node_modules/react-native-gesture-handler"
RNGoogleSignin:
:path: "../node_modules/@react-native-community/google-signin"
RNReanimated:
:path: "../node_modules/react-native-reanimated"
RNScreens:
Expand All @@ -431,24 +480,29 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
AppAuth: 31bcec809a638d7bd2f86ea8a52bd45f6e81e7c7
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2
FBLazyVector: aaeaf388755e4f29cd74acbc9e3b8da6d807c37f
FBReactNativeSpec: 118d0d177724c2d67f08a59136eb29ef5943ec75
Firebase: 497158b816d0a86fc31babbd05546fcd7e6083ff
FirebaseAnalytics: cf95d3aab897612783020fbd98401d5366f135ee
FirebaseCore: 85064903ed6c28e47fec9c7bd149d94ba1b6b6e7
FirebaseCoreDiagnostics: 5e78803ab276bc5b50340e3c539c06c3de35c649
Firebase: 5719b4f965f76643241a1bb8244483ff6117db39
FirebaseAnalytics: 93565f3f0f0f50a5d8770850bfe6a82eaba5db27
FirebaseAuth: 7047aec89c0b17ecd924a550c853f0c27ac6015e
FirebaseAuthInterop: a0f37ae05833af156e72028f648d313f7e7592e9
FirebaseCore: 6023faeada5afa95a349fccafb40900e32e9ac42
FirebaseCoreDiagnostics: 4a773a47bd83bbd5a9b1ccf1ce7caa8b2d535e67
FirebaseCoreDiagnosticsInterop: 296e2c5f5314500a850ad0b83e9e7c10b011a850
FirebaseInstallations: 575cd32f2aec0feeb0e44f5d0110a09e5e60b47b
FirebaseInstanceID: 6668efc1655a4052c083f287a7141f1ead12f9c2
FirebaseInstallations: 6f5f680e65dc374397a483c32d1799ba822a395b
Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51
glog: 1f3da668190260b06b429bb211bfbee5cd790c28
GoogleAppMeasurement: d0560d915abf15e692e8538ba1d58442217b6aff
GoogleDataTransport: 0048df6388dab1c254799f2a30365b1dffe20422
GoogleDataTransportCCTSupport: f880d70972efa2ed1be4e9173a0f4c5f3dc2d176
GoogleUtilities: 06eb53bb579efe7099152735900dd04bf09e7275
nanopb: 18003b5e52dab79db540fe93fe9579f399bd1ccd
GoogleAppMeasurement: 137afe68bfa406c3f4221b9395253d9e5d4654cf
GoogleDataTransport: 9a8a16f79feffc7f42096743de2a7c4815e84020
GoogleDataTransportCCTSupport: d70a561f7d236af529fee598835caad5e25f6d3d
GoogleSignIn: 7137d297ddc022a7e0aa4619c86d72c909fa7213
GoogleUtilities: 39530bc0ad980530298e9c4af8549e991fd033b1
GTMAppAuth: 4deac854479704f348309e7b66189e604cf5e01e
GTMSessionFetcher: 6f5c8abbab8a9bce4bb3f057e317728ec6182b10
nanopb: c43f40fadfe79e8b8db116583945847910cbabc9
PromisesObjC: c119f3cd559f50b7ae681fa59dc1acd19173b7e6
RCTRequired: b153add4da6e7dbc44aebf93f3cf4fcae392ddf1
RCTTypeSafety: 9aa1b91d7f9310fc6eadc3cf95126ffe818af320
Expand All @@ -459,7 +513,7 @@ SPEC CHECKSUMS:
React-jsi: cb2cd74d7ccf4cffb071a46833613edc79cdf8f7
React-jsiexecutor: d5525f9ed5f782fdbacb64b9b01a43a9323d2386
React-jsinspector: fa0ecc501688c3c4c34f28834a76302233e29dc0
react-native-appearance: ff12122b6456efc29b3a22a3731eb54f7c291e69
react-native-appearance: fc2014516054585d531e07aa0b40ab0de1d2be85
react-native-safe-area-context: 8260e5157617df4b72865f44006797f895b2ada7
React-RCTActionSheet: 600b4d10e3aea0913b5a92256d2719c0cdd26d76
React-RCTAnimation: 791a87558389c80908ed06cc5dfc5e7920dfa360
Expand All @@ -471,14 +525,17 @@ SPEC CHECKSUMS:
React-RCTText: 9ccc88273e9a3aacff5094d2175a605efa854dbe
React-RCTVibration: a49a1f42bf8f5acf1c3e297097517c6b3af377ad
ReactCommon: 198c7c8d3591f975e5431bec1b0b3b581aa1c5dd
RNCMaskedView: 90dd32f5b786bd562e876e1421ea77c700cbf71e
RNGestureHandler: dde546180bf24af0b5f737c8ad04b6f3fa51609a
RNReanimated: 031fe8d9ea93c2bd689a40f05320ef9d96f74d7f
RNScreens: 03bf608b92ac0acf323f47d8f5b63a8f829340c8
RNSVG: 7e16ddfc6e00d5aa69c9eb83e699bcce5dcb85d4
RNCMaskedView: f5c7d14d6847b7b44853f7acb6284c1da30a3459
RNFBApp: 25a6476dfd7aac2bcbe984f569875bcea122895b
RNFBAuth: 52e7af4244e6adf39237ab8e94d6d51f2c1bf450
RNGestureHandler: 8f09cd560f8d533eb36da5a6c5a843af9f056b38
RNGoogleSignin: ccf71ee4b6cfd324fd788a41e457e2043838c0d9
RNReanimated: b5ccb50650ba06f6e749c7c329a1bc3ae0c88b43
RNScreens: 62211832af51e0aebcf6e8c36bcf7dd65592f244
RNSVG: ce9d996113475209013317e48b05c21ee988d42e
RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4
Yoga: f2a7cd4280bfe2cca5a7aed98ba0eb3d1310f18b

PODFILE CHECKSUM: 3b66506f86ae7486d8598d10121f4b20193bdd3a
PODFILE CHECKSUM: da226609beb238b8d56536ad24426a344d025a46

COCOAPODS: 1.8.4
COCOAPODS: 1.9.1
Loading

0 comments on commit c6da25f

Please sign in to comment.