From 8d82679c929c547e1df7cd56f5505f6ca5c3a1a6 Mon Sep 17 00:00:00 2001 From: Der_Googler <54764558+DerGoogler@users.noreply.github.com> Date: Fri, 27 Oct 2023 14:32:30 +0200 Subject: [PATCH] Update build.gradle --- Android/app/build.gradle | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Android/app/build.gradle b/Android/app/build.gradle index d8570600..357adb78 100755 --- a/Android/app/build.gradle +++ b/Android/app/build.gradle @@ -1,9 +1,6 @@ import groovy.json.* -import org.json.* -import com.google.gson.*; apply plugin: 'com.android.application' -apply plugin: 'com.github.node-gradle.node' def inputFile = new File("./../Website/package.json") @@ -105,6 +102,12 @@ configurations.implementation.setCanBeResolved(true) def npmRunPATH = "${System.getenv("PATH")}:./../../Website/node_modules/.bin:./../Website/node_modules/.bin" +tasks.register('npmInstall', Exec) { + workingDir "./../../Website" + environment PATH: npmRunPATH + commandLine "npm", "install", "-f" +} + tasks.register('webDev', Exec) { workingDir "./../../Website" environment PATH: npmRunPATH