Crashlytics integration.
parent
ce90b90a5e
commit
34e5da1233
|
@ -1,4 +1,21 @@
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
maven { url 'https://maven.fabric.io/public' }
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
// The Fabric Gradle plugin uses an open ended version to react
|
||||||
|
// quickly to Android tooling updates
|
||||||
|
classpath 'io.fabric.tools:gradle:1.+'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
apply plugin: 'io.fabric'
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven { url 'https://maven.fabric.io/public' }
|
||||||
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 21
|
compileSdkVersion 21
|
||||||
|
@ -27,4 +44,7 @@ dependencies {
|
||||||
compile 'com.android.support:recyclerview-v7:21.0.3'
|
compile 'com.android.support:recyclerview-v7:21.0.3'
|
||||||
compile 'com.googlecode.android-query:android-query:0.25.9'
|
compile 'com.googlecode.android-query:android-query:0.25.9'
|
||||||
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
|
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
|
||||||
|
compile('com.crashlytics.sdk.android:crashlytics:2.6.2@aar') {
|
||||||
|
transitive = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
<category android:name="android.intent.category.LAUNCHER"/>
|
<category android:name="android.intent.category.LAUNCHER"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
<meta-data
|
||||||
|
android:name="io.fabric.ApiKey"
|
||||||
|
android:value="f9f8274d1e204bbb3ef13a27a23fc58aa146d4b9"
|
||||||
|
/>
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
|
||||||
|
|
|
@ -11,10 +11,12 @@ import android.view.GestureDetector;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
|
import com.crashlytics.android.Crashlytics;
|
||||||
import com.nostra13.universalimageloader.cache.memory.impl.WeakMemoryCache;
|
import com.nostra13.universalimageloader.cache.memory.impl.WeakMemoryCache;
|
||||||
import com.nostra13.universalimageloader.core.DisplayImageOptions;
|
import com.nostra13.universalimageloader.core.DisplayImageOptions;
|
||||||
import com.nostra13.universalimageloader.core.ImageLoader;
|
import com.nostra13.universalimageloader.core.ImageLoader;
|
||||||
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
|
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
|
||||||
|
import io.fabric.sdk.android.Fabric;
|
||||||
import pl.tpolgrabia.urbanexplorer.dto.PanoramioImageInfo;
|
import pl.tpolgrabia.urbanexplorer.dto.PanoramioImageInfo;
|
||||||
import pl.tpolgrabia.urbanexplorer.fragments.HomeFragment;
|
import pl.tpolgrabia.urbanexplorer.fragments.HomeFragment;
|
||||||
import pl.tpolgrabia.urbanexplorer.fragments.PanoramioShowerFragment;
|
import pl.tpolgrabia.urbanexplorer.fragments.PanoramioShowerFragment;
|
||||||
|
@ -69,6 +71,8 @@ public class MainActivity extends ActionBarActivity implements GestureDetector.O
|
||||||
|
|
||||||
// locations.setOnTouchListener(new OnSwipeTouchListener);
|
// locations.setOnTouchListener(new OnSwipeTouchListener);
|
||||||
gestureDetector = new GestureDetectorCompat(this, this);
|
gestureDetector = new GestureDetectorCompat(this, this);
|
||||||
|
Fabric fabric = new Fabric.Builder(this).debuggable(true).kits(new Crashlytics()).build();
|
||||||
|
Fabric.with(fabric);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue