Add CardView support library module

Fixes issue #106 
No. A minimum of L is fine to match for now. When the proper releases are
made the minimum will be lowered.
On Jul 27, 2014 2:09 AM, "Melnykov Oleksandr" <notifications@github.com>
wrote:

> In assertj-android-cardview-v7/build.gradle:
>
> > @@ -0,0 +1,27 @@
> > +apply plugin: 'com.android.library'
> > +
> > +dependencies {
> > +    compile project(':assertj-android')
> > +    compile 'com.android.support:cardview-v7:+'
> > +}
> > +
> > +android {
> > +    compileSdkVersion rootProject.ext.compileSdkVersion
> > +    buildToolsVersion rootProject.ext.buildToolsVersion
> > +
> > +    defaultConfig {
> > +        minSdkVersion 'L'
>
> When I tried to launch a test using this module with minSdkVersion
> rootProject.ext.minSdkVersion I got the exception during a build:
>
> Error:Execution failed for task ':app:processDebugTestManifest'.
> > java.lang.RuntimeException: Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be
> different than version L declared in library com.android.support:cardview-v7:21.0.0-rc1
>
> Gradle tries to merge the manifest of the support lib with assertj module
> and the support lib forces minSdkVersion to L.
> Then I found the article
> <http://www.reddit.com/r/androiddev/comments/297xli/howto_use_the_v21_support_libs_on_older_versions/>.
> It says that the new support libs (CardView, RecyclerView, Palette, etc.)
> are locked into the L API level and offers some hack to get them work on
> older levels. Should we apply this hack and how if a test manifest is
> generated?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/square/assertj-android/pull/112/files#r15438278>.
>