Skip to content

Latest commit

 

History

History

crashlytics

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

crashlytics

Overview

This is AIR Native Extension for Fabric Crashlytics Kit.

Dependencies

  • fabric.ane - a main extension that initializes this kit;

Setup

  • link fabric.ane with your project;
  • link crashlytics.ane with your project;
  • declare extensions in your application descriptor:
<extensions> 
    <extensionID>com.github.airext.fabric.Fabric</extensionID>
    <extensionID>com.github.airext.fabric.Crashlytics</extensionID>
</extensions>
  • add Crashlytics Kit info into <InfoAdditions> section of your application descriptor:
<iPhone>
    <InfoAdditions>
        <key>Fabric</key>
        <dict>
            <key>APIKey</key>
            <string>${FABRIC_API_KEY}</string>
            <key>Kits</key>
            <array>
                <dict>
                    <key>KitName</key>
                    <string>Crashlytics</string>
                    <key>KitInfo</key>
                    <dict/>
                </dict>
            </array>
        </dict>
    </InfoAdditions>
</iPhone>

Available API

Almost all Crashlytics API are implemented, except callback for crash reports.

Simulate crash

public function crash():void

Setting Keys:

public function setObjectValue(key:String, value:String):void;

public function setIntValue(key:String, value:int):void;

public function setBoolValue(key:String, value:Boolean):void;

public function setFloatValue(key:String, value:Number):void;

for example:

Crashlytics.sharedInstance().setIntValue("current_level", 3);
Crashlytics.sharedInstance().setObjectValue("last_UI_action", "logged_in");

Logging

public function setUserEmail(value:String):void

User Identifiers

public function setUserIdentifier(value:String):void;

public function setUserName(value:String):void;

public function setUserEmail(value:String):void;