From 328c232b8b95742087ca7ec7d102948d94f0cdd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Tue, 10 Dec 2019 16:46:12 +0800 Subject: [PATCH] remove build field: project home --- devkit/build.gradle | 6 ------ .../main/java/pub/doric/devkit/ui/DebugContextPanel.java | 2 -- 2 files changed, 8 deletions(-) diff --git a/devkit/build.gradle b/devkit/build.gradle index 0db05f35..c610fbd3 100644 --- a/devkit/build.gradle +++ b/devkit/build.gradle @@ -1,7 +1,5 @@ apply plugin: 'com.android.library' -def projectHome = project.rootDir.getParent() + "/demo" - android { compileSdkVersion 29 buildToolsVersion "29.0.2" @@ -22,10 +20,6 @@ android { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } - - debug { - buildConfigField "String", "PROJECT_HOME", "\"${projectHome}\"" - } } } diff --git a/devkit/src/main/java/pub/doric/devkit/ui/DebugContextPanel.java b/devkit/src/main/java/pub/doric/devkit/ui/DebugContextPanel.java index 3e372463..e3550980 100644 --- a/devkit/src/main/java/pub/doric/devkit/ui/DebugContextPanel.java +++ b/devkit/src/main/java/pub/doric/devkit/ui/DebugContextPanel.java @@ -17,7 +17,6 @@ import com.google.gson.JsonObject; import pub.doric.DoricContext; import pub.doric.DoricContextManager; -import pub.doric.devkit.BuildConfig; import pub.doric.devkit.DoricDev; import pub.doric.devkit.IDevKit; import pub.doric.devkit.R; @@ -71,7 +70,6 @@ public class DebugContextPanel extends DialogFragment { public void onClick(View v) { JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("contextId", doricContext.getContextId()); - jsonObject.addProperty("projectHome", BuildConfig.PROJECT_HOME); jsonObject.addProperty("source", doricContext.getSource().replace(".js", ".ts")); DoricDev.sendDevCommand(IDevKit.Command.DEBUG, jsonObject); dismissAllowingStateLoss();