From 11852a443eac3e5d8ea2b9295f0a248e440689b5 Mon Sep 17 00:00:00 2001 From: mx1700 Date: Mon, 22 Jul 2019 23:47:05 +0800 Subject: [PATCH] =?UTF-8?q?iOS=20=E7=89=88=E6=9C=AC=E6=8F=90=E5=8D=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 +++- ios/Timepill/Info.plist | 18 +++++++++--------- src/page/NotificationHistoryPage.js | 1 + 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/index.js b/index.js index ca2911c..68540b0 100644 --- a/index.js +++ b/index.js @@ -91,6 +91,8 @@ function loginByPassword() { Navigation.events().registerAppLaunchedListener(async () => { + firebase.crashlytics().enableCrashlyticsCollection(); + try { await loadIcon(); } catch (err) { @@ -123,6 +125,6 @@ Navigation.events().registerAppLaunchedListener(async () => { console.log("push init: " + msg); }) - firebase.crashlytics().log('Test Message!'); + }); diff --git a/ios/Timepill/Info.plist b/ios/Timepill/Info.plist index 308cd6a..c3a4c6d 100644 --- a/ios/Timepill/Info.plist +++ b/ios/Timepill/Info.plist @@ -21,7 +21,7 @@ CFBundleSignature ???? CFBundleVersion - 26 + 27 LSRequiresIPhoneOS NSAppTransportSecurity @@ -39,6 +39,14 @@ NSCameraUsageDescription + NSLocationAlwaysUsageDescription + 胶囊需要获取你的位置 + NSLocationWhenInUseUsageDescription + 胶囊需要获取你的位置 + NSPhotoLibraryAddUsageDescription + 胶囊需要保存图片到相册 + NSPhotoLibraryUsageDescription + 胶囊需要访问你的相册 UIAppFonts Entypo.ttf @@ -67,13 +75,5 @@ UIViewControllerBasedStatusBarAppearance - NSPhotoLibraryUsageDescription - 胶囊需要访问你的相册 - NSLocationAlwaysUsageDescription - 胶囊需要获取你的位置 - NSLocationWhenInUseUsageDescription - 胶囊需要获取你的位置 - NSPhotoLibraryAddUsageDescription - 胶囊需要保存图片到相册 diff --git a/src/page/NotificationHistoryPage.js b/src/page/NotificationHistoryPage.js index b4bbf20..730e622 100644 --- a/src/page/NotificationHistoryPage.js +++ b/src/page/NotificationHistoryPage.js @@ -14,6 +14,7 @@ export default class NotificationHistoryPage extends Component { constructor(props) { super(props); Navigation.events().bindComponent(this); + // firebase.crashlytics().crash(); } static options(passProps) {