Matthew Mathias 03fc4af9dd Update scheme names 3 years ago
..
DaysUntilBirthday.xcodeproj 9ba5ca3393 Add scheme and update in tests.yml 3 years ago
DaysUntilBirthdayForPod.xcodeproj 03fc4af9dd Update scheme names 3 years ago
DaysUntilBirthdayUITests(iOS) 4b4af4628d Update instructions 3 years ago
Shared f5f7ce76f7 Add UI test to DaysUntilBirthday sample app 3 years ago
iOS f8d2513c76 Update UI tests to detect first or existing sign in 3 years ago
macOS b0f8d26f08 Update picker style and set sample deployment target to iOS 14 (#131) 3 years ago
Podfile 3893de800c Rename Swift support pod (#137) 3 years ago
README.md 4b4af4628d Update instructions 3 years ago

README.md

Google Sign-In Swift Sample App

CocoaPods

  1. In the ../Samples/Swift/DaysUntilBirthday/ folder, run the following CocoaPods command.

    pod install
    
  2. Open the generated workspace:

    open DaysUntilBirthdayForPod.xcworkspace
    
  3. Run the DaysUntilBirthdayForPod (iOS) or DaysUntilBirthdayForPod (macOS)target.

Swift Package Manager

  1. In the ../Samples/Swift/DaysUntilBirthday/ folder, open the project:

    open DaysUntilBirthday.xcodeproj
    
  2. Run the DaysUntilBirthday (iOS) or DaysUntilBirthday (macOS) target.

Integration Tests

We run integration tests on the DaysUntilBirthday(iOS) sample app. These tests attempt to login via Google Sign-in, and so they need an email and a password. The email and password that we use are defined as secrets on our GitHub repo, and we retrieve these from the workflow environment.

Locally, both the email and password need to be passed to xcodebuild as arguments: xcodebuild <other args> EMAIL_SECRET=... PASSWORD_SECRET=.... Refer to the repo's Secrets for these values.