Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This is placed with each library in your project.
android_library(
name = 'activity',
srcs = glob(['*.java']),
visibility = [ 'PUBLIC' ],
)
project_config(
src_target = ':activity',
)
This one is placed with the app resources (images, stringes, etc.)
android_resource(
name = 'res',
res = 'res',
package = 'com.example',
visibility = [
'//apps/myapp:',
],
)
project_config(
src_target = ':res',
)
And this one goes with your AndroidManifest.xml file.
android_binary(
name = 'app',
manifest = 'AndroidManifest.xml',
target = 'Google Inc.:Google APIs:16',
keystore_properties = 'debug.keystore.properties',
deps = [
'//java/com/example/activity:activity',
'//res/com/example/activity:res',
],
)
project_config(
src_target = ':app',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment