Skip to content

Commit

Permalink
Merge pull request #23 from PsychoTea/develop
Browse files Browse the repository at this point in the history
disable update check
  • Loading branch information
PsychoTea authored Aug 7, 2018
2 parents 7043da7 + 672c4a5 commit 28736f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Meridian/Meridian/views/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ @interface ViewController ()
@property (weak, nonatomic) IBOutlet UILabel *versionLabel;
@end

NSString *Version = @"Meridian: v0.9-001 Pre-Release";
NSString *Version = @"Meridian: v0.9-002 Pre-Release";
NSOperatingSystemVersion osVersion;

id thisClass;
Expand Down Expand Up @@ -50,7 +50,7 @@ - (void)viewDidLoad {

jailbreak_has_run = check_for_jailbreak();

[self doUpdateCheck];
// [self doUpdateCheck];

// Log current device and version info
osVersion = [[NSProcessInfo processInfo] operatingSystemVersion];
Expand Down Expand Up @@ -238,6 +238,7 @@ - (void)exploitFailed {
- (void)doUpdateCheck {
// skip the version check if we're running an internal build
if ([Version containsString:@"Internal"]) {
NSLog(@"internal build detected, skipping");
return;
}

Expand All @@ -251,6 +252,7 @@ - (void)doUpdateCheck {
}

NSString *response = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
NSLog(@"got response '%@', Version '%@'", response, Version);
if (response != Version) {
[self doUpdatePopup:response];
}
Expand Down

0 comments on commit 28736f3

Please sign in to comment.