From 470b998b6183ec69208ab065fbcf9222d9eb141d Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 4 May 2023 00:04:43 +0000 Subject: [PATCH] Add a vector launcher icon. Currently the smiling face with sunglasses emoji from openmoji. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4284 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- Makefile | 9 +++- src/android/AndroidManifest.xml | 1 + src/android/res/drawable/icon.xml | 78 +++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 src/android/res/drawable/icon.xml diff --git a/Makefile b/Makefile index d97eef6a..ed7be633 100644 --- a/Makefile +++ b/Makefile @@ -438,9 +438,14 @@ out/res/layout_activity_main.xml.flat: src/android/res/layout/activity_main.xml @echo [aapt2] $@ @$(ANDROID_BUILD_TOOLS)/aapt2 compile -o out/res/ src/android/res/layout/activity_main.xml -out/apk/res.apk out/gen/com/unprompted/tildefriends/R.java: out/res/layout_activity_main.xml.flat src/android/AndroidManifest.xml +out/res/drawable_icon.xml.flat: src/android/res/drawable/icon.xml @mkdir -p $(dir $@) - @$(ANDROID_BUILD_TOOLS)/aapt2 link -I $(ANDROID_PLATFORM)/android.jar out/res/layout_activity_main.xml.flat --manifest src/android/AndroidManifest.xml -o out/apk/res.apk --java out/gen/ + @echo [aapt2] $@ + @$(ANDROID_BUILD_TOOLS)/aapt2 compile -o out/res/ src/android/res/drawable/icon.xml + +out/apk/res.apk out/gen/com/unprompted/tildefriends/R.java: out/res/layout_activity_main.xml.flat out/res/drawable_icon.xml.flat src/android/AndroidManifest.xml + @mkdir -p $(dir $@) + @$(ANDROID_BUILD_TOOLS)/aapt2 link -I $(ANDROID_PLATFORM)/android.jar out/res/layout_activity_main.xml.flat out/res/drawable_icon.xml.flat --manifest src/android/AndroidManifest.xml -o out/apk/res.apk --java out/gen/ JAVA_FILES := out/gen/com/unprompted/tildefriends/R.java $(wildcard src/android/com/unprompted/tildefriends/*.java) CLASS_FILES := $(foreach src,$(JAVA_FILES),out/classes/com/unprompted/tildefriends/$(notdir $(src:.java=.class))) diff --git a/src/android/AndroidManifest.xml b/src/android/AndroidManifest.xml index 0a885be8..f5c1b4f2 100644 --- a/src/android/AndroidManifest.xml +++ b/src/android/AndroidManifest.xml @@ -9,6 +9,7 @@ diff --git a/src/android/res/drawable/icon.xml b/src/android/res/drawable/icon.xml new file mode 100644 index 00000000..c2bbc150 --- /dev/null +++ b/src/android/res/drawable/icon.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + +