Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 2.65 KB

README.md

File metadata and controls

71 lines (47 loc) · 2.65 KB

w3s-ios-sample-app-wallets

This is a sample project to integrate with CircleProgrammableWalletSDK


Requirements

Circle Developer Account

Sign up for the Circle Developer account here: https://console.circle.com/signup

Within the Circle Developer account, you can create and update API Keys, subscribe for activity notifications, view your API logs and more! Anyone can sign up for a Circle Developer account within minutes. All you need is your name, email and password!

Xcode 14.1+

Install Apple’s Xcode development software: Xcode in the Apple App Store.

CocoaPods

CocoaPods is a dependency manager for iOS projects. Install CocoaPods by Homebrew. (suggestion)

Check if Homebrew is installed:

$ brew

How to install Homebrew in MacOS: Link

Installation (with Terminal)

  1. Clone this repo
  2. Open project folder $ cd Sample\ App/
  3. Run $ pod install to install CircleProgrammableWalletSDK
  4. Open the .xcworkspace file (white one) in the finder.

Run $ pod update for SDK updating. (Optional)

Run the project (with Xcode)

  1. Select a simulator as run target

  2. press Run button (Command + R) image

  3. Set your AppID from simulator, and it will be stored in database.

  1. (Optional) Setup configs programmatically

    image

    • Set the endPoint in the AuthScreenView.swift
    • Set the appId in the AuthScreenView.swift
  2. (Optional) Auth configs setup

    Just set up the social login you want to use below:

    • [Apple] Update the App's Bundle Identifier to yours image
    • [Google] Update Info.plist file to add your OAuth client ID and a custom URL scheme based on the reversed client ID. Reference: Get started with Google Sign-In for iOS image
    • [Facebook] Replace the APP-ID, CLIENT-TOKEN and APP-NAME of Info.plist with your Facebook application configurations. Reference: Facebook Login for iOS - Quickstart image