// // AppDelegate+Thirdparty.swift // MoviaBox // // Created by 佳尔 on 2025/5/7. // import UIKit import AdjustSdk #if canImport(FacebookCore) import FacebookCore #endif extension AppDelegate { func registThirdparty(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) { //Facebook #if canImport(FacebookCore) ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions) #endif registAdjust() ///设置刷新控件的语言 MJRefreshConfig.default.languageCode = SPLocalizedManager.shared.mjLocalizedKey } private func registAdjust() { let config = ADJConfig(appToken: "7z38v0rvceww", environment: ADJEnvironmentProduction) Adjust.initSdk(config) } }