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();