clear updates on new binary

This commit is contained in:
Geoffrey Goh
2015-12-22 12:13:32 -08:00
parent 35945e9fba
commit a2cbdab91b
8 changed files with 34 additions and 33 deletions

View File

@@ -505,12 +505,10 @@ NSString * const UnzippedFolderName = @"unzipped";
}
}
+ (void)clearTestUpdates
+ (void)clearUpdates
{
if ([CodePush isUsingTestConfiguration]) {
[[NSFileManager defaultManager] removeItemAtPath:[self getCodePushPath] error:nil];
[[NSFileManager defaultManager] removeItemAtPath:[self getStatusFilePath] error:nil];
}
[[NSFileManager defaultManager] removeItemAtPath:[self getCodePushPath] error:nil];
[[NSFileManager defaultManager] removeItemAtPath:[self getStatusFilePath] error:nil];
}
@end