/caffeine

Speed up your Android development

Primary LanguageJavaBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Caffeine

Speed up your Android development!

Android Arsenal Codacy JitPack

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.