Setup

S’abonner

How to add BearSDK to your application:

Download sample apps repository.

Bootstrap dependencies:

You can download dependencies using any of your favorite dependency manager like: Carthage or CocoaPods. Example of Cartfile included in sample app.

Carthage:

Add this to your Cartfile file:

github "Alamofire/Alamofire" "4.7.2"
github "ReactiveX/RxSwift" "4.1.2"
binary "https://raw.githubusercontent.com/bear2b/specifications/master/ios/carthage/BearSDK.json" == 2.0.7
carthage bootstrap --platform iOS

Add BearSDK and other dependencies to your project into Embedded Binaries section.

CocoaPods:

Add this to your Podfile file:

platform :ios, '9.0'
use_frameworks!

target `YourApp` do
    pod 'BearSDK', :podspec = 'https://raw.githubusercontent.com/bear2b/specifications/2.0.7/BearSDK.podspec'
end
pod install

Manual:

Change your Info.plist:

  • if you want to use facebook assets with deeplinks to go from your application to facebook app directly - setup this key to your app info.plist.
LSApplicationQueriesSchemes
fb
  • Add camera usage description to describe how app will use camera.
NSCameraUsageDescription
Camera will let you scan pages
  • Add locatiion usage description if you want to use gelolalized markers.

NSLocationWhenInUseUsageDescription
  • Add photo library usage description if you want to provide ability to save images or screenshots to camera roll.
NSPhotoLibraryUsageDescription
Save images and screenshots

  • And add this new key for the same thing for iOS 11.
NSPhotoLibraryAddUsageDescription
Save images and screenshots

Disable bitcode in Build Settings:

Cet article vous a-t-il été utile ?
Utilisateurs qui ont trouvé cela utile : 0 sur 0

Commentaires

0 commentaire

Vous devez vous connecter pour laisser un commentaire.