From e3868480cf1ebecd4e4c4b6843b372e7bd098ca2 Mon Sep 17 00:00:00 2001 From: Sadaf Ebrahimi Date: Thu, 13 Jul 2023 17:00:43 +0000 Subject: Edit METADATA file The process of upgrading a library in external/ is done with tools/external_updater. Test: TreeHugger Change-Id: I8293ecb7a6e3626739cc3642093035229798a748 --- METADATA | 16 ++++++++++++++++ README.android | 7 ------- update-from-external.sh | 49 ------------------------------------------------- 3 files changed, 16 insertions(+), 56 deletions(-) delete mode 100644 README.android delete mode 100755 update-from-external.sh diff --git a/METADATA b/METADATA index d97975ca..3274c5f2 100644 --- a/METADATA +++ b/METADATA @@ -1,3 +1,19 @@ +name: "libphonenumber" +description: "Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers." third_party { + url { + type: HOMEPAGE + value: "https://github.com/google/libphonenumber" + } + url { + type: ARCHIVE + value: "https://github.com/google/libphonenumber/archive/refs/tags/v8.13.16.tar.gz" + } + version: "v8.13.16" license_type: NOTICE + last_upgrade_date { + year: 2023 + month: 7 + day: 11 + } } diff --git a/README.android b/README.android deleted file mode 100644 index 146b9b78..00000000 --- a/README.android +++ /dev/null @@ -1,7 +0,0 @@ -URL: https://github.com/googlei18n/libphonenumber -Version: 8.13.16 -License: Apache 2 -Description: Google Phone Number Library. - -Run ./update-from-external.sh to update this from a version that -has been pushed to the github repository. diff --git a/update-from-external.sh b/update-from-external.sh deleted file mode 100755 index 8135e9f2..00000000 --- a/update-from-external.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash -# -# Copyright 2016 The Android Open Source Project. -# -# Retrieves the specified version of libphonenumber into the -# external/libphonenumber directory -# -# Does not create a GIT commit. - -if [ $# -ne 1 ]; then - echo "usage: $0 " - echo " where is the version number, e.g. 7.7.3" - exit 1 -fi - -if [ -z "$ANDROID_BUILD_TOP" ]; then - echo "Missing environment variables. Did you run build/envsetup.sh and lunch?" 1>&2 - exit 1 -fi - -VERSION=$1 -TAG=v$VERSION -SOURCE="https://github.com/googlei18n/libphonenumber/" -DIR=$ANDROID_BUILD_TOP/external/libphonenumber - -tmp=$(mktemp -d) -trap "echo Removing temporary directory; rm -fr $tmp" EXIT - -echo "Fetching source into $tmp" -(cd $tmp; git clone -q -b $TAG --depth 1 $SOURCE source) - -for i in $(ls $tmp/source/java) -do - echo "Updating $i" - rm -fr $DIR/$i - cp -r $tmp/source/java/$i $DIR/$i - (cd $DIR; git add $i) -done - -for i in README.version README.android -do - echo "Updating $i" - cp $DIR/$i $tmp - sed "s|Version: .*$|Version: $VERSION|" < $tmp/$i > $DIR/$i - (cd $DIR; git add $i) -done - -${DIR}/srcgen/generate_android_src.sh -git add repackaged -- cgit v1.2.3