Skip to content

circlefin/w3s-ios-sample-app-wallets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ContentView.swift
    • Set the appId in the ContentView.swift
  2. (Optional) SSO configs setup

    • If you want to use SSO for test , please change the flag addSSOSignInView value to true in the w3s_ios_sample_app_walletsApp.swift image

    Just set up the SSO 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