Awesome
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");
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.