Skip to content

Commit

Permalink
fix: 修复tracker的头文件引用到autotracker的问题,去除部分已经去掉的头文件引用
Browse files Browse the repository at this point in the history
  • Loading branch information
CaicaiNo committed Aug 31, 2020
1 parent efdfdf7 commit fe92a23
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
3 changes: 0 additions & 3 deletions GrowingTracker/Helpers/GrowingHelpers.h
Expand Up @@ -20,16 +20,13 @@

#import "NSData+GrowingHelper.h"
#import "NSObject+GrowingIvarHelper.h"
#import "NSNumber+GrowingHelper.h"
#import "NSDictionary+GrowingHelper.h"
#import "UIControl+GrowingHelper.h"
#import "UIImage+GrowingHelper.h"
#import "NSString+GrowingHelper.h"
#import "UIView+GrowingHelper.h"
#import "NSObject+GrowingHelper.h"
#import "NSArray+GrowingHelper.h"
#import "UIWindow+GrowingHelper.h"
#import "UIApplication+GrowingHelper.h"
#import "UITextField+GrowingHelper.h"
#import "NSURL+GrowingHelper.h"
#import "GrowingDispatchManager.h"
13 changes: 9 additions & 4 deletions GrowingTracker/Menu/GrowingAlert.m
Expand Up @@ -17,7 +17,7 @@
// limitations under the License.

#import "GrowingAlert.h"

#import "GrowingCocoaLumberjack.h"
typedef NS_ENUM(NSUInteger, GrowingAlertError) {
alertControllerNil = 0,
popoverNotSet = 1,
Expand Down Expand Up @@ -195,9 +195,14 @@ - (void)addDestructiveWithTitle:(NSString *)title

- (void)showAlertAnimated:(BOOL)animated {
UIViewController *sourceViewController = [[UIApplication sharedApplication] growing_topMostViewController];
[sourceViewController presentViewController:self.alertController
animated:YES
completion:nil];
if (sourceViewController) {
[sourceViewController presentViewController:self.alertController
animated:YES
completion:nil];
}else {
GIOLogError(@"Alert show Error : Window Top ViewController is not find");
}

}

@end
Expand Down
13 changes: 7 additions & 6 deletions GrowingTracker/Public/GrowingTracker.m
Expand Up @@ -19,6 +19,7 @@


#import "GrowingTracker.h"
#import "GrowingAlert.h"
#import "GrowingInstance.h"
#import "GrowingCustomField.h"
#import "GrowingEventManager.h"
Expand All @@ -33,6 +34,7 @@
#import "GrowingBroadcaster.h"
#import "GrowingWSLoggerFormat.h"


@import CoreLocation;

static NSString* const kGrowingVersion = @"3.0.0";
Expand Down Expand Up @@ -77,12 +79,11 @@ + (void)startWithConfiguration:(GrowingConfiguration *)configuration {

+ (BOOL)urlSchemeCheck {
if ([GrowingDeviceInfo currentDeviceInfo].urlScheme.length == 0) {
UIAlertView *view = [[UIAlertView alloc] initWithTitle:@"未检测到GrowingIO的URLScheme"
message:@"请参考帮助文档 https://help.growingio.com/SDK/iOS.html#urlscheme 进行集成"
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[view show];
GrowingAlert *alert = [GrowingAlert createAlertWithStyle:UIAlertControllerStyleAlert
title:@"未检测到GrowingIO的URLScheme"
message:@"请参考帮助文档 https://help.growingio.com/SDK/iOS.html#urlscheme 进行集成"];
[alert addOkWithTitle:@"OK" handler:nil];
[alert showAlertAnimated:YES];
GIOLogError(@"未检测到GrowingIO的URLScheme !!!");
GIOLogInfo (@"请参考帮助文档 https://help.growingio.com/SDK/iOS.html#urlscheme 进行集成");
return NO;
Expand Down

0 comments on commit fe92a23

Please sign in to comment.