Breaking changes in version 1.5.3 of iOS SDK
The version 1.5.3 of the Survicate iOS SDK introduces support for binary framework, which causes a minor backward compatibility break.
Until the version 1.5.3 the main SDK class was called
Survicate
, in the version 1.5.3 that class was renamed toSurvicateSdk
. The change was introduced to make it possible to distribute Survicate Mobile SDK as the XCFramework binary.
That means the setup step in the AppDelegate
class before version 1.5.3 looks as follows:
// ...
import Survicate
class AppDelegate: UIResponder, UIApplicationDelegate {
// ...
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
Survicate.shared.initialize()
return true
}
}
// ...
@import Survicate;
@implementation AppDelegate
// ...
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[Survicate shared] initialize];
return YES;
}
@end
Similarly, in all other steps of the setup and installation instead of the SurvicateSdk
class, the Survicate
class should be used.