Commit 2961d7df authored by Bart Mathijssen's avatar Bart Mathijssen Committed by Evan W. Patton

Add "Target Android SDK" information to Help > About menu

parent 638b88e0
...@@ -620,6 +620,14 @@ public interface OdeMessages extends Messages, AutogeneratedOdeMessages { ...@@ -620,6 +620,14 @@ public interface OdeMessages extends Messages, AutogeneratedOdeMessages {
@Description("Label of the link for About") @Description("Label of the link for About")
String aboutMenuItem(); String aboutMenuItem();
@DefaultMessage("Use Companion: {0} or {1}")
@Description("Label showing the companion version")
String useCompanion(String version, String alternateVersion);
@DefaultMessage("Target Android SDK: {0} ({1})")
@Description("Label showing the target sdk version and the target android version")
String targetSdkVersion(int sdk, String name);
@DefaultMessage("Companion Information") @DefaultMessage("Companion Information")
@Description("Information about the Companion") @Description("Information about the Companion")
String companionInformation(); String companionInformation();
......
...@@ -857,6 +857,8 @@ WheelDiameterProperties=WielDiameters ...@@ -857,6 +857,8 @@ WheelDiameterProperties=WielDiameters
WithinRangeEventEnabledProperties=BinnenBereikGebeurtenisGeactiveerd WithinRangeEventEnabledProperties=BinnenBereikGebeurtenisGeactiveerd
YProperties=Y YProperties=Y
aboutMenuItem=Over aboutMenuItem=Over
useCompanion=Gebruik Companion: {0} of {1}
targetSdkVersion=Doel Android SDK: {0} ({1})
accelerometerSensorComponentPallette=VersnellingsSensor accelerometerSensorComponentPallette=VersnellingsSensor
argumentsParams=argumenten argumentsParams=argumenten
backButton=Terug backButton=Terug
......
...@@ -785,7 +785,8 @@ public class TopToolbar extends Composite { ...@@ -785,7 +785,8 @@ public class TopToolbar extends Composite {
VerticalPanel DialogBoxContents = new VerticalPanel(); VerticalPanel DialogBoxContents = new VerticalPanel();
String html = MESSAGES.gitBuildId(GitBuildId.getDate(), GitBuildId.getVersion()) + String html = MESSAGES.gitBuildId(GitBuildId.getDate(), GitBuildId.getVersion()) +
"<BR/>Use Companion: " + BlocklyPanel.getCompVersion(); "<BR/>" + MESSAGES.useCompanion(YaVersion.PREFERRED_COMPANION, YaVersion.PREFERRED_COMPANION + "u") +
"<BR/>" + MESSAGES.targetSdkVersion(YaVersion.TARGET_SDK_VERSION, YaVersion.TARGET_ANDROID_VERSION);
Config config = Ode.getInstance().getSystemConfig(); Config config = Ode.getInstance().getSystemConfig();
String releaseNotesUrl = config.getReleaseNotesUrl(); String releaseNotesUrl = config.getReleaseNotesUrl();
if (!Strings.isNullOrEmpty(releaseNotesUrl)) { if (!Strings.isNullOrEmpty(releaseNotesUrl)) {
......
...@@ -71,7 +71,8 @@ public class BlocklyPanel extends HTMLPanel { ...@@ -71,7 +71,8 @@ public class BlocklyPanel extends HTMLPanel {
exportMethodsToJavascript(); exportMethodsToJavascript();
// Tell the blockly world about companion versions. // Tell the blockly world about companion versions.
setLanguageVersion(YaVersion.YOUNG_ANDROID_VERSION, YaVersion.BLOCKS_LANGUAGE_VERSION); setLanguageVersion(YaVersion.YOUNG_ANDROID_VERSION, YaVersion.BLOCKS_LANGUAGE_VERSION);
setPreferredCompanion(YaVersion.PREFERRED_COMPANION, YaVersion.COMPANION_UPDATE_URL, setPreferredCompanion(MESSAGES.useCompanion(YaVersion.PREFERRED_COMPANION, YaVersion.PREFERRED_COMPANION + "u"),
YaVersion.COMPANION_UPDATE_URL,
YaVersion.COMPANION_UPDATE_URL1, YaVersion.COMPANION_UPDATE_URL1,
YaVersion.COMPANION_UPDATE_EMULATOR_URL); YaVersion.COMPANION_UPDATE_EMULATOR_URL);
for (int i = 0; i < YaVersion.ACCEPTABLE_COMPANIONS.length; i++) { for (int i = 0; i < YaVersion.ACCEPTABLE_COMPANIONS.length; i++) {
......
...@@ -9,6 +9,7 @@ package com.google.appinventor.buildserver; ...@@ -9,6 +9,7 @@ package com.google.appinventor.buildserver;
import com.google.appinventor.buildserver.util.AARLibraries; import com.google.appinventor.buildserver.util.AARLibraries;
import com.google.appinventor.buildserver.util.AARLibrary; import com.google.appinventor.buildserver.util.AARLibrary;
import com.google.appinventor.components.common.ComponentDescriptorConstants; import com.google.appinventor.components.common.ComponentDescriptorConstants;
import com.google.appinventor.components.common.YaVersion;
import com.google.common.annotations.VisibleForTesting; import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Charsets; import com.google.common.base.Charsets;
import com.google.common.base.Strings; import com.google.common.base.Strings;
...@@ -78,8 +79,6 @@ public final class Compiler { ...@@ -78,8 +79,6 @@ public final class Compiler {
public static int currentProgress = 10; public static int currentProgress = 10;
public static final int TARGET_SDK_VERSION = 28;
// Kawa and DX processes can use a lot of memory. We only launch one Kawa or DX process at a time. // Kawa and DX processes can use a lot of memory. We only launch one Kawa or DX process at a time.
private static final Object SYNC_KAWA_OR_DX = new Object(); private static final Object SYNC_KAWA_OR_DX = new Object();
...@@ -874,7 +873,7 @@ public final class Compiler { ...@@ -874,7 +873,7 @@ public final class Compiler {
// the specified SDK version. We right now support building for minSDK 4. // the specified SDK version. We right now support building for minSDK 4.
// We might also want to allow users to specify minSdk version or targetSDK version. // We might also want to allow users to specify minSdk version or targetSDK version.
out.write(" <uses-sdk android:minSdkVersion=\"" + minSdk + "\" android:targetSdkVersion=\"" + out.write(" <uses-sdk android:minSdkVersion=\"" + minSdk + "\" android:targetSdkVersion=\"" +
TARGET_SDK_VERSION + "\" />\n"); YaVersion.TARGET_SDK_VERSION + "\" />\n");
out.write(" <application "); out.write(" <application ");
......
...@@ -538,6 +538,12 @@ public class YaVersion { ...@@ -538,6 +538,12 @@ public class YaVersion {
public static final int BLOCKS_LANGUAGE_VERSION = 27; public static final int BLOCKS_LANGUAGE_VERSION = 27;
// ................................. Target SDK Version Number ..................................
public static final int TARGET_SDK_VERSION = 28;
public static final String TARGET_ANDROID_VERSION = "Android 9.0 Pie";
// ................................. Component Version Numbers .................................. // ................................. Component Version Numbers ..................................
// NOTE(lizlooney,user) - when a new component is added: // NOTE(lizlooney,user) - when a new component is added:
...@@ -1258,7 +1264,7 @@ public class YaVersion { ...@@ -1258,7 +1264,7 @@ public class YaVersion {
public static final String ACCEPTABLE_COMPANION_PACKAGE = "edu.mit.appinventor.aicompanion3"; public static final String ACCEPTABLE_COMPANION_PACKAGE = "edu.mit.appinventor.aicompanion3";
public static final String PREFERRED_COMPANION = "2.55 or 2.55u"; public static final String PREFERRED_COMPANION = "2.55";
public static final String COMPANION_UPDATE_URL = ""; public static final String COMPANION_UPDATE_URL = "";
public static final String COMPANION_UPDATE_URL1 = ""; public static final String COMPANION_UPDATE_URL1 = "";
public static final String COMPANION_UPDATE_EMULATOR_URL = ""; public static final String COMPANION_UPDATE_EMULATOR_URL = "";
......
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