joonhocho / react-native-google-sign-in

React Native Wrapper for Latest Google Sign-In OAuth SDK / API
MIT License
211 stars 64 forks source link

updated the README to show newer versions of XCode, Swift and Google SDK #67

Open findmory opened 6 years ago

findmory commented 6 years ago

There's a missing item in the XCode instructions - setting the URL Type. I added instructions and screenshot for this. Also I tested with RN 0.51 and so I updated the README to show that and also listed the full environment I tested with.

alpamys-qanybet commented 6 years ago

@findmory , hi there, can you give me your Swift 4 version of code? I am in trouble with this Xcode and Swift versions.

findmory commented 6 years ago

This is how I made it work with Swift 4

following: https://github.com/joonhocho/react-native-google-sign-in

  1. react-native init googlslideshow3
  2. react-native install react-native-google-sign-in
  3. edit Xcode project to set bundle ID and Signing/provisioning profile
  4. add bridging header : https://mycodetips.com/ios/manually-adding-swift-bridging-header-1290.html
  5. install Google Sign-in without Pods https://developers.google.com/identity/sign-in/ios/sdk/
  6. Get Plist from: https://console.developers.google.com/apis/credentials/oauthclient.......
  7. Add Plist to project
  8. Add code to AppDelegate.m, AppDelegate.h and the bridging header (as per doc instructions)
  9. Run Xcode project.
alpamys-qanybet commented 6 years ago

@findmory, I have already done all these steps. But the original code written is swift is not compatible with version 3.3 or 4.1 within Xcode9.