Skip to content

Instantly share code, notes, and snippets.

View stoefln's full-sized avatar

Stephan Petzl stoefln

View GitHub Profile
android {
...
buildTypes {
debug {
ext.enableCrashlytics = false
}
}
// Initializes Fabric for builds that don't use the debug build type.
Crashlytics crashlyticsKit = new Crashlytics.Builder()
.core(new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build())
.build();
Fabric.with(this, crashlyticsKit);
./gradlew clean;
./gradlew --profile --recompile-scripts --offline --rerun-tasks assembleProductionDebug
Initialized native services in: /Users/steph/.gradle/native
Found daemon DaemonInfo{pid=29332, address=[d65001ce-c44a-46a2-92e6-724289b0d320 port:60443, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1520253317740, context=DefaultDaemonContext[uid=44505cc5-9a73-43b6-8d1f-6068f0913cb4,javaHome=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home,daemonRegistryDir=/Users/steph/.gradle/daemon,pid=29332,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=512m,-Xmx4G,-Dfile.encoding=UTF-8,-Duser.country=AT,-Duser.language=en,-Duser.variant]} however its context does not match the desired criteria.
At least one daemon option is different.
Wanted: DefaultDaemonContext[uid=null,javaHome=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home,daemonRegistryDir=/Users/steph/.gradle/daemon,pid=36017,idleTimeout=null,daemonOpts=-XX:MaxPermSize=512m,-Xmx4G,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
Actual: DefaultDaemonContext[uid=44505cc5-9a73-43b6-8d1f-6068
./gradlew clean;
./gradlew --scan --recompile-scripts --offline --rerun-tasks assembleProductionDebug
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.toursprung.bikemap, PID: 28576
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=10, result=-1, data=Intent { (has extras) }} to activity {com.toursprung.bikemap/com.toursprung.bikemap.ui.auth.AuthenticationActivity}: kotlin.KotlinNullPointerException
at android.app.ActivityThread.deliverResults(ActivityThread.java:4491)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4534)
at android.app.ActivityThread.-wrap20(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1752)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
@stoefln
stoefln / graphhopper route converted to mapbox format
Created February 18, 2019 16:53
LatLng(41.406914, 2.156693) LatLng(41.403597, 2.175327)
{
"geometry":"{_h~mAcrsbCs]v[{Tsg@bmAwmA{Og^cQs]~wDgtDw[{m@zsB_zCvt@wcAbt@seAkiA_cB_X{^os@chAwt@{fAju@kdAwy@_oAfm@s{@",
"routeOptions":{
"baseUrl":"dumyUrllllll",
"user":"dummyUserrrrr",
"profile":"dummyProfile....",
"coordinates":[
],
"geometries":"dummyGeometries",
@stoefln
stoefln / for_mapbox.json
Last active February 26, 2019 13:39
Graphhopper response converted to mapbox format. Origin of route: Lat/Lng: (41.406914, 2.156693) Destination: Lat/Lng: (41.403597, 2.175327)
{
"geometry":"{_h~mAcrsbCs]v[{Tsg@bmAwmA{Og^cQs]~wDgtDw[{m@zsB_zCvt@wcAbt@seAkiA_cB_X{^os@chAwt@{fAju@kdAwy@_oAfm@s{@",
"routeOptions":{
"baseUrl":"dumyUrllllll",
"user":"dummyUserrrrr",
"profile":"dummyProfile....",
"coordinates":[
],
"geometries":"dummyGeometries",
@stoefln
stoefln / graphhopper_response.json
Created February 18, 2019 17:10
Graphhopper 0.82 response. Origin of route: (41.406914, 2.156693) Destination: (41.403597, 2.175327)
{
"info":{
"copyrights":[
"Toursprung",
"OpenStreetMap contributors"
],
"took":11
},
"paths":[
{
@stoefln
stoefln / DirectionsRoute.json
Created February 26, 2019 10:29
Test DirectionsRoute
{
"geometry":"gkg~mA{zsbCkCgE{m@vj@{Tsg@sNc`@gO_]~CsD",
"routeOptions":{
"baseUrl":"dumyUrllllll",
"user":"dummyUserrrrr",
"profile":"dummyProfile....",
"coordinates":[
],
"geometries":"dummyGeometries",