diff --git a/CHANGELOG.md b/CHANGELOG.md index a397afea..ce94bef6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,6 @@ All notable changes to this project will be documented in this file. ### Changed - Bugfix - timestamp as Gregorian Calender. -## Version - 1.2.0 - 2021-11-22 +## Version - 1.2.1 - 2021-11-22 ### Changed - Added Support for Setting device token before SDK initialization as well. diff --git a/Examples/RudderSampleAppObjC/RudderSampleAppObjC/_AppDelegate.m b/Examples/RudderSampleAppObjC/RudderSampleAppObjC/_AppDelegate.m index 274fcd4a..cddcaa20 100644 --- a/Examples/RudderSampleAppObjC/RudderSampleAppObjC/_AppDelegate.m +++ b/Examples/RudderSampleAppObjC/RudderSampleAppObjC/_AppDelegate.m @@ -66,7 +66,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( [[RSClient sharedInstance] track:@"simple_track_event4"]; [[RSClient sharedInstance] optOut:NO]; - [RSClient putAnonymousId:@"AnonymousId3"]; + [RSClient setAnonymousId:@"AnonymousId3"]; [RSClient putDeviceToken:@"DeviceToken3"]; [[[RSClient sharedInstance] getContext] putAdvertisementId:@"AdvertisementId3"]; [[RSClient sharedInstance] track:@"simple_track_event4"]; diff --git a/README.md b/README.md index 3894a886..1ff7475b 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ The iOS SDK is available through [**CocoaPods**](https://cocoapods.org), [**Cart To install the SDK, simply add the following line to your Podfile: ```xcode -pod 'Rudder', '1.2.0' +pod 'Rudder', '1.2.1' ``` ### Carthage @@ -47,7 +47,7 @@ pod 'Rudder', '1.2.0' For Carthage support, add the following line to your `Cartfile`: ```xcode -github "rudderlabs/rudder-sdk-ios" "v1.2.0" +github "rudderlabs/rudder-sdk-ios" "v1.2.1" ``` > Remember to include the following code in all `.m` and `.h` files where you want to refer to or use the RudderStack SDK classes, as shown: @@ -71,7 +71,7 @@ You can also add the RudderStack iOS SDK via Swift Package Mangaer, via one of t * Enter the package repository (`git@github.com:rudderlabs/rudder-sdk-ios.git`) in the search bar. -* In **Dependency Rule**, select **Up to Next Major Version** and enter `1.2.0` as the value, as shown: +* In **Dependency Rule**, select **Up to Next Major Version** and enter `1.2.1` as the value, as shown: ![Setting dependency](https://user-images.githubusercontent.com/59817155/140903050-842b2418-5e47-4b8f-a43a-6eb4ad1a71c9.png) @@ -99,7 +99,7 @@ let package = Package( ], dependencies: [ // Dependencies declare other packages that this package depends on. - .package(url: "git@github.com:rudderlabs/rudder-sdk-ios.git", from: "1.2.0") + .package(url: "git@github.com:rudderlabs/rudder-sdk-ios.git", from: "1.2.1") ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. diff --git a/Rudder.podspec b/Rudder.podspec index 8a5a49d5..1fe370ae 100644 --- a/Rudder.podspec +++ b/Rudder.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Rudder' - s.version = "1.2.0" + s.version = "1.2.1" s.summary = "Privacy and Security focused Segment-alternative. iOS and tvOS SDK" s.description = <<-DESC Rudder is a platform for collecting, storing and routing customer event data to dozens of tools. Rudder is open-source, can run in your cloud environment (AWS, GCP, Azure or even your data-centre) and provides a powerful transformation framework to process your event data on the fly. @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.homepage = "https://github.com/rudderlabs/rudder-sdk-ios" s.license = { :type => "Apache", :file => "LICENSE" } s.author = { "Rudderstack" => "arnab@rudderlabs.com" } - s.source = { :git => "https://github.com/rudderlabs/rudder-sdk-ios.git", :tag => "v1.2.0" } + s.source = { :git => "https://github.com/rudderlabs/rudder-sdk-ios.git", :tag => "v1.2.1" } s.ios.deployment_target = '9.0' s.tvos.deployment_target = '9.0' diff --git a/Rudder.xcodeproj/project.pbxproj b/Rudder.xcodeproj/project.pbxproj index e55b78e7..28bd6b90 100644 --- a/Rudder.xcodeproj/project.pbxproj +++ b/Rudder.xcodeproj/project.pbxproj @@ -1002,7 +1002,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.1.5; + MARKETING_VERSION = 1.2.1; PRODUCT_BUNDLE_IDENTIFIER = com.rudderstack.Rudder; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; @@ -1035,7 +1035,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.1.5; + MARKETING_VERSION = 1.2.1; PRODUCT_BUNDLE_IDENTIFIER = com.rudderstack.Rudder; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; diff --git a/Sources/Classes/Public/RSClient.h b/Sources/Classes/Public/RSClient.h index f886791c..1e7bd39f 100644 --- a/Sources/Classes/Public/RSClient.h +++ b/Sources/Classes/Public/RSClient.h @@ -78,6 +78,8 @@ NS_ASSUME_NONNULL_BEGIN + (void) putAnonymousId: (NSString *_Nonnull) anonymousId; + (void) putDeviceToken: (NSString *_Nonnull) deviceToken; ++ (void) setAnonymousId: (NSString *__nullable) anonymousId __attribute((deprecated("Discontinuing support. Use putAnonymousId method instead.")));; + @end NS_ASSUME_NONNULL_END diff --git a/Sources/Classes/RSClient.m b/Sources/Classes/RSClient.m index 5bce8c0f..61fe7813 100644 --- a/Sources/Classes/RSClient.m +++ b/Sources/Classes/RSClient.m @@ -370,6 +370,10 @@ + (RSOption*) getDefaultOptions { return _defaultOptions; } ++ (void)setAnonymousId: (NSString *__nullable) anonymousId { + [self putAnonymousId:anonymousId]; +} + + (void)putAnonymousId:(NSString *_Nonnull)anonymousId { if(anonymousId != nil && [anonymousId length] != 0) { RSPreferenceManager *preferenceManager = [RSPreferenceManager getInstance]; diff --git a/Sources/Classes/RSConstants.m b/Sources/Classes/RSConstants.m index 54faf611..3b120117 100644 --- a/Sources/Classes/RSConstants.m +++ b/Sources/Classes/RSConstants.m @@ -17,5 +17,5 @@ @implementation RSConstants NSString *const RSControlPlaneUrl = @"https://api.rudderlabs.com"; bool const RSTrackLifeCycleEvents = YES; bool const RSRecordScreenViews = NO; -NSString *const RS_VERSION = @"1.2.0"; +NSString *const RS_VERSION = @"1.2.1"; @end