From 16a36c812fabda812ecf3aaa7f12fa6f44c66b2e Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Fri, 21 Apr 2023 23:50:38 +0100 Subject: Jetpack Compose and material --- paste.jar.do | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 paste.jar.do (limited to 'paste.jar.do') diff --git a/paste.jar.do b/paste.jar.do new file mode 100755 index 0000000..f3255e3 --- /dev/null +++ b/paste.jar.do @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -e +redo-ifchange .vars.rc packages.rc +. ./.vars.rc +. ./packages.rc +classpath=($PLATFORM/android.jar compile.packages.jar R.jar) +plugin=$(package_file "$compose_compiler") +sources=(MainActivity.kt Theme.kt) +redo-ifchange "$KOTLINC" "$plugin" "$classpath" "${classpath[@]}" "${sources[@]}" +IFS=:; classpath=${classpath[*]} +tmp=$(mktemp -d) +trap 'rm -rf "$tmp"' EXIT +"$KOTLINC" -Xplugin="$plugin" -jvm-target 1.8 -cp "$classpath" -d "$tmp" "${sources[@]}" +jar --create --no-compress --date=2000-01-01T00:00:00Z --file "$3" -C "$tmp" . +# vim:ft=bash -- cgit v1.2.3-54-g00ecf