From db091bfd1db36ab66340ccad2eb7b6393a0aa3da Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Thu, 13 Apr 2023 23:53:48 +0200 Subject: Basic kotlin java application working --- kotlin.dex.do | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 kotlin.dex.do (limited to 'kotlin.dex.do') diff --git a/kotlin.dex.do b/kotlin.dex.do new file mode 100644 index 0000000..5cd3eef --- /dev/null +++ b/kotlin.dex.do @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -e +redo-ifchange .vars.rc +. ./.vars.rc +src="$KOTLIN/lib/kotlin-stdlib.jar" +redo-ifchange "$BUILD_TOOLS/d8" "$PLATFORM/android.jar" "$src" +tmp=$(mktemp -d) +trap 'rm -rf "$tmp"' EXIT +"$BUILD_TOOLS/d8" --intermediate "$src" --classpath "$PLATFORM/android.jar" --output "$tmp" +mv "$tmp/classes.dex" "$3" +# vim:ft=bash -- cgit v1.2.3-54-g00ecf