Version change
The official Pronto iOS SDK
Join our slack channel | Support us on Beerpay
Add the following to your Podfile:
pod 'ProntoSDK'
Available sub-specs:
ProntoSDK/Authentication
ProntoSDK/Notifications
ProntoSDK/Collections
ProntoSDK/AppUpdateCheck
ProntoSDK/Localization
ProntoSDK/RemoteConfig
And run:
pod install
Add the following to your Cartfile:
github "Pronto-am/MobileCMS-iOS-SDK"
carthage update
Add the following dependency to your Package.swift:
.package(url: "https://github.com/Pronto-am/MobileCMS-iOS-SDK", .upToNextMajor(from: "2.0.0"))
accio install
Open ProntoSDK.xcodeproj end start development.
ProntoSDK.xcodeproj
In AppDelegate.swift:
AppDelegate.swift
import ProntoSDK func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let config = ProntoConfig() // Setup the API client credentials config.clientID = <#CLIENT_ID#> config.clientSecret = <#CLIENT_SECRET#> config.encryptionKey = <#ENCRYPTION_KEY#> config.domain = "mypronto.site.com" config.firebaseDomain = "myprontoproject.firebaseio.com" // Activate each plugin your project uses config.plugins = [ .notifications, .authentication, .collections, .localization, .updateChecker ] // Disable logging for non-debug builds #if DEBUG config.logger = Logger() // Should conform to `Cobalt.Logger` protocol #endif ProntoSDK.configure(config) // Do the rest of the implementation return true
→ 📯 Read notifications documentation
→ 🔐 Read authentication documentation
→ 🗂 Read collections documentation
→ 🌟 Read update checker documentation
→ 🇪🇺 Read localization documentation
→ ⚙️ Read remote config documentation
Almost every asynchronous function ProntoSDK uses RxSwift internally:
RxSwift
import RxSwift import RxCocoa let single = ProntoCollection<Location>().list() // = Single<[Location]> single.subscribe(onSuccess: { locations in // ... }, onError: { error in print("Error fetching locations: \(error)") }).disposed(by: disposeBag)
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Pronto iOS SDK
The official Pronto iOS SDK
Installation
Cococapods
Add the following to your Podfile:
Available sub-specs:
ProntoSDK/Authentication
ProntoSDK/Notifications
ProntoSDK/Collections
ProntoSDK/AppUpdateCheck
ProntoSDK/Localization
ProntoSDK/RemoteConfig
And run:
Carthage
Add the following to your Cartfile:
And run:
SwiftPM
Add the following dependency to your Package.swift:
Accio
Add the following dependency to your Package.swift:
And run:
Development
Open
ProntoSDK.xcodeproj
end start development.Implementation
Core
In
AppDelegate.swift
:Notifications plugin
→ 📯 Read notifications documentation
Authentication plugin
→ 🔐 Read authentication documentation
Collections plugin
→ 🗂 Read collections documentation
Update checker plugin
→ 🌟 Read update checker documentation
Localization
→ 🇪🇺 Read localization documentation
Remote config
→ ⚙️ Read remote config documentation
RxSwift
Almost every asynchronous function ProntoSDK uses
RxSwift
internally:References