ti-fabric
Fabric Crashlytics in Titanium build hook.
Cuation
- This hook plugin is working in progress
- Working on Titanium SDK 4.1.0.GA
- <= v0.0.4 Titanium SDK 4.0.0.GA
- v0.0.5 Titanium SDK 4.1.0.GA
- Code injection to build/iphone/Classes/TiApp.m
- Code injection to build/iphone/project.xcconfig
- Code injection to build/iphone/[YOUR APP NAME].xcodeproj/project.pbxproj
- If it does not launch,
$ ti clean
😁
Preparation
- To the device build once
- Launch the Fabric
- Select build/iphone/[YOUR APP NAME].xcodeproj
- Install Crashlytics
- Copy shell script in Fabric
./Fabric.framework/run XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
- Open the build/iphone/[YOUR APP NAME].xcodeproj at Xcode
- Build Phases -> + -> New Run Script Phase
- open Run Script -> Copy 5. shell script
- Cmd+B
- Drag the trunk icon in your Titanium app project folder(Do not drag the build/iphone/ folder)
- Open the build/iphone/Info.plist
- Copy and paste your tiapp.xml ios section. And BuildSecret section is 5. second argument
e.g.
<key>Fabric</key>
<dict>
<key>APIKey</key>
<string>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</string>
<key>BuildSecret</key>
<string>YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY</string>
<key>Kits</key>
<array>
<dict>
<key>KitInfo</key>
<dict>
</dict>
<key>KitName</key>
<string>Crashlytics</string>
</dict>
</array>
</dict>
Installation
$ git clone git@github.com:k0sukey/ti-fabric-hook.git
$ cd ti-fabric-hook
$ npm install
$ node ./build.js
- Copy the zip file to your Titanium app project folder
- Edit the tiapp.xml plugins section
<plugins>
<plugin version="0.0.5">ti.fabric</plugin>
</plugins>
Building
Manual deploy
$ ti build -p ios -T device --build-only --fabric
Auto deploy
$ ti build -p ios -T device --build-only --fabric --crashlytics-emails foo@example.com
$ ti build -p ios -T device --build-only --fabric --crashlytics-groupAliases MyTesters
Show all options at the help
$ ti build -p ios -T device --build-only --fabric --fabric-help
Uninstall
Delete the tiapp.xml ti.fabric plugin section