GithubHelp home page GithubHelp logo

mobile-sdk-ios's Introduction

Simpo SDK for iOS

Documentation

  • init(ucid: string, options: object)

    options
    • dimensions: type: CGSize(width: number, height: number) - the size of the widget itself
    • show: boolean - show or hide the widget
    • position: , type: string, can receive one of the below values:
      • "bottom-left"
      • "bottom-right" (default)
      • "top-left"
      • "top-right"
    • userEmail: type: string
    • userName: type: string
    • uuid: type: string
  • open()

    must be called after init, will open Simpo interface

Example

        let ucid = "Enter your UCID here"
        let options = SimpoOptions(show: true, dimensions: CGSize(width: 55, height: 55), userEmail: "[email protected]")
        Simpo.init(ucid: ucid, options: options)

Installation instructions:

Carthage

  1. Install Carthage
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install carthage
  1. Create Cartfile in the project root dir with the content:
github "actionbario/mobile-sdk-iOS"
  1. Install the dependency:
carthage update --platform iOS
  1. Add Simpo.framework (located in <project-root>/Carthage/Build/iOS) to the Linked Frameworks and Libraries:
    picture
  2. Add a Run Script build phase with this content:
  • shell script (if not exist): /usr/local/bin/carthage copy-frameworks
  • input Files: $(SRCROOT)/Carthage/Build/iOS/Simpo.framework
  • output Files: $(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/Simpo.framework

picture 6. Optional if CocoaPods script [CP] Embed Pods Frameworks exists.
Solves the AppStore submission issue.
Add a Run Script build phase with the name Carthage Strip Architectures and this content:

FRAMEWORK="Simpo"
FRAMEWORK_EXECUTABLE_PATH="${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/$FRAMEWORK.framework/$FRAMEWORK"
EXTRACTED_ARCHS=()

echo "Stripping the Simpo framework"

for ARCH in $ARCHS
do
lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH"
EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH")
done
lipo -o "$FRAMEWORK_EXECUTABLE_PATH-merged" -create "${EXTRACTED_ARCHS[@]}"
rm "${EXTRACTED_ARCHS[@]}"
rm "$FRAMEWORK_EXECUTABLE_PATH"
mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH"

CocoaPods

  1. Install CocoaPods
$ sudo gem install cocoapods
  1. If needed (first time) run:
pod init
  1. Install the dependency by adding pod 'SimpoSDK' into the Podfile. Then run:
$ pod update

So the Podfile looks like this:

platform :ios, '9.3'

target '<Project name>' do
  use_frameworks!
  pod 'SimpoSDK'
end

mobile-sdk-ios's People

Contributors

erezactionbar avatar yuvalkarmi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.