Skip to content

Commit

Permalink
Merge branch 'main-replica-for-cdp' into shahroz/cdp-native-refactor-…
Browse files Browse the repository at this point in the history
…base
  • Loading branch information
Shahroz16 authored Nov 27, 2023
2 parents 1cc25c1 + f68661c commit 90d8302
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 8 deletions.
8 changes: 8 additions & 0 deletions Apps/CocoaPods-FCM/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ target 'test cocoapods' do
pod 'CustomerIOMessagingInApp', :path => sdk_local_path
pod 'CustomerIOMessagingPushFCM', :path => sdk_local_path

# Adding APN for internal testing, only. Code from this pod is not used at runtime.
# We need to confirm that cocoapods customers can compile their apps with this pod installed.
pod 'CustomerIOMessagingPushAPN', :path => sdk_local_path

# The "CustomerIOMessagingPushFCM" SDK installs the FCM SDK for you, defaulting to the latest version.
# If your app needs to use a specific version of the FCM SDK, you can add the line below to your app's Podfile
# and the version you specify will override the version in the "CustomerIOMessagingPushFCM" SDK.
Expand All @@ -28,4 +32,8 @@ target 'Rich Push Notification Service Extension' do
pod 'CustomerIOTracking', :path => sdk_local_path
pod 'CustomerIOMessagingPush', :path => sdk_local_path
pod 'CustomerIOMessagingPushFCM', :path => sdk_local_path

# Adding APN for internal testing, only. Code from this pod is not used at runtime.
# We need to confirm that cocoapods customers can compile their apps with this pod installed.
pod 'CustomerIOMessagingPushAPN', :path => sdk_local_path
end
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [2.10.1](https://github.com/customerio/customerio-ios/compare/2.10.0...2.10.1) (2023-11-22)


### Bug Fixes

* cocoapods APN customers app not compiling ([#414](https://github.com/customerio/customerio-ios/issues/414)) ([e7aaa23](https://github.com/customerio/customerio-ios/commit/e7aaa23320bde6fff8aa35a1def9c6ba05602c46))

## [2.10.0](https://github.com/customerio/customerio-ios/compare/2.9.2...2.10.0) (2023-11-08)


Expand Down
2 changes: 1 addition & 1 deletion CustomerIO.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Pod::Spec.new do |spec|
spec.name = "CustomerIO"
spec.version = "2.10.0" # Don't modify this line - it's automatically updated
spec.version = "2.10.1" # Don't modify this line - it's automatically updated
spec.summary = "Official Customer.io SDK for iOS."
spec.homepage = "https://github.com/customerio/customerio-ios"
spec.documentation_url = 'https://customer.io/docs/sdk/ios/'
Expand Down
2 changes: 1 addition & 1 deletion CustomerIOCommon.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "CustomerIOCommon"
spec.version = "2.10.0" # Don't modify this line - it's automatically updated
spec.version = "2.10.1" # Don't modify this line - it's automatically updated
spec.summary = "Official Customer.io SDK for iOS."
spec.homepage = "https://github.com/customerio/customerio-ios"
spec.documentation_url = 'https://customer.io/docs/sdk/ios/'
Expand Down
2 changes: 1 addition & 1 deletion CustomerIOMessagingInApp.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "CustomerIOMessagingInApp"
spec.version = "2.10.0" # Don't modify this line - it's automatically updated
spec.version = "2.10.1" # Don't modify this line - it's automatically updated
spec.summary = "Official Customer.io SDK for iOS."
spec.homepage = "https://github.com/customerio/customerio-ios"
spec.documentation_url = 'https://customer.io/docs/sdk/ios/'
Expand Down
2 changes: 1 addition & 1 deletion CustomerIOMessagingPush.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "CustomerIOMessagingPush"
spec.version = "2.10.0" # Don't modify this line - it's automatically updated
spec.version = "2.10.1" # Don't modify this line - it's automatically updated
spec.summary = "Official Customer.io SDK for iOS."
spec.homepage = "https://github.com/customerio/customerio-ios"
spec.documentation_url = 'https://customer.io/docs/sdk/ios/'
Expand Down
2 changes: 1 addition & 1 deletion CustomerIOMessagingPushAPN.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "CustomerIOMessagingPushAPN"
spec.version = "2.10.0" # Don't modify this line - it's automatically updated
spec.version = "2.10.1" # Don't modify this line - it's automatically updated
spec.summary = "Official Customer.io SDK for iOS."
spec.homepage = "https://github.com/customerio/customerio-ios"
spec.documentation_url = 'https://customer.io/docs/sdk/ios/'
Expand Down
2 changes: 1 addition & 1 deletion CustomerIOMessagingPushFCM.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "CustomerIOMessagingPushFCM"
spec.version = "2.10.0" # Don't modify this line - it's automatically updated
spec.version = "2.10.1" # Don't modify this line - it's automatically updated
spec.summary = "Official Customer.io SDK for iOS."
spec.homepage = "https://github.com/customerio/customerio-ios"
spec.documentation_url = 'https://customer.io/docs/sdk/ios/'
Expand Down
2 changes: 1 addition & 1 deletion CustomerIOTracking.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "CustomerIOTracking"
spec.version = "2.10.0" # Don't modify this line - it's automatically updated
spec.version = "2.10.1" # Don't modify this line - it's automatically updated
spec.summary = "Official Customer.io SDK for iOS."
spec.homepage = "https://github.com/customerio/customerio-ios"
spec.documentation_url = 'https://customer.io/docs/sdk/ios/'
Expand Down
2 changes: 1 addition & 1 deletion Sources/Common/Version.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import Foundation
Keep this file as small as possible to make the automated updating script stable and easy to use.
*/
public enum SdkVersion {
public static let version: String = "2.10.0"
public static let version: String = "2.10.1"
}
2 changes: 2 additions & 0 deletions Sources/MessagingPushAPN/MessagingPushAPN+PushConfigs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import Foundation
import UIKit

extension MessagingPushAPN {
@available(iOSApplicationExtension, unavailable)
func setupAutoFetchDeviceToken() {
// Swizzle method `didRegisterForRemoteNotificationsWithDeviceToken`
swizzleDidRegisterForRemoteNotifications()
// Register for push notifications to invoke`didRegisterForRemoteNotificationsWithDeviceToken` method
UIApplication.shared.registerForRemoteNotifications()
}

@available(iOSApplicationExtension, unavailable)
private func swizzleDidRegisterForRemoteNotifications() {
let appDelegate = UIApplication.shared.delegate
let appDelegateClass: AnyClass? = object_getClass(appDelegate)
Expand Down

0 comments on commit 90d8302

Please sign in to comment.