|
@@ -15,6 +15,7 @@
|
|
#import "AppDelegate+PushNotification.h"
|
|
#import "AppDelegate+PushNotification.h"
|
|
|
|
|
|
#import <FirebaseCore/FirebaseCore.h>
|
|
#import <FirebaseCore/FirebaseCore.h>
|
|
|
|
+#import <Bugly/Bugly.h>
|
|
|
|
|
|
@import Stripe;
|
|
@import Stripe;
|
|
|
|
|
|
@@ -34,7 +35,6 @@
|
|
} else {
|
|
} else {
|
|
// Fallback on earlier versions
|
|
// Fallback on earlier versions
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
|
|
[ASCurrencyManager.shared getAllCurrencyData];
|
|
[ASCurrencyManager.shared getAllCurrencyData];
|
|
[ASNetTools reqNet_getAdvCoupons];
|
|
[ASNetTools reqNet_getAdvCoupons];
|
|
@@ -58,9 +58,16 @@
|
|
|
|
|
|
[FIRApp configure];
|
|
[FIRApp configure];
|
|
|
|
|
|
- //推送相关配置
|
|
|
|
|
|
+#if DEBUG
|
|
|
|
+ [Bugly startWithAppId:Bugly_appId developmentDevice:true config:nil];
|
|
|
|
+#else
|
|
|
|
+ [Bugly startWithAppId:Bugly_appId];
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+ //获取用户信息
|
|
if (ASUserInfoManager.shared.isLogin ) {
|
|
if (ASUserInfoManager.shared.isLogin ) {
|
|
[ASUserInfoManager.shared getInfo:^{
|
|
[ASUserInfoManager.shared getInfo:^{
|
|
|
|
+ //推送相关配置
|
|
[self initPushNotificationConfig:launchOptions];
|
|
[self initPushNotificationConfig:launchOptions];
|
|
}];
|
|
}];
|
|
} else {
|
|
} else {
|