2016-08-15 17:29:28 -07:00
|
|
|
#!/bin/bash
|
2010-01-02 19:10:08 +00:00
|
|
|
|
2012-08-26 20:18:37 -07:00
|
|
|
set -e -u
|
|
|
|
|
2017-06-20 22:05:39 -07:00
|
|
|
NODE=xw4
|
2019-05-29 19:16:56 -07:00
|
|
|
VARIANT=xw4NoSMS
|
2016-08-15 17:29:28 -07:00
|
|
|
CLASSPATH=${CLASSPATH:-""}
|
2012-08-26 20:18:37 -07:00
|
|
|
|
2012-02-13 23:35:41 -08:00
|
|
|
usage() {
|
|
|
|
[ $# -gt 0 ] && echo "Error: $1"
|
2018-07-20 07:55:07 -07:00
|
|
|
echo "usage: $0 [--variant xw4|xw4d]"
|
2012-02-13 23:35:41 -08:00
|
|
|
exit 1
|
|
|
|
}
|
2017-06-20 22:05:39 -07:00
|
|
|
while [ $# -gt 0 ]; do
|
|
|
|
case $1 in
|
2018-07-20 07:55:07 -07:00
|
|
|
--help)
|
|
|
|
usage
|
|
|
|
;;
|
|
|
|
--variant)
|
|
|
|
VARIANT=$2
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
usage "unexpected flag $1"
|
|
|
|
;;
|
2017-06-20 22:05:39 -07:00
|
|
|
esac
|
|
|
|
shift
|
2012-08-26 20:18:37 -07:00
|
|
|
done
|
|
|
|
|
2020-05-18 08:52:29 -07:00
|
|
|
if [ -d $(dirname $0)/../app/build/intermediates/javac/${VARIANT} ]; then
|
|
|
|
cd $(dirname $0)/../app/build/intermediates/javac/${VARIANT}/classes
|
|
|
|
else
|
|
|
|
echo "no such variant $VARIANT; try"
|
|
|
|
ALL=''
|
|
|
|
for DIR in $(ls -d $(dirname $0)/../app/build/intermediates/javac/*); do
|
2020-09-06 15:45:19 -07:00
|
|
|
ALL="$ALL --variant $(basename $DIR)"
|
2020-05-18 08:52:29 -07:00
|
|
|
done
|
|
|
|
echo "$ALL"
|
|
|
|
exit 1
|
|
|
|
fi
|
2012-02-13 23:35:41 -08:00
|
|
|
|
2014-10-16 20:16:35 -07:00
|
|
|
javah -o /tmp/javah$$.txt org.eehouse.android.${NODE}.jni.XwJNI
|
|
|
|
javap -s org.eehouse.android.${NODE}.jni.XwJNI
|
|
|
|
javap -s org.eehouse.android.${NODE}.jni.DrawCtx
|
|
|
|
javap -s org.eehouse.android.${NODE}.jni.UtilCtxt
|
2021-03-07 08:28:17 -08:00
|
|
|
javap -s org.eehouse.android.${NODE}.jni.DUtilCtxt
|
2014-10-16 20:16:35 -07:00
|
|
|
javap -s org.eehouse.android.${NODE}.jni.CommsAddrRec
|
2014-10-16 06:45:24 -07:00
|
|
|
javap -s org.eehouse.android.${NODE}.jni.CommsAddrRec\$CommsConnTypeSet
|
2014-10-16 20:16:35 -07:00
|
|
|
javap -s org.eehouse.android.${NODE}.jni.TransportProcs
|
|
|
|
javap -s org.eehouse.android.${NODE}.jni.JNIUtils
|
|
|
|
javap -s org.eehouse.android.${NODE}.Utils
|
2010-01-02 19:10:08 +00:00
|
|
|
cat /tmp/javah$$.txt
|
|
|
|
rm /tmp/javah$$.txt
|