titanium-crashlytics:使用Titanium(iOS Android)中的本机Crashlytics SDK

  • o0_847300
    了解作者
  • 5.2MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-14 19:14
    上传日期
Appcelerator Titanium中的Crashlytics 使用Appcelerator Titanium中的本机Fabric Crashlytics iOS / Android SDK。 支持这项工作 @hansemannn的整个Firebase支持由社区( @hansemannn和@m1ga )开发和维护。 为了保持该项目的正常运行并能够使用最新的Firebase SDK,请查看此存储库的“赞助商”按钮,谢谢! 要求 iOS:Titanium SDK 8.0.0+ Android:Titanium SDK 7.0.0+ 设置 通常,请记住在实际打开第一个窗口之前不要使用任何Crashlytics API。 尽管这可能不会导致iOS崩溃,但由于需要本机Activity如果在应用程序完成启动之前使用本机Android SDK,则会出错。 重大变化! 2.0.0版模块使用F
titanium-crashlytics-master.zip
内容介绍
# Crashlytics in Appcelerator Titanium Use the native Fabric Crashlytics iOS / Android SDK in Appcelerator Titanium. ## Supporting this effort The whole Firebase support in Titanium is developed and maintained by the community (`@hansemannn` and `@m1ga`). To keep this project maintained and be able to use the latest Firebase SDK's, please see the "Sponsor" button of this repository, thank you! ## Requirements - [x] iOS: Titanium SDK 8.0.0+ - [x] Android: Titanium SDK 7.0.0+ ## Setup In general, remember to not use any Crashlytics API's before actually opening your first window. While this might not result in a crash on iOS, the native Android SDK will error if being used before your app finished launching due to requiring the native `Activity`. ## Breaking changes! Module version 2.0.0 uses Firebase Crashlytics instead of the (deprecated) Fabric Crashlytics. Please make sure to check the removed and changed API's! ### iOS 1. Create a new folder `scripts/` in your project root 2. Copy the `run` and `upload-symbols` shell files from this repo's `helper/` directory to `scripts/` in your project 3. Make sure your Firebase project is configured properly and you have your `GoogleService-Info.plist` in place, as described [here](https://github.com/hansemannn/titanium-firebase). 4. You are ready to go! ### Android 1. Add the following to the `<application rel='nofollow' onclick='return false;'>` tag inside the manifest configuration in your tiapp.xml: ```xml <meta-data android:name="io.fabric.ApiKey" android:value="YOUR_API_KEY" /> ``` 2. Add your GUID or a random UUID to `[app]/platform/android/res/values/strings`: ```xml <string name="com.crashlytics.android.build_id">RANDOM_UUID</string> ``` 3. You are ready to go! ## Example See the [Sample App](https://github.com/hansemannn/titanium-crashlytics-demo/blob/master/README.md) for an example of configuring the required API keys and project settings. ## API's ### Cross platform API's ### `log(message)` Log a Custom Event to see user actions that are uniquely important for your app in real-time. ### `setUserIdentifier(userIdentifier)` Specify a user identifier which will be visible in the Crashlytics UI. ### Android only API's ### `crash()` Simulate a crash (for testing purpose) ### `throwException()` Simulate an exception (for testing purpose) ### `setUserName(userName)` Specify a user name which will be visible in the Crashlytics UI. ### `setUserEmail(userEmail)` Specify a user email which will be visible in the Crashlytics UI. ## Author Hans Knöchel ([@hansemannnn](https://twitter.com/hansemannnn) / [Web](https://hans-knoechel.de)) ## License MIT ## Contributing Code contributions are greatly appreciated, please submit a new [Pull-Request](https://github.com/hansemannn/titanium-crashlytics/pull/new/master)!
评论
    相关推荐