Caffeine

Additional

Language
Java
Version
0.4.7 (Mar 14, 2017)
Created
Oct 1, 2014
Updated
Mar 14, 2017 (Retired)
Owner
Percolate (percolate)
Contributors
lra
tabuchid
Brent Watson (brentwatson)
Gracker
LuxNova
Mohit (msya)
6
Activity
Badge
Generate
Download
Source code
APK file

Promotion

Caffeine

Speed up your Android development!

A collection of utility classes that help make Android development faster (and safer!)

Examples

No more unsafe type casting scattered throughout your code:

TextView x = ViewUtils.findViewById(this, R.id.my_text)
ImageView y = ViewUtils.findViewById(this, R.id.my_image)
LinearLayout z = ViewUtils.findViewById(this, R.id.my_layout)

Some handy 1-liners:

ActivityUtils.launchActivity(this, SomeNewActivity.class);
DialogUtils.quickDialog(this, "Some awesome message");
ToastUtils.quickToast(this, "Some toast message");

And much more!

Adding to your application

Simply add Caffeine as a gradle dependency. Distribution is done through jitpack.io.

See https://jitpack.io/#percolate/caffeine for instructions

Running Tests

./gradlew clean test:connectedAndroidTest

License

Open source. Distributed under the BSD 3 license. See LICENSE.txt for details.