Permalink
Browse files

Eliminate the need for `import re` in a BUCK file.

Reviewed By: mzlee

Differential Revision: D4550304

fbshipit-source-id: 59a101a35ea33aa8043046f64b675fab0f6f889a
  • Loading branch information...
bolinfest authored and facebook-github-bot committed Feb 14, 2017
1 parent f294f61 commit 6a4f7c09932b5a5a4e3f1cf8d44d24280405ea53
Showing with 2 additions and 4 deletions.
  1. +2 −4 local-cli/templates/HelloWorld/android/app/BUCK
@@ -1,5 +1,3 @@
import re
# To learn about Buck see [Docs](https://buckbuild.com/).
# To run your application with Buck:
# - install Buck
@@ -12,15 +10,15 @@ import re
lib_deps = []
for jarfile in glob(['libs/*.jar']):
name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile)
name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')]
lib_deps.append(':' + name)
prebuilt_jar(
name = name,
binary_jar = jarfile,
)
for aarfile in glob(['libs/*.aar']):
name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile)
name = 'aars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.aar')]
lib_deps.append(':' + name)
android_prebuilt_aar(
name = name,

0 comments on commit 6a4f7c0

Please sign in to comment.