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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -