Console

Additional

Language
Kotlin
Version
1.0.0 (Oct 21, 2018)
Created
Nov 15, 2015
Updated
Oct 22, 2018
Owner
Josef Raska (jraska)
Contributors
Josef Raska (jraska)
Andrew Lord (lordcodes)
insearching
3
Activity
Badge
Generate
Download
Source code
APK file

Announcement

Console

An Android console view, which allows you to log text using static calls, to easily debug your application, whilst avoiding memory leaks.

Usage

Include Console anywhere in your layout:

<com.jraska.console.Console
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

then write to it:

// Writing to console
Console.write("This is cool")
Console.writeLine("More cool")
// Clear it
Console.clear()

Download

Grab via Gradle:

implementation 'com.jraska:console:1.0.0'

Timber Tree

To allow easy integration with Timber

Usage

// In your Application or wherever you register your trees
Timber.plant(ConsoleTree())

// This will be written to your in-app console view
Timber.d("Hello Console")

// In case you want to customize
val consoleTree = ConsoleTree.Builder()
        .debugColor(Color.GRAY)
        // ...
        .build()
Timber.plant(consoleTree)

Gradle:

implementation 'com.jraska:console-timber-tree:1.0.0'

License

Copyright 2015 Josef Raska

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.