Crashlytics: download the Cordova project

The Crashlytics say that we need to download the Fabric plugin to Android Studio, and then register / download the application by running it. I have few questions on the same topic.

  • How to upload a Cordova (Ionic) project to Crashlytics?
  • How to use this cordova-crashlytics plugin?

Any help is very helpful.

+6
source share
2 answers

This can be done without Android Studio and without “loading your application / project” in Crashlytics and without the Fabric plugin. I am working on an application in Cordoba using the Cordova command line tool with the Cordoba Android platform 3.7.2. I got Crashlytics working with this slightly updated Cordova plugin: https://github.com/smistry-toushay/cordova-crashlytics-plugin

First, get the secret secret and key to Crashlytics by visiting the Organizations page in the Crashlytics toolbar. Select your organization at: https://www.crashlytics.com/settings/organizations and click on the links for the "API Key" and "Build Secret" directly under the name org to copy their values.

Then run this on the command line in the Cordova directory:

cordova plugin add https://github.com/smistry-toushay/cordova-crashlytics-plugin.git --variable CRASHLYTICS_API_SECRET=YOUR CRASHLYTICS API SECRET HERE --variable CRASHLYTICS_API_KEY=YOUR CRASHLYTICS API KEY HERE 

Then you should add your Cordoba application to the Crashlytics dashboard, and all subsequent crashes will appear there.

+2
source

Since the development of ionic uses only text editors, not an IDE, we actually do not use android studio. However, for this particular case, when a native has to dive, we will need to forcibly build our application from the studio.

What you can do is

  • Add Android platform to cordova app.

  • import the application into Android studio (file, import project, yourapp / platform / android)

  • Follow the instructions from Crashlytics.

  • Now you can continue to work with API keys and Build Secret.

  • on cli, follow the code to add the plug-in cordova add cordova -... plugin

  • run the application on android studio.

Please let me know if this helps. I was able to do this earlier, but I will try to help you every time. Hooray!

0
source

Source: https://habr.com/ru/post/983035/


All Articles