Add object detection, tracking, mobile notifications, and search to any security camera.
delete aes file
roryclear72615adafbe1
diff --git a/clearcam/SceneDelegate.m b/clearcam/SceneDelegate.mindex e09ad71..82a7a2d 100644--- a/clearcam/SceneDelegate.m+++ b/clearcam/SceneDelegate.m@@ -178,6 +178,16 @@// Open the .jpg file in the system's photo viewer[self openImageInPhotoViewer:jpgFileURL];++ // Delete the .aes file after successful decryption and saving+ NSError *deleteError = nil;+ [fileManager removeItemAtURL:aesFileURL error:&deleteError];+ if (deleteError) {+ NSLog(@"Failed to delete .aes file: %@", deleteError.localizedDescription);+ [self showErrorAlertWithMessage:[NSString stringWithFormat:@"Failed to delete the original file: %@", deleteError.localizedDescription]];+ } else {+ NSLog(@"Successfully deleted .aes file: %@", aesFileURL.path);+ }}];if (coordinationError) {diff --git a/clearcam/SceneState.m b/clearcam/SceneState.mindex b96dedd..745d6b5 100644--- a/clearcam/SceneState.m+++ b/clearcam/SceneState.m@@ -185,7 +185,7 @@}- (void)sendEmailWithImageAtPath:(NSString *)imagePath encryptImage:(BOOL)encryptImage {- NSString *server = @"http://192.168.18.133:8080";+ NSString *server = @"http://192.168.1.100:8080";NSString *endpoint = @"/";NSString *toEmail = [[NSUserDefaults standardUserDefaults] stringForKey:@"user_email"];if (!toEmail) return;