Open janwillemb opened 7 years ago
Solved it. If you have a version in config.xml, it has to be a semantic-versioned string, or at least a string with max 3 elements. I had 2017.04.0.1, which is our internal versioning system. I changed it to 2017.04.01, and now it works. It would be nice if the plugin could warn about this and continues without using the version.
Change the method deconstructVersionLabel to:
private String deconstructVersionLabel(String label) {
String result = label.split(":")[0];
int partsCount = result.split("\\.").length;
if (partsCount != 3) {
result = "";
logMessage("VERSIONLABEL", "Use binary/semantic versioning (major.minor.patch)");
}
return result;
}
And remove the [0] behind the two usages of this method.
This is actually an issue in ionic-plugin-deploy. Can this issue be moved?
And I think the server should do this check, not the client.
For context: The function currently lives at https://github.com/driftyco/ionic-plugin-deploy/blob/master/src/android/IonicDeploy.java#L157-L159 for Android and https://github.com/driftyco/ionic-plugin-deploy/blob/master/src/ios/IonicDeploy.m#L103-L105 for iOS.
@janwillemb I think the best way to get this fixed would be if you created a PR on ionic-plugin-deploy
yourself.
When checking for a new version, the deploy plugin never finds an update, but apparently gets an error while parsing the response. In the logcat, these are the only messages about the update:
My plugin versions are:
relevant package.json snippet:
app-id: 457662c0
Device manufacturer=LGE model=Nexus 5X platform=Android
I already tried uninstalling and reinstalling the plugins, uninstalling and reinstalling all node modules, removing android platform entirely, deleting the node_modules, platforms, plugins folder and reinstalling everything, to no avail.
Is there something I can do to do more logging about the request? Or can anyone check if I am doing something wrong?