summaryrefslogtreecommitdiffstats
path: root/kotlin.dex.do
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2023-04-13 23:53:48 +0200
committerTomasz Kramkowski <tomasz@kramkow.ski>2023-04-14 03:12:14 +0200
commitdb091bfd1db36ab66340ccad2eb7b6393a0aa3da (patch)
tree5a70412afcb4d32086effffe84d7de3161790f46 /kotlin.dex.do
parente27870b137aeab108816f4eb80ddaea1e639c3fb (diff)
downloadandroid-jetpack-compose-redo-db091bfd1db36ab66340ccad2eb7b6393a0aa3da.tar.gz
android-jetpack-compose-redo-db091bfd1db36ab66340ccad2eb7b6393a0aa3da.tar.xz
android-jetpack-compose-redo-db091bfd1db36ab66340ccad2eb7b6393a0aa3da.zip
Basic kotlin java application working
Diffstat (limited to 'kotlin.dex.do')
-rw-r--r--kotlin.dex.do11
1 files changed, 11 insertions, 0 deletions
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