-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/fix iOS compilation warnings (#28)
* feat/fix iOS compilation warnings https://app.asana.com/0/1175063922135039/1177178857510161 * Fixing incompatible type warning * Reverting the previous check in and conforming to MFMailComposeViewControllerDelegate protocol instead * Update formatting * Revert "Update formatting" This reverts commit 586fd73. * Update formatting * ObjC log amount and currencyName * Removing email functionality * Add logging of amout and currencyName * Remove MFMAilComposeViewController import and protocol conforming as email functionality is not needed anymore * Remove email functionality - swift * Remove support email - ObjC * Also print amount and currencyName - swift * Remove redundant logging * Amout logging update - Obj C * Update AppLovin MAX Demo App - Swift/AppLovin MAX Demo App - Swift/AppLovin/Rewarded/ALDemoRewardedVideosZoneViewController.swift * Update AppLovin MAX Demo App - Swift/AppLovin MAX Demo App - Swift/AppLovin/Rewarded/ALDemoRewardedVideosViewController.swift * No need of print only using NSLog * Revert "No need of print only using NSLog" This reverts commit 3993cce. Co-authored-by: Thomas So <[email protected]>
- Loading branch information
1 parent
b16e926
commit 3c3c4c1
Showing
6 changed files
with
6 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
|
||
#import "ALHomeViewController.h" | ||
#import <AppLovinSDK/AppLovinSDK.h> | ||
#import <MessageUI/MFMailComposeViewController.h> | ||
#import <SafariServices/SafariServices.h> | ||
|
||
@interface ALHomeViewController() | ||
|
@@ -17,7 +16,6 @@ @interface ALHomeViewController() | |
@end | ||
|
||
@implementation ALHomeViewController | ||
static NSString *const kSupportEmail = @"[email protected]"; | ||
static NSString *const kSupportLink = @"https://support.applovin.com/support/home"; | ||
static const NSInteger kRowIndexToHideForPhone = 3; | ||
|
||
|
@@ -99,26 +97,6 @@ - (void)openSupportSite | |
} | ||
} | ||
|
||
- (void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error | ||
{ | ||
switch ( result ) | ||
{ | ||
case MFMailComposeResultSent: | ||
[[[UIAlertView alloc] initWithTitle: @"Email Sent" | ||
message: @"Thank you for your email, we will process it as soon as possible." | ||
delegate: nil | ||
cancelButtonTitle: @"OK" | ||
otherButtonTitles: nil] show]; | ||
case MFMailComposeResultCancelled: | ||
case MFMailComposeResultSaved: | ||
case MFMailComposeResultFailed: | ||
default: | ||
break; | ||
} | ||
|
||
[self dismissViewControllerAnimated: YES completion: nil]; | ||
} | ||
|
||
- (void)addFooterLabel | ||
{ | ||
UILabel *footer = [[UILabel alloc] init]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,8 @@ import AppLovinSDK | |
import MessageUI | ||
import SafariServices | ||
|
||
class ALHomeViewController: UITableViewController, MFMailComposeViewControllerDelegate | ||
class ALHomeViewController: UITableViewController | ||
{ | ||
let kSupportEmail = "[email protected]" | ||
let kSupportLink = "https://support.applovin.com/support/home" | ||
|
||
let kRowIndexToHideForPhones = 3; | ||
|
@@ -131,20 +130,5 @@ class ALHomeViewController: UITableViewController, MFMailComposeViewControllerDe | |
} | ||
} | ||
|
||
func mailComposeController(_ controller: MFMailComposeViewController, didFinishWith result: MFMailComposeResult, error: Error?) | ||
{ | ||
switch ( result.rawValue ) | ||
{ | ||
case ( MFMailComposeResult.sent.rawValue ): | ||
let alertVC = UIAlertController(title: "Email Sent", message: "Thank you for your email, we will process it as soon as possible.", preferredStyle: .alert) | ||
let okAction = UIAlertAction(title: "OK", style: .cancel) | ||
alertVC.addAction(okAction) | ||
present(alertVC, animated: true) | ||
default: | ||
break | ||
} | ||
|
||
dismiss(animated: true, completion: nil) | ||
} | ||
} | ||
|