Sofa

Logcat crash to stackoverflow link transformer

License

License

GroupId

GroupId

com.malinskiy
ArtifactId

ArtifactId

sofa
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

aar
Description

Description

Sofa
Logcat crash to stackoverflow link transformer
Project URL

Project URL

https://github.com/Malinskiy/Sofa
Source Code Management

Source Code Management

https://github.com/Malinskiy/Sofa

Download sofa

How to add to project

<!-- https://jarcasting.com/artifacts/com.malinskiy/sofa/ -->
<dependency>
    <groupId>com.malinskiy</groupId>
    <artifactId>sofa</artifactId>
    <version>0.1.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.malinskiy/sofa/
implementation 'com.malinskiy:sofa:0.1.0'
// https://jarcasting.com/artifacts/com.malinskiy/sofa/
implementation ("com.malinskiy:sofa:0.1.0")
'com.malinskiy:sofa:aar:0.1.0'
<dependency org="com.malinskiy" name="sofa" rev="0.1.0">
  <artifact name="sofa" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.malinskiy', module='sofa', version='0.1.0')
)
libraryDependencies += "com.malinskiy" % "sofa" % "0.1.0"
[com.malinskiy/sofa "0.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.android.support » support-annotations jar 23.1.1

Project Modules

There are no modules declared in this project.

[Maven Central] (https://maven-badges.herokuapp.com/maven-central/com.malinskiy/sofa) Build Status Android Arsenal

Handling the exceptions:

try {
    something;
} catch(Exception e) {
    StackOverflow.search(e);
}

Sofa

So probably you're tired of copy pasting logcat exceptions and stack traces into search, right? Now you can click links inside the logcat and browse for possible resolutions.

Usage

Just install this comfy sofa into your application:

public class MainApplication extends Application {

    @Override public void onCreate() {
        super.onCreate();
        Sofa.install();
    }
}

and you'll see StackOverflow search links in your logcat

E/Sofa: http://stackoverflow.com/search?q=android.os.NetworkOnMainThreadException

Get it

Gradle:

repositories {
    ...
    mavenCentral()
    ...
}
...
dependencies {
    ...
    compile 'com.malinskiy:sofa:0.1.0'
    ...
}

Inspired by Jordan Hall's post

License

Copyright 2016 Anton Malinskiy

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0
    
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and   limitations under the License.

Versions

Version
0.1.0