mirror of
https://github.com/status-im/react-native.git
synced 2025-02-24 15:18:10 +00:00
Summary: This diff moves the React Native template from `local-cli/templates/HelloWorld` to `template`. Keeping it in the react-native repo will allow us to make changes to the template and version it together with react-native, instead of moving it out into a separate repo and trying to keep the template in sync with RN. Reviewed By: TheSavior Differential Revision: D13372949 fbshipit-source-id: e68e267b4dcf6384535d7b48fc11e297a12e9676
20 lines
602 B
Python
20 lines
602 B
Python
"""Helper definitions to glob .aar and .jar targets"""
|
|
|
|
def create_aar_targets(aarfiles):
|
|
for aarfile in aarfiles:
|
|
name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
|
|
lib_deps.append(":" + name)
|
|
android_prebuilt_aar(
|
|
name = name,
|
|
aar = aarfile,
|
|
)
|
|
|
|
def create_jar_targets(jarfiles):
|
|
for jarfile in jarfiles:
|
|
name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
|
|
lib_deps.append(":" + name)
|
|
prebuilt_jar(
|
|
name = name,
|
|
binary_jar = jarfile,
|
|
)
|