@NotNull public String getLocation() { String location = mySdkManager.getLocation(); if (location.length() > 0) { char lastChar = location.charAt(location.length() - 1); if (lastChar == '/' || lastChar == File.separatorChar) { return location.substring(0, location.length() - 1); } } return location; }
@NotNull public IAndroidTarget[] getTargets() { if (myTargets == null) { IAndroidTarget[] targets = mySdkManager.getTargets(); if (targets != null) { myTargets = new IAndroidTarget[targets.length]; for (int i = 0; i < targets.length; i++) { myTargets[i] = new MyTargetWrapper(targets[i]); } } } return myTargets; }
@Nullable public IAndroidTarget findTargetByHashString(@NotNull String hashString) { final IAndroidTarget target = mySdkManager.getTargetFromHashString(hashString); return target != null ? new MyTargetWrapper(target) : null; }