Commit ab7431fc authored by Robert Hitt's avatar Robert Hitt

Added Fabric stuff

-Also removed animation
parent 25084e7a
Pipeline #1022 passed with stages
in 5 minutes and 48 seconds
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
apply plugin: 'android-apt'
apply plugin: 'realm-android'
apply plugin: 'me.tatarka.retrolambda'
......@@ -51,4 +66,7 @@ dependencies {
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
compile 'com.github.daniel-stoneuk:material-about-library:1.3.0'
compile 'com.takisoft.fix:preference-v7:25.1.1.0'
compile('com.crashlytics.sdk.android:crashlytics:2.6.6@aar') {
transitive = true;
}
}
......@@ -63,6 +63,9 @@
<service android:name=".util.NotificationService"
android:exported="false" />
<meta-data
android:name="io.fabric.ApiKey"
android:value="efd41c497ec3bc605941d2bbb6353dfc2b2e3710" />
</application>
</manifest>
\ No newline at end of file
......@@ -7,8 +7,10 @@ import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.preference.PreferenceManager;
import com.crashlytics.android.Crashlytics;
import com.squareup.leakcanary.LeakCanary;
import io.fabric.sdk.android.Fabric;
import io.realm.Realm;
import io.realm.RealmConfiguration;
......@@ -17,6 +19,7 @@ public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Fabric.with(this, new Crashlytics());
// Set up LeakCanary for memory leak detection
if(LeakCanary.isInAnalyzerProcess(this)) {
......
......@@ -234,12 +234,7 @@ public class FacilityListAdapter extends
Intent intent = new Intent(mContext, DetailActivity.class);
intent.putExtra("name", data.getName());
// for some reason I need this for the transition to work
Pair<View, String> p1 = Pair.create((View) nameTextView, "");
ActivityOptionsCompat transitionActivityOptions =
ActivityOptionsCompat.makeSceneTransitionAnimation(mActivity, p1);
mContext.startActivity(intent, transitionActivityOptions.toBundle());
mContext.startActivity(intent);
}
// toggles favorite status
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment