You could, but the dependencies are very manual for now.
So in your apps you'd have to do something like this:
dependencies {
flavor1Compile project(path: ':lib1', configuration: 'flavor1Release')
flavor2Compile project(path: ':lib1', configuration: 'flavor2Release')
}
This is really not great if you have a different flavor groups, but it's
possible at least.
On Wed, Mar 5, 2014 at 12:12 PM, Streets Of Boston
<[email protected]>wrote:
> Question about library build-variants with app build-variants.
>
> I have a number of apps with a number of build-variants (defined in
> flavorGroups and productFlavors).
> I have a library project supporting all these apps.
>
> The variant-sources in the apps redefine stuff (code/resources) that are
> originally defined/declared in the library project.
> These re-definitions are the same for each app, duplicated, because the
> library project didn't support build-variants.
>
> Now that library projects support build-variants, is there a way to tie an
> app's product-flavor to a library build-variant and move the
> variant-sources from the app-projects to the variant-sources of the
> library-project?
>
> Thanks!
>
>
> On Wednesday, March 5, 2014 2:18:27 PM UTC-5, Xavier Ducrohet wrote:
>>
>> Release notes: http://tools.android.com/tech-docs/new-build-system
>>
>> --
>> Xavier Ducrohet
>> Android SDK Tech Lead
>> Google Inc.
>> http://developer.android.com | http://tools.android.com
>>
>> Please do not send me questions directly. Thanks!
>>
> --
> You received this message because you are subscribed to the Google Groups
> "adt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com
Please do not send me questions directly. Thanks!
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.