Unverified Commit 78e59f34 authored by Evan W. Patton's avatar Evan W. Patton Committed by GitHub

Fix hard-coded extension path in ExternalComponentGenerator (#2114)

Change-Id: I7ce9138f8d58bd1b9abd9b26adf16ce84770afc7
parent 59de9e87
...@@ -369,7 +369,10 @@ public class ExternalComponentGenerator { ...@@ -369,7 +369,10 @@ public class ExternalComponentGenerator {
} }
private static String getClassPackage(String classAbsolutePath) { private static String getClassPackage(String classAbsolutePath) {
String parentPath = "/appinventor/components/build/classes/AndroidRuntime/"; String parentPath = androidRuntimeClassDirPath;
if (!parentPath.endsWith("/")) {
parentPath += "/";
}
parentPath = parentPath.replace("/", File.separator); parentPath = parentPath.replace("/", File.separator);
String componentPackage = classAbsolutePath.substring(classAbsolutePath.indexOf(parentPath) + parentPath.length()); String componentPackage = classAbsolutePath.substring(classAbsolutePath.indexOf(parentPath) + parentPath.length());
componentPackage = componentPackage.substring(0, componentPackage.lastIndexOf(File.separator)); componentPackage = componentPackage.substring(0, componentPackage.lastIndexOf(File.separator));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment