Product flavor specific gradle dependencies on Unity

Multi tool use
Multi tool use


Product flavor specific gradle dependencies on Unity



Unity offers a custom mainTemplate.gradle file to be used as build.gradle after project export and for dependencies it uses the following;


dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
**DEPS**}



Problem here is that I have two productFlavors and I want some of the libraries to be product flavor specific.



So the output is;


compile(name: 'play-services-plus-10.2.0', ext:'aar')
compile(name: 'play-services-tasks-10.2.0', ext:'aar')
compile(name: 'unity-ads', ext:'aar')
compile project(':gameCircle-2.4.2')



What I'm looking for is an output like this;


googleCompile(name: 'play-services-plus-10.2.0', ext:'aar')
googleCompile(name: 'play-services-tasks-10.2.0', ext:'aar')
compile(name: 'unity-ads', ext:'aar')
amazonCompile project(':gameCircle-2.4.2')



What is the best way to approach this problem?



Thanks in advance









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

lBa6i6KG
uoGHFQ MTmAOXXq1uH,X4ob3mplW1zDBi5D j,I TH,L9ztf,0Dria 3B 5B74TzkX,myUIA9j 1pq6sP2cqv

Popular posts from this blog

Rothschild family

Cinema of Italy