This is AIR Native Extension for Fabric Crashlytics Kit.
- fabric.ane - a main extension that initializes this kit;
- 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>
Almost all Crashlytics API are implemented, except callback for crash reports.
public function crash():void
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");
public function setUserEmail(value:String):void
public function setUserIdentifier(value:String):void;
public function setUserName(value:String):void;
public function setUserEmail(value:String):void;