@EffakT wrote:
So, Fabric.io is a great tool, although they don't have much setup information for Ionic/Cordova.
First off, follow what they say... installing the IDE plugin, etc.
Now. Ionic uses gradle for its building. You would expect the install to work right away, but it wont. Ionic/Cordova overwrites the build.gradle definitions in the dependencies section.Anyway, first off open build.gradle, and in buildscript > repositories, if its not already in there, add
jcenter()
maven { url 'https://maven.fabric.io/public' }
Next, there are 3 dependencies for each gradle version. if you know what version you are running, great. otherwise add the following to all of them.classpath 'io.fabric.tools:gradle:1.+'
Now what we need to do is extend gradle's build.
Create a file in your android/ios directory called build-extras.gradle.
Inside this, we need to define the repositories.apply plugin: 'io.fabric'
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
// Crashlytics Kit
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true
}
}Now, when you run or build the app, it should work.
This is as far as I have gotten in the install, however the fabric.io does not want to recognize the app.If anyone has had any luck getting further, let me know please.
Posts: 1
Participants: 1