Remove unused package_js.py
Reviewed By: AaaChiuuu Differential Revision: D5200573 fbshipit-source-id: 5bc5cc66d3ce979a6ca2db9241e1de4eab45f234
This commit is contained in:
parent
f978109281
commit
a9e8b7bca5
|
@ -1,18 +1,5 @@
|
||||||
include_defs("//ReactAndroid/DEFS")
|
include_defs("//ReactAndroid/DEFS")
|
||||||
|
|
||||||
# We package the JS files from the bundler and local directory into what we
|
|
||||||
# pretend is an ordinary JAR file. By putting them under the assets/ directory
|
|
||||||
# within the zip file and relying on Buck to merge its contents into the APK,
|
|
||||||
# our JS bundles arrive in a place accessible by the AssetManager at runtime.
|
|
||||||
|
|
||||||
python_binary(
|
|
||||||
name = "package_js",
|
|
||||||
main = "package_js.py",
|
|
||||||
visibility = [
|
|
||||||
"PUBLIC",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
android_library(
|
android_library(
|
||||||
name = "bridge",
|
name = "bridge",
|
||||||
srcs = glob(["**/*.java"]),
|
srcs = glob(["**/*.java"]),
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
from __future__ import absolute_import
|
|
||||||
from __future__ import division
|
|
||||||
from __future__ import print_function
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import zipfile
|
|
||||||
|
|
||||||
srcs = sys.argv[1:]
|
|
||||||
|
|
||||||
with zipfile.ZipFile(sys.stdout, 'w') as jar:
|
|
||||||
for src in srcs:
|
|
||||||
archive_name = os.path.join('assets/', os.path.basename(src))
|
|
||||||
jar.write(src, archive_name, zipfile.ZIP_DEFLATED)
|
|
Loading…
Reference in New Issue