subkumar 0bd758739a Support Swift6 version to Birthday sample app. (#544) 7 months ago
..
DaysUntilBirthday.xcodeproj 7932d33686 Use default code signing settings for sample projects (#272) 3 years ago
DaysUntilBirthdayForPod.xcodeproj 55bf5d077b Use GTMAppAuth's new delegate protocol (#299) 2 years ago
DaysUntilBirthdayUITests(iOS) 8062b4c323 Update Github workflow build & run destinations, fix respective integration tests (#545) 7 months ago
Shared 0bd758739a Support Swift6 version to Birthday sample app. (#544) 7 months ago
iOS ae5276cf1f Add a configuration property populated via Info.plist (#228) 3 years ago
macOS 9e8be62c35 Add support for GTMAppAuth 5 on macOS (#522) 10 months ago
Podfile 55bf5d077b Use GTMAppAuth's new delegate protocol (#299) 2 years ago
README.md 8062b4c323 Update Github workflow build & run destinations, fix respective integration tests (#545) 7 months 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.

When run locally, both the email and password need to be passed to xcodebuild.

In Xcode, you can add arguments by selecting "Edit Scheme > Run > Environment Variables", and replace the variables with your test account. Alternatively, edit Credential.swift directly. WARNING: Don't check these into the repo!

From the command line, you can do this as arguments: xcodebuild <other args> EMAIL_SECRET=... PASSWORD_SECRET=....

For Googlers, refer to CSI internal Workflow documentation for how to access these values, or access them via the repo's Secrets.