Sprockets

Additional

Language
Java
Version
v3.0.0 (Nov 14, 2015)
Created
Apr 6, 2015
Updated
Jun 6, 2017 (Retired)
Owner
pushbit
Contributor
pushbit
1
Activity
Badge
Generate
Download
Source code
APK file

Advertising

Sprockets for Android

Extend base components, use widgets, and call utility methods.

Install

    compile 'net.sf.sprockets:sprockets-android:4.0.0'

Ensure the Data Binding library is enabled.

    dataBinding {
        enabled true
    }

Set minifyEnabled true for all buildTypes (including debug).

If you are using Espresso and get a version conflict error for jsr305, add an exclude line.

    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.google.code.findbugs', module: 'jsr305'
    })

Notes

minSdkVersion < 21

Many features will work with lower API levels, though you should carefully test them to ensure that no APIs above your minimum level are accessed. Tell the build system to allow higher API levels with the tools:overrideLibrary attribute in AndroidManifest.xml.

<manifest ...>
    <uses-sdk tools:overrideLibrary="net.sf.sprockets"/>