How do I make the resources (string, dimen, color, etc.) in my Android library module private?
I've tried both documented ways of doing this and neither work...
res/values/public.xml
does not work; all of the resources remain
public in the app that uses this library.res-public/values/public.xml
folder does not work either; all of
the resources are made private, but those listed in the public.xml
file are not made public as they should be.Does anyone have the definitive instructions for making library resources private? Are there any open-source libraries out there that have properly made their resources private?
I'm using...
buildToolsVersion "24.0.2"
com.android.tools.build:gradle:2.2.3
Option #2 actually works. I had not properly defined my sourceSets
in my build.gradle...
sourceSets {
main.res.srcDirs = [
'src/main/res',
'src/main/res-public'
]
}