Add object detection, tracking, mobile notifications, and search to any security camera.
remove unused stuff
roryclearaf05246642c7
diff --git a/ios/clearcam/SettingsViewController.m b/ios/clearcam/SettingsViewController.mindex f80cbbf..e34b557 100644--- a/ios/clearcam/SettingsViewController.m+++ b/ios/clearcam/SettingsViewController.m@@ -924,56 +924,6 @@}}-- (void)handleUpgradeTap {- // Create and show a loading spinner- UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleLarge];- spinner.translatesAutoresizingMaskIntoConstraints = NO;- spinner.color = UIColor.whiteColor;- UIView *overlay = [self.view viewWithTag:999];- [overlay addSubview:spinner];-- // Center the spinner in the overlay- [NSLayoutConstraint activateConstraints:@[- [spinner.centerXAnchor constraintEqualToAnchor:overlay.centerXAnchor],- [spinner.centerYAnchor constraintEqualToAnchor:overlay.centerYAnchor]- ]];-- [spinner startAnimating];-- // Disable user interaction on the overlay to prevent multiple taps- overlay.userInteractionEnabled = NO;-- // Fetch and initiate the purchase- [[StoreManager sharedInstance] fetchAndPurchaseProductWithCompletion:^(BOOL success, NSError * _Nullable error) {- dispatch_async(dispatch_get_main_queue(), ^{- // Stop the spinner and re-enable interaction- [spinner stopAnimating];- [spinner removeFromSuperview];- overlay.userInteractionEnabled = YES;-- // Dismiss the upgrade popup- [self dismissUpgradePopup];-- if (!success && error) {- // Show error alert if purchase failed- UIAlertController *alert = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"purchase_failed", @"Title for purchase failed alert")- message:error.localizedDescription- preferredStyle:UIAlertControllerStyleAlert];- [alert addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"ok", @"OK button") style:UIAlertActionStyleDefault handler:nil]];- [self presentViewController:alert animated:YES completion:nil];- }-- // Reload table to reflect subscription status- [self.tableView reloadData];- });- }];-}--- (void)dismissUpgradePopup {- UIView *overlay = [self.view viewWithTag:999];- [overlay removeFromSuperview];-}-- (void)useOwnnotificationServerSwitchToggled:(UISwitch *)sender {self.useOwnServerEnabled = sender.on;NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];