Skip to content

Commit 41329e8

Browse files
committed
INTENG-7695 make the ignored states more explicit, we don't need historical data
1 parent 34d15d4 commit 41329e8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Branch-SDK/Branch-SDK/Networking/Requests/BranchOpenRequest.m

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,19 @@ - (void)makeRequest:(BNCServerInterface *)serverInterface key:(NSString *)key ca
100100
}
101101

102102
typedef NS_ENUM(NSInteger, BNCUpdateState) {
103-
// Deprecated states, however older SDKs still send them. The server will ignores these values.
104-
// BNCUpdateStateInstall = 0, // App was recently installed.
105-
// BNCUpdateStateNonUpdate = 1, // App was neither newly installed nor updated.
106-
// BNCUpdateStateUpdate = 2, // App was recently updated.
107-
// BNCUpdateStateError = 3, // Error determining update state.
108-
// BNCUpdateStateReinstall = 4, // App was re-installed.
103+
// Values 0-4 are deprecated and ignored by the server
104+
BNCUpdateStateIgnored0 = 0,
105+
BNCUpdateStateIgnored1 = 1,
106+
BNCUpdateStateIgnored2 = 2,
107+
BNCUpdateStateIgnored3 = 3,
108+
BNCUpdateStateIgnored4 = 4,
109109

110-
BNCUpdateStateIgnored = 0, // Values 0-4 are ignored by the server
111-
BNCUpdateStateTuneMigration = 5 // App was migrated from Tune SDK to Branch SDK
110+
// App was migrated from Tune SDK to Branch SDK
111+
BNCUpdateStateTuneMigration = 5
112112
};
113113

114114
+ (NSNumber *)appUpdateState {
115-
BNCUpdateState update_state = BNCUpdateStateIgnored;
115+
BNCUpdateState update_state = BNCUpdateStateIgnored0;
116116
if ([BNCTuneUtility isTuneDataPresent]) {
117117
update_state = BNCUpdateStateTuneMigration;
118118
}

0 commit comments

Comments
 (0)