Skip to content

Commit

Permalink
[Bugix] Method 'setAnonymousId' marked as deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
Pallab Maiti authored Nov 25, 2021
1 parent 4c545f0 commit cca3fe4
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ 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

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:
Expand All @@ -71,7 +71,7 @@ You can also add the RudderStack iOS SDK via Swift Package Mangaer, via one of t

* Enter the package repository (`[email protected]: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)

Expand Down Expand Up @@ -99,7 +99,7 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "[email protected]:rudderlabs/rudder-sdk-ios.git", from: "1.2.0")
.package(url: "[email protected]: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.
Expand Down
4 changes: 2 additions & 2 deletions Rudder.podspec
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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" => "[email protected]" }
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'
Expand Down
4 changes: 2 additions & 2 deletions Rudder.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions Sources/Classes/Public/RSClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions Sources/Classes/RSClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion Sources/Classes/RSConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cca3fe4

Please sign in to comment.