Skip to content

Commit 1bf32ce

Browse files
committed
remove some link creation methods
1 parent a824e06 commit 1bf32ce

File tree

6 files changed

+0
-122
lines changed

6 files changed

+0
-122
lines changed

Branch-SDK/Branch-SDK/Branch.h

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -793,44 +793,6 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
793793
*/
794794
- (NSString *)getShortUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andAlias:(NSString *)alias andChannel:(NSString *)channel andFeature:(NSString *)feature andStage:(NSString *)stage andMatchDuration:(NSUInteger)duration;
795795

796-
/**
797-
Get a short url with specified params and channel. The usage type will default to unlimited. Content Urls use the feature `BRANCH_FEATURE_TAG_SHARE`.
798-
799-
@param params Dictionary of parameters to include in the link.
800-
@param channel The channel for the link. Examples could be Facebook, Twitter, SMS, etc, depending on where it will be shared.
801-
@warning This method makes a synchronous url request.
802-
*/
803-
- (NSString *)getContentUrlWithParams:(NSDictionary *)params andChannel:(NSString *)channel;
804-
805-
/**
806-
Get a short url with specified params, tags, and channel. The usage type will default to unlimited. Content Urls use the feature `BRANCH_FEATURE_TAG_SHARE`.
807-
808-
@param params Dictionary of parameters to include in the link.
809-
@param tags An array of tags to associate with this link, useful for tracking.
810-
@param channel The channel for the link. Examples could be Facebook, Twitter, SMS, etc, depending on where it will be shared.
811-
@warning This method makes a synchronous url request.
812-
*/
813-
- (NSString *)getContentUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andChannel:(NSString *)channel;
814-
815-
/**
816-
Get a short url with specified params and channel. The usage type will default to unlimited. Referral Urls use the feature `BRANCH_FEATURE_TAG_REFERRAL`.
817-
818-
@param params Dictionary of parameters to include in the link.
819-
@param channel The channel for the link. Examples could be Facebook, Twitter, SMS, etc, depending on where it will be shared.
820-
@warning This method makes a synchronous url request.
821-
*/
822-
- (NSString *)getReferralUrlWithParams:(NSDictionary *)params andChannel:(NSString *)channel;
823-
824-
/**
825-
Get a short url with specified params, tags, and channel. The usage type will default to unlimited. Referral Urls use the feature `BRANCH_FEATURE_TAG_REFERRAL`.
826-
827-
@param params Dictionary of parameters to include in the link.
828-
@param tags An array of tags to associate with this link, useful for tracking.
829-
@param channel The channel for the link. Examples could be Facebook, Twitter, SMS, etc, depending on where it will be shared.
830-
@warning This method makes a synchronous url request.
831-
*/
832-
- (NSString *)getReferralUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andChannel:(NSString *)channel;
833-
834796
#pragma mark - Long Url generation
835797

836798
///--------------------------
@@ -1041,44 +1003,6 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
10411003
*/
10421004
- (void)getShortUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andAlias:(NSString *)alias andMatchDuration:(NSUInteger)duration andChannel:(NSString *)channel andFeature:(NSString *)feature andStage:(NSString *)stage andCallback:(callbackWithUrl)callback;
10431005

1044-
/**
1045-
Get a short url with specified params, tags, and channel. The usage type will default to unlimited. Content Urls use the feature `BRANCH_FEATURE_TAG_SHARE`.
1046-
1047-
@param params Dictionary of parameters to include in the link.
1048-
@param channel The channel for the link. Examples could be Facebook, Twitter, SMS, etc, depending on where it will be shared.
1049-
@param callback Callback called with the url.
1050-
*/
1051-
- (void)getContentUrlWithParams:(NSDictionary *)params andChannel:(NSString *)channel andCallback:(callbackWithUrl)callback;
1052-
1053-
/**
1054-
Get a short url with specified params, tags, and channel. The usage type will default to unlimited. Content Urls use the feature `BRANCH_FEATURE_TAG_SHARE`.
1055-
1056-
@param params Dictionary of parameters to include in the link.
1057-
@param tags An array of tags to associate with this link, useful for tracking.
1058-
@param channel The channel for the link. Examples could be Facebook, Twitter, SMS, etc, depending on where it will be shared.
1059-
@param callback Callback called with the url.
1060-
*/
1061-
- (void)getContentUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andChannel:(NSString *)channel andCallback:(callbackWithUrl)callback;
1062-
1063-
/**
1064-
Get a short url with specified params, tags, and channel. The usage type will default to unlimited. Referral Urls use the feature `BRANCH_FEATURE_TAG_REFERRAL`.
1065-
1066-
@param params Dictionary of parameters to include in the link.
1067-
@param channel The channel for the link. Examples could be Facebook, Twitter, SMS, etc, depending on where it will be shared.
1068-
@param callback Callback called with the url.
1069-
*/
1070-
- (void)getReferralUrlWithParams:(NSDictionary *)params andChannel:(NSString *)channel andCallback:(callbackWithUrl)callback;
1071-
1072-
/**
1073-
Get a short url with specified params, tags, and channel. The usage type will default to unlimited. Referral Urls use the feature `BRANCH_FEATURE_TAG_REFERRAL`.
1074-
1075-
@param params Dictionary of parameters to include in the link.
1076-
@param tags An array of tags to associate with this link, useful for tracking.
1077-
@param channel The channel for the link. Examples could be Facebook, Twitter, SMS, etc, depending on where it will be shared.
1078-
@param callback Callback called with the url.
1079-
*/
1080-
- (void)getReferralUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andChannel:(NSString *)channel andCallback:(callbackWithUrl)callback;
1081-
10821006
- (void)getSpotlightUrlWithParams:(NSDictionary *)params callback:(callbackWithParams)callback;
10831007

10841008
#pragma mark - Content Discovery methods

Branch-SDK/Branch-SDK/Branch.m

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -681,25 +681,6 @@ - (BranchLinkProperties *)getLatestReferringBranchLinkProperties {
681681
return nil;
682682
}
683683

684-
#pragma mark - ContentUrl methods
685-
686-
- (NSString *)getContentUrlWithParams:(NSDictionary *)params andChannel:(NSString *)channel {
687-
return [self generateShortUrl:nil andAlias:nil andType:BranchLinkTypeUnlimitedUse andMatchDuration:0 andChannel:channel andFeature:BRANCH_FEATURE_TAG_SHARE andStage:nil andParams:params ignoreUAString:nil forceLinkCreation:NO];
688-
}
689-
690-
- (NSString *)getContentUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andChannel:(NSString *)channel {
691-
return [self generateShortUrl:tags andAlias:nil andType:BranchLinkTypeUnlimitedUse andMatchDuration:0 andChannel:channel andFeature:BRANCH_FEATURE_TAG_SHARE andStage:nil andParams:params ignoreUAString:nil forceLinkCreation:NO];
692-
}
693-
694-
- (void)getContentUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andChannel:(NSString *)channel andCallback:(callbackWithUrl)callback {
695-
[self generateShortUrl:tags andAlias:nil andType:BranchLinkTypeUnlimitedUse andMatchDuration:0 andChannel:channel andFeature:BRANCH_FEATURE_TAG_SHARE andStage:nil andParams:params andCallback:callback];
696-
}
697-
698-
- (void)getContentUrlWithParams:(NSDictionary *)params andChannel:(NSString *)channel andCallback:(callbackWithUrl)callback {
699-
[self generateShortUrl:nil andAlias:nil andType:BranchLinkTypeUnlimitedUse andMatchDuration:0 andChannel:channel andFeature:BRANCH_FEATURE_TAG_SHARE andStage:nil andParams:params andCallback:callback];
700-
}
701-
702-
703684
#pragma mark - ShortUrl methods
704685

705686
- (NSString *)getShortURL {
@@ -893,23 +874,6 @@ - (void)createDiscoverableContentWithTitle:(NSString *)title description:(NSStri
893874
[self.contentDiscoveryManager indexContentWithTitle:title description:description publiclyIndexable:publiclyIndexable type:type thumbnailUrl:thumbnailUrl keywords:keywords userInfo:linkParams expirationDate:expirationDate callback:nil spotlightCallback:spotlightCallback];
894875
}
895876

896-
#pragma mark - Referral methods
897-
898-
- (NSString *)getReferralUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andChannel:(NSString *)channel {
899-
return [self generateShortUrl:tags andAlias:nil andType:BranchLinkTypeUnlimitedUse andMatchDuration:0 andChannel:channel andFeature:BRANCH_FEATURE_TAG_REFERRAL andStage:nil andParams:params ignoreUAString:nil forceLinkCreation:NO];
900-
}
901-
902-
- (NSString *)getReferralUrlWithParams:(NSDictionary *)params andChannel:(NSString *)channel {
903-
return [self generateShortUrl:nil andAlias:nil andType:BranchLinkTypeUnlimitedUse andMatchDuration:0 andChannel:channel andFeature:BRANCH_FEATURE_TAG_REFERRAL andStage:nil andParams:params ignoreUAString:nil forceLinkCreation:NO];
904-
}
905-
906-
- (void)getReferralUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andChannel:(NSString *)channel andCallback:(callbackWithUrl)callback {
907-
[self generateShortUrl:tags andAlias:nil andType:BranchLinkTypeUnlimitedUse andMatchDuration:0 andChannel:channel andFeature:BRANCH_FEATURE_TAG_REFERRAL andStage:nil andParams:params andCallback:callback];
908-
}
909-
910-
- (void)getReferralUrlWithParams:(NSDictionary *)params andChannel:(NSString *)channel andCallback:(callbackWithUrl)callback {
911-
[self generateShortUrl:nil andAlias:nil andType:BranchLinkTypeUnlimitedUse andMatchDuration:0 andChannel:channel andFeature:BRANCH_FEATURE_TAG_REFERRAL andStage:nil andParams:params andCallback:callback];
912-
}
913877

914878
#pragma mark - Private methods
915879

Branch-SDK/Branch-SDK/BranchConstants.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ extern NSString * const BRANCH_REQUEST_KEY_HARDWARE_ID_TYPE;
4040
extern NSString * const BRANCH_REQUEST_KEY_IS_HARDWARE_ID_REAL;
4141
extern NSString * const BRANCH_REQUEST_KEY_IOS_VENDOR_ID;
4242
extern NSString * const BRANCH_REQUEST_KEY_AD_TRACKING_ENABLED;
43-
extern NSString * const BRANCH_REQUEST_KEY_IS_REFERRABLE;
4443
extern NSString * const BRANCH_REQUEST_KEY_DEBUG;
4544
extern NSString * const BRANCH_REQUEST_KEY_BUNDLE_ID;
4645
extern NSString * const BRANCH_REQUEST_KEY_TEAM_ID;

Branch-SDK/Branch-SDK/BranchConstants.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
NSString * const BRANCH_REQUEST_KEY_IS_HARDWARE_ID_REAL = @"is_hardware_id_real";
4141
NSString * const BRANCH_REQUEST_KEY_IOS_VENDOR_ID = @"ios_vendor_id";
4242
NSString * const BRANCH_REQUEST_KEY_AD_TRACKING_ENABLED = @"ad_tracking_enabled";
43-
NSString * const BRANCH_REQUEST_KEY_IS_REFERRABLE = @"is_referrable";
4443
NSString * const BRANCH_REQUEST_KEY_DEBUG = @"debug";
4544
NSString * const BRANCH_REQUEST_KEY_BUNDLE_ID = @"ios_bundle_id";
4645
NSString * const BRANCH_REQUEST_KEY_TEAM_ID = @"ios_team_id";

Branch-TestBed/Branch-SDK-Tests/BranchInstallRequestTests.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ - (void)setUp {
3030
- (void)testRequestBody {
3131
NSString * const HARDWARE_ID = @"foo-hardware-id";
3232
NSNumber * const AD_TRACKING_SAFE = @YES;
33-
NSNumber * const IS_REFERRABLE = @YES;
3433
NSNumber * const IS_DEBUG = @YES;
3534
NSString * const BUNDLE_ID = @"foo-bundle-id";
3635
NSString * const APP_VERSION = @"foo-app-version";
@@ -70,7 +69,6 @@ - (void)testRequestBody {
7069
BRANCH_REQUEST_KEY_APP_VERSION: APP_VERSION,
7170
BRANCH_REQUEST_KEY_DEBUG: IS_DEBUG,
7271
BRANCH_REQUEST_KEY_BUNDLE_ID: BUNDLE_ID,
73-
BRANCH_REQUEST_KEY_IS_REFERRABLE: IS_REFERRABLE,
7472
BRANCH_REQUEST_KEY_LINK_IDENTIFIER: LINK_IDENTIFIER,
7573
BRANCH_REQUEST_KEY_UPDATE: UPDATE_STATE,
7674
BRANCH_REQUEST_KEY_URI_SCHEME: URI_SCHEME,

Branch-TestBed/Branch-SDK-Tests/BranchOpenRequestTests.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ - (void)setUp {
3232
- (void)testRequestBodyWithNoFingerprintID {
3333
NSString * const HARDWARE_ID = @"foo-hardware-id";
3434
NSNumber * const AD_TRACKING_SAFE = @YES;
35-
NSNumber * const IS_REFERRABLE = @YES;
3635
NSNumber * const IS_DEBUG = @YES;
3736
NSString * const BUNDLE_ID = @"foo-bundle-id";
3837
NSString * const APP_VERSION = @"foo-app-version";
@@ -54,7 +53,6 @@ - (void)testRequestBodyWithNoFingerprintID {
5453
[[[systemObserverMock stub] andReturn:URI_SCHEME] getDefaultUriScheme];
5554
[[[systemObserverMock stub] andReturn:UPDATE_STATE] getUpdateState];
5655

57-
preferenceHelper.isReferrable = [IS_REFERRABLE boolValue];
5856
preferenceHelper.isDebug = [IS_DEBUG boolValue];
5957
preferenceHelper.linkClickIdentifier = LINK_IDENTIFIER;
6058
preferenceHelper.deviceFingerprintID = nil;
@@ -65,7 +63,6 @@ - (void)testRequestBodyWithNoFingerprintID {
6563
BRANCH_REQUEST_KEY_DEBUG: IS_DEBUG,
6664
BRANCH_REQUEST_KEY_BRANCH_IDENTITY: IDENTITY_ID,
6765
BRANCH_REQUEST_KEY_BUNDLE_ID: BUNDLE_ID,
68-
BRANCH_REQUEST_KEY_IS_REFERRABLE: IS_REFERRABLE,
6966
BRANCH_REQUEST_KEY_LINK_IDENTIFIER: LINK_IDENTIFIER,
7067
BRANCH_REQUEST_KEY_UPDATE: UPDATE_STATE,
7168
BRANCH_REQUEST_KEY_URI_SCHEME: URI_SCHEME
@@ -83,7 +80,6 @@ - (void)testRequestBodyWithNoFingerprintID {
8380
- (void)testRequestBodyWithFingerprintID {
8481
NSString * const HARDWARE_ID = @"foo-hardware-id";
8582
NSNumber * const AD_TRACKING_SAFE = @YES;
86-
NSNumber * const IS_REFERRABLE = @YES;
8783
NSNumber * const IS_DEBUG = @YES;
8884
NSString * const BUNDLE_ID = @"foo-bundle-id";
8985
NSString * const APP_VERSION = @"foo-app-version";
@@ -106,7 +102,6 @@ - (void)testRequestBodyWithFingerprintID {
106102
[[[systemObserverMock stub] andReturn:URI_SCHEME] getDefaultUriScheme];
107103
[[[systemObserverMock stub] andReturn:UPDATE_STATE] getUpdateState];
108104

109-
preferenceHelper.isReferrable = [IS_REFERRABLE boolValue];
110105
preferenceHelper.explicitlyRequestedReferrable = YES;
111106
preferenceHelper.isDebug = [IS_DEBUG boolValue];
112107
preferenceHelper.linkClickIdentifier = LINK_IDENTIFIER;
@@ -118,7 +113,6 @@ - (void)testRequestBodyWithFingerprintID {
118113
BRANCH_REQUEST_KEY_DEBUG: IS_DEBUG,
119114
BRANCH_REQUEST_KEY_BRANCH_IDENTITY: IDENTITY_ID,
120115
BRANCH_REQUEST_KEY_BUNDLE_ID: BUNDLE_ID,
121-
BRANCH_REQUEST_KEY_IS_REFERRABLE: IS_REFERRABLE,
122116
BRANCH_REQUEST_KEY_DEVICE_FINGERPRINT_ID: FINGERPRINT_ID,
123117
BRANCH_REQUEST_KEY_LINK_IDENTIFIER: LINK_IDENTIFIER,
124118
BRANCH_REQUEST_KEY_UPDATE: UPDATE_STATE,

0 commit comments

Comments
 (0)