Skip to content

Instantly share code, notes, and snippets.

@cardoso
Last active May 25, 2020 20:29
Show Gist options
  • Save cardoso/da4a3fb4773a5eea79229d0015c87035 to your computer and use it in GitHub Desktop.
Save cardoso/da4a3fb4773a5eea79229d0015c87035 to your computer and use it in GitHub Desktop.
import UIKit
import VoxeetSDK
import StreamChatClient
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
VoxeetSDK.shared.initialize(consumerKey: "ZTBib3I3NzkzMmt0aA==", consumerSecret: "NDUyM2kzMTc0ZHNvZWxjaHRucG41dmpidnE=")
VoxeetSDK.shared.appGroup = "group.so.cardo.Smitch.Group"
VoxeetSDK.shared.preferredExtension = "so.cardo.Smitch.Broadcast"
Client.configureShared(.init(apiKey: "74e5enp33qj2", logOptions: .info))
Client.shared.set(user: .init(id: generateUserId()), token: .development)
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment