android - How to have compile only dependency on an AAR lib -


i have android sdk , wanted add new google auth feature sdk keep dependency compileonly. way user of sdk not need add play services dependency if don't want feature. tried using 'provided' keyword in gradle have compile-only dependency on other google auth feature lib, not work 'aar' libs.

the 'provided' keyword works 'jar' files mentioned here

you can instruct users exclude unneeded optional dependencies. can declare dependency on library that:

compile('com.example:foo:1.0') {     exclude group: 'com.google', module: 'bar' } 

Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -