mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
Add Fabric / Crashlytics
This commit is contained in:
parent
850d3438e7
commit
480bd41b1a
4 changed files with 17 additions and 0 deletions
|
|
@ -55,6 +55,9 @@
|
|||
</receiver>
|
||||
<service android:name="com.magicmicky.habitrpgmobileapp.widget.UpdateWidgetService"/>
|
||||
|
||||
<meta-data
|
||||
android:name="io.fabric.ApiKey"
|
||||
android:value="2eb3b3edb3b0f4722d37d649a5af366656e46ddd" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
|
@ -80,12 +80,16 @@
|
|||
</content>
|
||||
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" exported="" name="beta-1.1.2" level="project" />
|
||||
<orderEntry type="library" exported="" name="support-v4-18.0.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="retrofit-1.6.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="crouton-1.8.1" level="project" />
|
||||
<orderEntry type="library" exported="" name="crashlytics-2.2.4" level="project" />
|
||||
<orderEntry type="library" exported="" name="lib-1.7" level="project" />
|
||||
<orderEntry type="library" exported="" name="gson-2.2.4" level="project" />
|
||||
<orderEntry type="library" exported="" name="answers-1.2.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="appcompat-v7-18.0.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="fabric-1.3.1" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
|
|
|
|||
|
|
@ -2,12 +2,15 @@ buildscript {
|
|||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
maven { url 'https://maven.fabric.io/public' }
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:1.0.1'
|
||||
classpath 'io.fabric.tools:gradle:1.+'
|
||||
}
|
||||
}
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'io.fabric'
|
||||
apply plugin: 'aar-link-sources'
|
||||
|
||||
repositories {
|
||||
|
|
@ -16,6 +19,7 @@ repositories {
|
|||
maven {
|
||||
url "https://oss.sonatype.org/content/repositories/snapshots"
|
||||
}
|
||||
maven { url 'https://maven.fabric.io/public' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
@ -24,6 +28,9 @@ dependencies {
|
|||
aarLinkSources 'com.magicmicky.habitrpgwrapper:lib:1.7:sources@jar'
|
||||
|
||||
compile 'com.android.support:appcompat-v7:18.0.+'
|
||||
compile('com.crashlytics.sdk.android:crashlytics:2.2.4@aar') {
|
||||
transitive = true;
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
|
||||
import com.crashlytics.android.Crashlytics;
|
||||
import io.fabric.sdk.android.Fabric;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
|
|
@ -177,6 +179,7 @@ public class MainActivity extends ActionBarActivity implements OnTaskCreationLis
|
|||
}
|
||||
});
|
||||
FragmentManager fm = super.getSupportFragmentManager();
|
||||
Fabric.with(this, new Crashlytics());
|
||||
mPagerAdapter = new MyPagerAdapter(fm);
|
||||
mPager = (ViewPager) findViewById(R.id.home_pannels_pager);
|
||||
mPager.setAdapter(mPagerAdapter);
|
||||
|
|
|
|||
Loading…
Reference in a new issue