diff --git a/README.md b/README.md index 66b2836..7b29816 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ ![Thunderhead SDK](https://www.thunderhead.com/uploads/2015/07/Thunderhead_LogoIcon_Aubergine.png "Thunderhead") -The Thunderhead SDK for iOS supports iOS 7.1 and above. +The Thunderhead SDK for iOS supports iOS 8.0 and above. ### iOS Version Updates -+ iOS minimum version (deployment target): iOS 7.1 ++ iOS minimum version (deployment target): iOS 8.0 + iOS base SDK version: iOS 12.0 + Xcode minimum version: 10.1 @@ -23,7 +23,7 @@ Specify the *Thunderhead SDK* in your podfile ```txt # Thunderhead SDK target :YourTargetName do - pod 'Thunderhead', :git => 'https://github.com/thunderheadone/one-sdk-ios.git', :tag => '2.24.1' + pod 'Thunderhead', :git => 'https://github.com/thunderheadone/one-sdk-ios.git', :tag => '3.0.0' end ``` @@ -47,9 +47,6 @@ $ pod install + Confirm **_ThunderheadBundle.bundle_** is located in the **Copy Bundle Resources** section. 5. Ensure your project enables modules by going to **Build Settings** tab and setting the flag for **Enable Modules (C and Objective-C)** to **Yes**. Check out **_Adding the SDK dependencies for manual installation_** if you need modules to be disabled. -*Note:* -- If your project’s deployment target is less than iOS 8, the **_WebKit.framework_** has to be added manually as noted below. - #### Adding the SDK dependencies for manual installation The SDK requires modules to be enabled. If you require modules to be disabled, you may need to include the following frameworks to the **Link Binary With Libraries**: @@ -124,12 +121,12 @@ One.startSessionWithSK("ONE-XXXXXXXXXX-1022", Objective-C: ```objective-c [One startSessionWithSK:@"ONE-XXXXXXXXXX-1022" - uri:@"myAppsNameURI" - apiKey:@"f713d44a-8af0-4e79-ba7e-xxxxxxxxxxxxxxxx" - sharedSecret:@"bb8bacb2-ffc2-4c52-aaf4-xxxxxxxxxxxxxxxx" - userId:@"api@yourCompanyName" - adminMode:NO - hostName:@"eu2.thunderhead.com"]; + uri:@"myAppsNameURI" + apiKey:@"f713d44a-8af0-4e79-ba7e-xxxxxxxxxxxxxxxx" + sharedSecret:@"bb8bacb2-ffc2-4c52-aaf4-xxxxxxxxxxxxxxxx" + userId:@"api@yourCompanyName" + adminMode:NO + hostName:@"eu2.thunderhead.com"]; ``` #### Set up the Framework in Admin mode @@ -946,10 +943,10 @@ Objective-C: Swift: ```swift -func application(_ application: UIApplication, - didReceiveRemoteNotification userInfo: [AnyHashable : Any], +func application(_ application: UIApplication, + didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { - // Handle notification + // Handle notification // Call `completionHandler` with the appropriate `UIBackgroundFetchResult`. For example: completionHandler(.newData) } @@ -958,11 +955,11 @@ func application(_ application: UIApplication, Objective-C: ```objective-c -- (void)application:(UIApplication *)application - didReceiveRemoteNotification:(NSDictionary *)userInfo +- (void)application:(UIApplication *)application + didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler { - // Handle notification + // Handle notification // Call `completionHandler` with the appropriate `UIBackgroundFetchResult`. For example: completionHandler(UIBackgroundFetchResultNewData); } @@ -971,7 +968,7 @@ Objective-C: ##### Displaying notifications while the app in foreground -Notifications received while the app is running in the foreground will not generate the standard system alert. Instead, they are passed to the `application:didReceiveRemoteNotification:fetchCompletionHandler:` callback on your app delegate. To display standard system alert, implement `userNotificationCenter:willPresentNotification:withCompletionHandler:` method. +Notifications received while the app is running in the foreground will not generate the standard system alert. Instead, they are passed to the `application:didReceiveRemoteNotification:fetchCompletionHandler:` callback on your app delegate. To display standard system alert, implement `userNotificationCenter:willPresentNotification:withCompletionHandler:` method. For example, to show a standard alert view, do the following: @@ -979,8 +976,8 @@ For example, to show a standard alert view, do the following: Swift: ```swift -func userNotificationCenter(_ center: UNUserNotificationCenter, - willPresent notification: UNNotification, +func userNotificationCenter(_ center: UNUserNotificationCenter, + willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { // Handle notification completionHandler([.alert, .badge, .sound]) @@ -990,8 +987,8 @@ func userNotificationCenter(_ center: UNUserNotificationCenter, Objective-C: ```objective-c -- (void)userNotificationCenter:(UNUserNotificationCenter *)center - willPresentNotification:(UNNotification *)notification +- (void)userNotificationCenter:(UNUserNotificationCenter *)center + willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler { // Handle notification diff --git a/Thunderhead.embeddedframework/Thunderhead.framework/Thunderhead b/Thunderhead.embeddedframework/Thunderhead.framework/Thunderhead index a4db5e3..a92f224 100644 Binary files a/Thunderhead.embeddedframework/Thunderhead.framework/Thunderhead and b/Thunderhead.embeddedframework/Thunderhead.framework/Thunderhead differ diff --git a/Thunderhead.embeddedframework/ThunderheadBundle.bundle/Info.plist b/Thunderhead.embeddedframework/ThunderheadBundle.bundle/Info.plist index e7a777b..2549ba7 100644 Binary files a/Thunderhead.embeddedframework/ThunderheadBundle.bundle/Info.plist and b/Thunderhead.embeddedframework/ThunderheadBundle.bundle/Info.plist differ diff --git a/Thunderhead.podspec b/Thunderhead.podspec index d3be03e..e443bdc 100644 --- a/Thunderhead.podspec +++ b/Thunderhead.podspec @@ -1,15 +1,15 @@ Pod::Spec.new do |s| s.name = 'Thunderhead' - s.version = '2.24.1' + s.version = '3.0.0' s.summary = 'The Thunderhead SDK for iOS, for integrating the ONE Engagement Hub or Interaction Studio into your iOS application.' s.license = { :type => 'Commercial', :text => 'Copyright (c) 2018 Thunderhead One Inc. All rights reserved.' } s.authors = { 'Thunderhead ONE' => 'onesupport@thunderhead.com'} s.homepage = 'https://github.com/thunderheadone/one-sdk-ios' - s.description = 'The Thunderhead SDK for iOS, for integrating ONE or Interaction Studio into your iOS application. The SDK supports iOS 7.1 and above.' + s.description = 'The Thunderhead SDK for iOS, for integrating ONE or Interaction Studio into your iOS application. The SDK supports iOS 8.0 and above.' s.frameworks = ["Accelerate", "CoreLocation", "Foundation", "LocalAuthentication", "CoreGraphics", "MessageUI", "SafariServices", "Security", "SystemConfiguration", "UIKit", "WebKit", "UserNotifications"] s.library = "sqlite3" s.source = { :git => 'https://github.com/thunderheadone/one-sdk-ios.git', :tag => "#{s.version}" } - s.platform = :ios, '7.1' + s.platform = :ios, '8.0' s.preserve_paths = 'Thunderhead.embeddedframework/Thunderhead.framework' s.public_header_files = 'Thunderhead.embeddedframework/Thunderhead.framework/Headers/One.h' s.source_files = 'Thunderhead.embeddedframework/Thunderhead.framework/Headers/One.h'