Hello All,
I have been trying to fix this issue.
My approach to add this feature is as follows:
- write a public static method in the AssetManager class to check for extensions in the project. Something as below.
public static boolean hasExtensions(){
if (INSTANCE != null) {
if (!INSTANCE.extensions.isEmpty())
return true;
}
return false;
}
- Then in DesignToolbar.java, inside the private class SendToGalleryAction, call the hasExtensions() before making a request to publish to the gallery. If the user has extensions, then display the correct error message.
I wanted to know if this approach will work or not, and if not what else should I try out.
Secondly I wanted to ask how to write to the debug Console?
if (AssetManager.hasExtensions()){
OdeLog.wlog("cant publish project with extensions");
}else{
odeLog.wlog("good to go");
}
I have written the above code inside the SendToGalleryAction class and I am getting this error.