mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Add BUCK files
This commit is contained in:
36
ReactAndroid/src/main/third-party/android-support-for-standalone-apps/v7/appcompat/BUCK
vendored
Normal file
36
ReactAndroid/src/main/third-party/android-support-for-standalone-apps/v7/appcompat/BUCK
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
android_prebuilt_aar(
|
||||
name = 'appcompat-23.1',
|
||||
aar = ':appcompat-binary-aar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
# Unpack resources from the appcompat aar and merge their ids into the
|
||||
# generated com.facebook.react.R class.
|
||||
#
|
||||
# We do this for compatibility with Gradle: we build the open source
|
||||
# version React Native with both Buck and Gradle. See for example
|
||||
# ReactToolbarManager.java where we access the appcompat resources
|
||||
# via com.facebook.react.R.
|
||||
android_resource(
|
||||
name = 'res-for-react-native',
|
||||
res = ':res-unpacker-cmd',
|
||||
package = 'com.facebook.react',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = 'res-unpacker-cmd',
|
||||
cmd = '$(exe :res-unpacker) $(location :appcompat-binary-aar) $OUT',
|
||||
out = 'res',
|
||||
)
|
||||
|
||||
python_binary(
|
||||
name = 'res-unpacker',
|
||||
main = 'res-unpacker.py',
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'appcompat-binary-aar',
|
||||
url = 'mvn:com.android.support:appcompat-v7:aar:23.0.1',
|
||||
sha1 = '7d659f671541394a8bc2b9f909950aa2a5ec87ff',
|
||||
)
|
||||
11
ReactAndroid/src/main/third-party/android/support-annotations/BUCK
vendored
Normal file
11
ReactAndroid/src/main/third-party/android/support-annotations/BUCK
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
prebuilt_jar(
|
||||
name = 'android-support-annotations',
|
||||
binary_jar = ':support-annotations-binary-aar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'support-annotations-binary-aar',
|
||||
url = 'mvn:com.android.support:support-annotations:jar:22.2.0',
|
||||
sha1 = '66b42a1f3eb7676070b7ef7f14b603483aecbee1',
|
||||
)
|
||||
23
ReactAndroid/src/main/third-party/android/support/v4/BUCK
vendored
Normal file
23
ReactAndroid/src/main/third-party/android/support/v4/BUCK
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
android_prebuilt_aar(
|
||||
name = 'lib-support-v4',
|
||||
aar = ':lib-support-v4-binary-aar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'lib-support-v4-binary-aar',
|
||||
url = 'mvn:com.android.support:support-v4:aar:23.0.1',
|
||||
sha1 = '9e8da0e4ecf9f63258c7fbd273889252cba2d0c3',
|
||||
)
|
||||
|
||||
prebuilt_jar(
|
||||
name = 'lib-support-annotations',
|
||||
binary_jar = ':lib-support-annotations-binary-aar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'lib-support-annotations-binary-aar',
|
||||
url = 'mvn:com.android.support:support-annotations:jar:22.2.0',
|
||||
sha1 = '66b42a1f3eb7676070b7ef7f14b603483aecbee1',
|
||||
)
|
||||
13
ReactAndroid/src/main/third-party/android/support/v7/recyclerview/BUCK
vendored
Normal file
13
ReactAndroid/src/main/third-party/android/support/v7/recyclerview/BUCK
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
android_prebuilt_aar(
|
||||
name = 'recyclerview',
|
||||
aar = ':recyclerview-binary-aar',
|
||||
visibility = [
|
||||
'//ReactAndroid/...',
|
||||
],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'recyclerview-binary-aar',
|
||||
url = 'mvn:com.android.support:recyclerview-v7:aar:23.0.1',
|
||||
sha1 = '94d5f16be156521e135295e2ffa70d79ef8ad9d5',
|
||||
)
|
||||
11
ReactAndroid/src/main/third-party/java/fest/BUCK
vendored
Normal file
11
ReactAndroid/src/main/third-party/java/fest/BUCK
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
prebuilt_jar(
|
||||
name = 'fest',
|
||||
binary_jar = ':fest-binary-jar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'fest-binary-jar',
|
||||
url = 'mvn:org.easytesting:fest-assert-core:jar:2.0M10',
|
||||
sha1 = 'cb7c91cf614901928ae405f19d9bcdedf82781db',
|
||||
)
|
||||
5
ReactAndroid/src/main/third-party/java/infer-annotations/BUCK
vendored
Normal file
5
ReactAndroid/src/main/third-party/java/infer-annotations/BUCK
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
prebuilt_jar(
|
||||
name = 'infer-annotations',
|
||||
binary_jar = 'infer-annotations-1.5.jar',
|
||||
visibility = ['//ReactAndroid/...'],
|
||||
)
|
||||
11
ReactAndroid/src/main/third-party/java/jackson/BUCK
vendored
Normal file
11
ReactAndroid/src/main/third-party/java/jackson/BUCK
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
prebuilt_jar(
|
||||
name = 'core',
|
||||
binary_jar = ':jackson-core-binary-jar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'jackson-core-binary-jar',
|
||||
url = 'mvn:com.fasterxml.jackson.core:jackson-core:jar:2.2.3',
|
||||
sha1 = '1a0113da2cab5f4c216b4e5e7c1dbfaa67087e14',
|
||||
)
|
||||
11
ReactAndroid/src/main/third-party/java/javapoet/BUCK
vendored
Normal file
11
ReactAndroid/src/main/third-party/java/javapoet/BUCK
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
prebuilt_jar(
|
||||
name = 'javapoet',
|
||||
binary_jar = ':jsr305-binary-jar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'jsr305-binary-jar',
|
||||
url = 'mvn:com.squareup:javapoet:jar:1.2.0',
|
||||
sha1 = 'ad3ba65c1788f4d814a4da056323e2b84412fb3c',
|
||||
)
|
||||
11
ReactAndroid/src/main/third-party/java/jsr-305/BUCK
vendored
Normal file
11
ReactAndroid/src/main/third-party/java/jsr-305/BUCK
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
prebuilt_jar(
|
||||
name = 'jsr-305',
|
||||
binary_jar = ':jsr305-binary-jar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'jsr305-binary-jar',
|
||||
url = 'mvn:com.google.code.findbugs:jsr305:jar:3.0.0',
|
||||
sha1 = '5871fb60dc68d67da54a663c3fd636a10a532948',
|
||||
)
|
||||
11
ReactAndroid/src/main/third-party/java/junit/BUCK
vendored
Normal file
11
ReactAndroid/src/main/third-party/java/junit/BUCK
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
prebuilt_jar(
|
||||
name = 'junit',
|
||||
binary_jar = ':download-junit',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'download-junit',
|
||||
url = 'mvn:junit:junit:jar:4.12',
|
||||
sha1 = '2973d150c0dc1fefe998f834810d68f278ea58ec',
|
||||
)
|
||||
11
ReactAndroid/src/main/third-party/java/mockito/BUCK
vendored
Normal file
11
ReactAndroid/src/main/third-party/java/mockito/BUCK
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
prebuilt_jar(
|
||||
name = 'mockito',
|
||||
binary_jar = ':mockito-binary-jar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'mockito-binary-jar',
|
||||
url = 'mvn:org.mockito:mockito-core:jar:1.10.19',
|
||||
sha1 = 'e8546f5bef4e061d8dd73895b4e8f40e3fe6effe',
|
||||
)
|
||||
23
ReactAndroid/src/main/third-party/java/okhttp/BUCK
vendored
Normal file
23
ReactAndroid/src/main/third-party/java/okhttp/BUCK
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
prebuilt_jar(
|
||||
name = 'okhttp',
|
||||
binary_jar = ':okhttp-binary-jar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'okhttp-binary-jar',
|
||||
url = 'mvn:com.squareup.okhttp:okhttp:jar:2.5.0',
|
||||
sha1 = '4de2b4ed3445c37ec1720a7d214712e845a24636'
|
||||
)
|
||||
|
||||
prebuilt_jar(
|
||||
name = 'okhttp-ws',
|
||||
binary_jar = ':okhttp-ws-binary-jar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'okhttp-ws-binary-jar',
|
||||
url = 'mvn:com.squareup.okhttp:okhttp-ws:jar:2.5.0',
|
||||
sha1 = '0e9753b7dcae5deca92e871c5c759067070b07bc',
|
||||
)
|
||||
11
ReactAndroid/src/main/third-party/java/okio/BUCK
vendored
Normal file
11
ReactAndroid/src/main/third-party/java/okio/BUCK
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
prebuilt_jar(
|
||||
name = 'okio',
|
||||
binary_jar = ':okio-binary-jar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'okio-binary-jar',
|
||||
url = 'mvn:com.squareup.okio:okio:jar:1.6.0',
|
||||
sha1 = '98476622f10715998eacf9240d6b479f12c66143',
|
||||
)
|
||||
45
ReactAndroid/src/main/third-party/java/robolectric3/robolectric/BUCK
vendored
Normal file
45
ReactAndroid/src/main/third-party/java/robolectric3/robolectric/BUCK
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
android_library(
|
||||
name = 'robolectric',
|
||||
exported_deps = [
|
||||
':robolectric-core',
|
||||
':robolectric-resources',
|
||||
':robolectric-annotations',
|
||||
],
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
prebuilt_jar(
|
||||
name = 'robolectric-core',
|
||||
binary_jar = ':robolectric-binary-jar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'robolectric-binary-jar',
|
||||
url = 'mvn:org.robolectric:robolectric:jar:3.0',
|
||||
sha1 = 'f888cea3bc1a24110e315eb9827ab593610ea62f',
|
||||
)
|
||||
|
||||
prebuilt_jar(
|
||||
name = 'robolectric-resources',
|
||||
binary_jar = ':robolectric-resources-binary-jar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'robolectric-resources-binary-jar',
|
||||
url = 'mvn:org.robolectric:robolectric-resources:jar:3.0',
|
||||
sha1 = '1ab609054aab67cd13a434567467f4b4774f2465',
|
||||
)
|
||||
|
||||
prebuilt_jar(
|
||||
name = 'robolectric-annotations',
|
||||
binary_jar = ':robolectric-annotations-binary-jar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'robolectric-annotations-binary-jar',
|
||||
url = 'mvn:org.robolectric:robolectric-annotations:jar:3.0',
|
||||
sha1 = '2a6cfc072d7680694c1ff893c5dc8fec33163110',
|
||||
)
|
||||
23
ReactAndroid/src/main/third-party/java/stetho/BUCK
vendored
Normal file
23
ReactAndroid/src/main/third-party/java/stetho/BUCK
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
prebuilt_jar(
|
||||
name = 'stetho',
|
||||
binary_jar = ':stetho-binary-jar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'stetho-binary-jar',
|
||||
url = 'mvn:com.facebook.stetho:stetho:jar:1.2.0',
|
||||
sha1 = '1d6cdb8ce8185b8b23213fad48a83987fb6d2d67',
|
||||
)
|
||||
|
||||
prebuilt_jar(
|
||||
name = 'stetho-okhttp',
|
||||
binary_jar = ':stetho-okhttp-binary-jar',
|
||||
visibility = ['//ReactAndroid/...',],
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = 'stetho-okhttp-binary-jar',
|
||||
url = 'mvn:com.facebook.stetho:stetho-okhttp:jar:1.2.0',
|
||||
sha1 = '6c5c9380e245c4ff5be2b2a49dcbb0200c39798e',
|
||||
)
|
||||
Reference in New Issue
Block a user