1#!/usr/bin/env bash 2# Copyright (c) Meta Platforms, Inc. and affiliates. 3# All rights reserved. 4# 5# This source code is licensed under the BSD-style license found in the 6# LICENSE file in the root directory of this source tree. 7 8set -eu 9 10AAR_URL="https://ossci-android.s3.us-west-1.amazonaws.com/executorch/release/executorch-241002/executorch.aar" 11AAR_SHASUM_URL="https://ossci-android.s3.us-west-1.amazonaws.com/executorch/release/executorch-241002/executorch.aar.sha256sums" 12LIBS_PATH="$(dirname "$0")/app/libs" 13 14mkdir -p "$LIBS_PATH" 15 16pushd "$LIBS_PATH" 17curl -O "${AAR_SHASUM_URL}" 18shasum --check --status executorch.aar.sha256sums || curl "${AAR_URL}" -o executorch.aar 19popd 20