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