@@ -100,19 +100,19 @@ - (void)makeRequest:(BNCServerInterface *)serverInterface key:(NSString *)key ca
100100}
101101
102102typedef 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