Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/skiser/Routinely into Chase
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaseTeichmann committed Oct 4, 2019
2 parents 46d3994 + 310e6b8 commit 7297766
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion Routinely/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ android {
}

dependencies {
implementation project(':react-native-google-signin')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:+" // From node_modules

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import android.content.Context;
import com.facebook.react.PackageList;
import com.facebook.react.ReactApplication;
import co.apptailor.googlesignin.RNGoogleSigninPackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.soloader.SoLoader;
Expand Down
2 changes: 0 additions & 2 deletions Routinely/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
rootProject.name = 'Routinely'
include ':react-native-google-signin'
project(':react-native-google-signin').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-google-signin/android')
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
5 changes: 3 additions & 2 deletions Routinely/app/components/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class LoginScreen extends Component {
// login with credential
const firebaseUserCredential = await firebase.auth().signInWithCredential(credential);

console.warn(JSON.stringify(firebaseUserCredential.user.toJSON()));
//console.warn(JSON.stringify(firebaseUserCredential.user.toJSON()));
} catch (error) {
console.log(error)
if (error.code === statusCodes.SIGN_IN_CANCELLED) {
Expand Down Expand Up @@ -115,12 +115,13 @@ class LoginScreen extends Component {
return (
<View style={styles.body}>
<View style={styles.sectionContainer}>
{!this.state.loggedIn &&
<GoogleSigninButton
style={{ width: 192, height: 48 }}
size={GoogleSigninButton.Size.Wide}
color={GoogleSigninButton.Color.Dark}
onPress={this.firebaseGoogleLogin}
disabled={this.state.isSigninInProgress} />
disabled={this.state.isSigninInProgress} />}
</View>
<View style={styles.buttonContainer}>
{!this.state.loggedIn && <Text>You are currently logged out</Text>}
Expand Down
4 changes: 1 addition & 3 deletions Routinely/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/nativ

target 'Routinely' do
# Pods for Routinely
pod 'GoogleSignIn', '~> 4.4.0'
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
Expand Down Expand Up @@ -39,8 +38,7 @@ target 'Routinely' do
pod 'Firebase/Analytics'
pod 'Firebase/Auth'


pod 'RNGoogleSignin', :path => '../node_modules/react-native-google-signin'
pod 'GoogleSignIn', '~> 5.0.0'

target 'RoutinelyTests' do
inherit! :search_paths
Expand Down
2 changes: 1 addition & 1 deletion Routinely/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"react-dom": "^16.10.1",
"react-native": "0.61.0",
"react-native-calendars": "^1.212.0",
"react-native-elements": "^1.2.3",
"react-native-elements": "^1.2.4",
"react-native-firebase": "^5.5.6",
"react-native-gesture-handler": "^1.4.1",
"react-native-google-signin": "^2.0.0",
Expand Down

0 comments on commit 7297766

Please sign in to comment.