From 65655f4f6d49e86ad39ec066663b7f28941081ea Mon Sep 17 00:00:00 2001 From: sneurlax Date: Mon, 3 Oct 2022 21:30:13 -0500 Subject: [PATCH 1/2] Add prebuild script Creates template lib/external_api_keys.dart file if it doesn't already exist --- scripts/prebuild.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 scripts/prebuild.sh diff --git a/scripts/prebuild.sh b/scripts/prebuild.sh new file mode 100644 index 000000000..31acfa82c --- /dev/null +++ b/scripts/prebuild.sh @@ -0,0 +1,6 @@ +# Create template lib/external_api_keys.dart file if it doesn't already exist +KEYS=../lib/external_api_keys.dart +if ! test -f "$KEYS"; then + echo 'prebuild.sh: creating template lib/external_api_keys.dart file' + echo 'const kChangeNowApiKey = "";' > $KEYS +fi From 41eacf4a4c191959de56ca304825d6b9cbc05b5a Mon Sep 17 00:00:00 2001 From: sneurlax Date: Mon, 3 Oct 2022 21:33:52 -0500 Subject: [PATCH 2/2] Document prebuild script use Put prebuild script before either platform plugin section so future prebuild tasks can be handled here --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 7c996db04..a7ee57bd9 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,15 @@ sudo apt install build-essential debhelper cmake libclang-dev libncurses5-dev cl sudo apt install unzip automake build-essential file pkg-config git python libtool libtinfo5 cmake openjdk-8-jre-headless ``` +Run prebuild script + +``` +cd scripts +./prebuild.sh +// when finished go back to the root directory +cd .. +``` + Building plugins for Android ``` cd scripts/android/