Clean up gradle tasks / formatting

This commit is contained in:
Victor Shcherb 2020-11-04 15:36:44 +01:00
parent 258410823c
commit 4a327a9834
3 changed files with 9 additions and 21 deletions

View file

@ -106,9 +106,11 @@ public class TspAnt {
// Allocates all memory. // Allocates all memory.
// Adds 1 to edge lengths to ensure no zero length edges. // Adds 1 to edge lengths to ensure no zero length edges.
public TspAnt readGraph(List<LatLon> intermediates, LatLon start, LatLon end) { public TspAnt readGraph(List<LatLon> intermediates, LatLon start, LatLon end) {
boolean keepEndPoint = end != null; boolean keepEndPoint = end != null;
List<LatLon> l = new ArrayList<LatLon>(); List<LatLon> l = new ArrayList<LatLon>();
l.add(start); if (start != null) {
l.add(start);
}
l.addAll(intermediates); l.addAll(intermediates);
if (keepEndPoint) { if (keepEndPoint) {
l.add(end); l.add(end);

View file

@ -188,38 +188,24 @@ android {
dimension "version" dimension "version"
applicationId "net.osmand" applicationId "net.osmand"
} }
freeres {
dimension "version"
applicationId "net.osmand"
resConfig "en"
}
freecustom {
dimension "version"
applicationId "net.osmand.freecustom"
}
full { full {
dimension "version" dimension "version"
applicationId "net.osmand.plus" applicationId "net.osmand.plus"
} }
fulldev {
dimension "version"
applicationId "net.osmand.plus"
resConfig "en"
// resConfigs "xxhdpi", "nodpi"
}
freehuawei { freehuawei {
dimension "version" dimension "version"
applicationId "net.osmand.huawei" applicationId "net.osmand.huawei"
} }
// CoreVersion // CoreVersion
// Build that doesn't include 3D OpenGL
legacy { legacy {
dimension "coreversion" dimension "coreversion"
} }
// Build that includes 3D OpenGL release
qtcore { qtcore {
dimension "coreversion" dimension "coreversion"
} }
// Build that includes 3D OpenGL debug
qtcoredebug { qtcoredebug {
dimension "coreversion" dimension "coreversion"
} }

View file

@ -495,7 +495,7 @@ public abstract class ImageCard extends AbstractCard {
} }
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); LOG.error(e);
} }
if (listener != null) { if (listener != null) {
listener.onPostProcess(result); listener.onPostProcess(result);