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

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

Browser: Build debuggable apks

parent 54a1e1a8
Loading
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -88,6 +88,19 @@ build() {
    build_args+=' trichrome_certdigest="c8a2e9bccf597c2fb6dc66bee293fc13f2fc47ec77bc6b2b0d52c11f51192ab8"'

    echo ">> [$(date)] Using AOSP test-key for debug build"
    # Create an array of strings to replace
    replacements=(
        "is_official_build=true|is_official_build=false"
        "debuggable_apks=false|debuggable_apks=true"
        "is_debug=false|is_debug=true"
    )

    # Loop through the array and apply the replacements
    for replacement in "${replacements[@]}"; do
        IFS="|" read find replace <<< "$replacement"
        build_args=$(echo "$build_args" | sed "s/\(${find}\)/${replace}/")
    done

    gn gen "out/$1" --args="$build_args"
    ninja -C out/$1 $build_targets