Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc2b7655 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

add support for a16 qpr2

parent 6eb4f34c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -126,6 +126,12 @@ for branch in ${BRANCH_NAME//,/ }; do
    elif [[ "${BRANCH_NAME}" =~ $regex_part1"a16"$regex_part2 || "${BRANCH_NAME}" =~ "a16" ]]; then
      themuppets_branch="lineage-23.0"
      android_version="16"
    elif [[ "${BRANCH_NAME}" =~ $regex_part1"a16.1"$regex_part2 || "${BRANCH_NAME}" =~ "a16.1" ]]; then
      themuppets_branch="lineage-23.1"
      android_version="16"
    elif [[ "${BRANCH_NAME}" =~ $regex_part1"a16.2"$regex_part2 || "${BRANCH_NAME}" =~ "a16.2" ]]; then
      themuppets_branch="lineage-23.2"
      android_version="16"
    else
      echo ">> [$(date)] Building branch $branch is not (yet) suppported"
      exit 1
+7 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ exit_script() {
sync_successful=true

use_openjdk_from_ubuntu=false
branch_dir=$(sed -E 's/^v[0-9](\.[0-9]*){0,2}(-(beta|alpha|rc)(\.[0-9]*){0,1}){0,1}-(s|t|u|a14|a15|a16)(-[a-zA-Z0-9_]*)*$/\5/' <<<"${BRANCH_NAME}")
branch_dir=$(sed -E 's/^v[0-9](\.[0-9]*){0,2}(-(beta|alpha|rc)(\.[0-9]*){0,1}){0,1}-(s|t|u|a14|a15|a16\.2|a16\.1|a16)(-[a-zA-Z0-9_]*)*$/\5/' <<<"${BRANCH_NAME}")
branch_dir=${branch_dir^^}
default_key_dir="user-keys"

@@ -114,6 +114,12 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then
  elif [[ "${BRANCH_NAME}" =~ $regex_part1"a15"$regex_part2 || "${BRANCH_NAME}" =~ "a15" ]]; then
    themuppets_branch="lineage-22.2"
    android_version="15"
  elif [[ "${BRANCH_NAME}" =~ $regex_part1"a16.1"$regex_part2 || "${BRANCH_NAME}" =~ "a16.1" ]]; then
    themuppets_branch="lineage-23.1"
    android_version="16"
  elif [[ "${BRANCH_NAME}" =~ $regex_part1"a16.2"$regex_part2 || "${BRANCH_NAME}" =~ "a16.2" ]]; then
    themuppets_branch="lineage-23.2"
    android_version="16"
  elif [[ "${BRANCH_NAME}" =~ $regex_part1"a16"$regex_part2 || "${BRANCH_NAME}" =~ "a16" ]]; then
    themuppets_branch="lineage-23.0"
    android_version="16"