diff --git a/recipe_modules/gclient/config.py b/recipe_modules/gclient/config.py index c4f9737f7..9eece8264 100644 --- a/recipe_modules/gclient/config.py +++ b/recipe_modules/gclient/config.py @@ -597,3 +597,30 @@ def chromedriver(c): def ndk_next(c): c.revisions['src/third_party/android_tools/ndk'] = 'origin/next' +@config_ctx() +def android_vr_apks(c): + """Add VR Services and Daydream Home APKs to the gclient hooks.""" + c.hooks.extend([ + str({ + 'name': 'vr_services_apks', + 'pattern': '.', + 'action': [ + 'python', + 'src/build/android/update_deps/update_third_party_deps.py', + 'download', + '-b', 'chrome-vr-test-apks/vr_services', + '-l', 'third_party/gvr-android-sdk/test-apks/vr_services' + ], + }), + str({ + 'name': 'daydream_home_apks', + 'pattern': '.', + 'action': [ + 'python', + 'src/build/android/update_deps/update_third_party_deps.py', + 'download', + '-b', 'chrome-vr-test-apks/daydream_home', + '-l', 'third_party/gvr-android-sdk/test-apks/daydream_home' + ], + }) + ]) diff --git a/recipe_modules/gclient/example.py b/recipe_modules/gclient/example.py index d7f5264b7..0dea54003 100644 --- a/recipe_modules/gclient/example.py +++ b/recipe_modules/gclient/example.py @@ -12,6 +12,7 @@ DEPS = [ TEST_CONFIGS = [ 'android', 'android_bare', + 'android_vr_apks', 'blink', 'boringssl', 'build_internal',