1#!/bin/bash 2# Copyright 2020 The Chromium Authors. All rights reserved. 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5 6# Usage: 7# Make edits to *.java and *.pgcfg 8# Then run: ./build.sh | less 9 10 11# Finds any version of dexdump available 12dexdumps=( ../../android_sdk/public/build-tools/*/dexdump ) 13DEXDUMP=${dexdumps[0]} 14 15rm -f *.class 16javac *.java && \ 17java -cp ../lib/r8.jar com.android.tools.r8.R8 *.class --output . --lib ../../jdk/current --no-minification --pg-conf playground.pgcfg && \ 18$DEXDUMP -d classes.dex > dexdump.txt 19echo 'dexdump.txt updated.' 20