From f64be5ba90ea5e90cd798b2e084c23b9f9e37bc0 Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Mon, 10 Oct 2022 08:30:57 -0700 Subject: [PATCH] add setup instructions/command to load secrets file for Android --- Makefile | 3 +++ android/Omnivore/README.md | 11 +++++++++++ android/Omnivore/secrets.xml | 4 ++++ 3 files changed, 18 insertions(+) create mode 100644 android/Omnivore/README.md create mode 100644 android/Omnivore/secrets.xml diff --git a/Makefile b/Makefile index c4d6741be..dd313b7f4 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,9 @@ apple_extension_gen: $(MAKE) -C apple extension_gen droid: + @if ! [ -e android/Omnivore/app/src/main/res/values/secrets.xml ]; then \ + cp android/Omnivore/secrets.xml android/Omnivore/app/src/main/res/values/secrets.xml; \ + fi studio android/Omnivore webview_gen: diff --git a/android/Omnivore/README.md b/android/Omnivore/README.md new file mode 100644 index 000000000..cd631fb4f --- /dev/null +++ b/android/Omnivore/README.md @@ -0,0 +1,11 @@ +# Omnivore - Android + +## Setup + +From the root directory run the following command: + +`make droid` + +This will copy a secrets.xml file into the strings directory. +If you have a PSPDF license key then paste that value into the +`pspdfkit_license_key` entry in that file. diff --git a/android/Omnivore/secrets.xml b/android/Omnivore/secrets.xml new file mode 100644 index 000000000..89a05bdea --- /dev/null +++ b/android/Omnivore/secrets.xml @@ -0,0 +1,4 @@ + + + unset + \ No newline at end of file