Skip to content

Commit 581fe01

Browse files
committed
Remove other build-related and tangential playground usages
1 parent 740ccf8 commit 581fe01

File tree

9 files changed

+5
-27
lines changed

9 files changed

+5
-27
lines changed

org-code-javabuilder/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ as the code for the `org.code` Java packages that are used in the Java Lab mini
2424
contains a package that can be imported by the user to interact with the theater
2525
mini-app, an image and sound editing app created for AP CSA and used in standalone Java
2626
Lab projects.
27-
* [playground](https://github.com/code-dot-org/javabuilder/tree/main/org-code-javabuilder/playground)
28-
is a prototype built to explore the idea of click-interactivity in Javabuilder and AP
29-
CSA. It contains a package that can be imported by the user to interact with the playground
30-
mini-app. Playground is primarily used for board game style programs.
3127
* [studentlib](https://github.com/code-dot-org/javabuilder/tree/main/org-code-javabuilder/studentlib)
3228
houses all external dependencies required to run and compile student code that are not already
3329
included by other mini-app packages.

org-code-javabuilder/lib/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ afterEvaluate {
8989
def projects = [
9090
[':neighborhood', 'buildNeighborhood'],
9191
[':theater', 'buildTheater'],
92-
[':playground', 'buildPlayground'],
9392
[':studentlib', 'buildStudentlib'],
9493
[':validation', 'buildValidation'],
9594
[':lang', 'buildLang']

org-code-javabuilder/lib/src/main/java/org/code/javabuilder/UserClassLoader.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ private boolean isInAllowedPackage(String[] allowedPackageList, String name) {
125125
"org.junit.jupiter.api.",
126126
"org.code.media.",
127127
"org.code.neighborhood.",
128-
"org.code.playground.",
129128
"org.code.theater.",
130129
"org.code.lang"
131130
};

org-code-javabuilder/lib/src/main/java/org/code/javabuilder/util/JarUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ private JarUtils() {
1515
private static final String[] JAR_NAMES = {
1616
"neighborhood-full.jar",
1717
"theater-full.jar",
18-
"playground-full.jar",
1918
"studentlib-full.jar",
2019
"validation-full.jar",
2120
"lang-full.jar"

org-code-javabuilder/protocol/src/main/java/org/code/protocol/ClientMessageDetailKeys.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ public class ClientMessageDetailKeys {
99
public static final String Y = "y";
1010
public static final String ID = "id";
1111

12-
// Playground specific
13-
public static final String TEXT = "text";
14-
public static final String COLOR_RED = "colorRed";
15-
public static final String COLOR_BLUE = "colorBlue";
16-
public static final String COLOR_GREEN = "colorGreen";
17-
public static final String FONT = "font";
18-
public static final String FONT_STYLE = "fontStyle";
19-
public static final String ROTATION = "rotation";
20-
public static final String UPDATES = "updates";
21-
2212
// Theater specific
2313
public static final String PROMPT = "prompt";
2414
public static final String UPLOAD_URL = "uploadUrl";

org-code-javabuilder/protocol/src/main/java/org/code/protocol/ClientMessageType.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ public enum ClientMessageType {
1010
NEIGHBORHOOD,
1111
/** A theater signal that directs the client-side Theater program to take an action. */
1212
THEATER,
13-
/** A playground signal that directs the client-side Playground program to take an action. */
14-
PLAYGROUND,
1513
/** A message directed to the client in local development mode */
1614
DEBUG,
1715
/** A status message directed to the client-side terminal, generated by Javabuilder. */

org-code-javabuilder/protocol/src/main/java/org/code/protocol/InputMessageType.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
public enum InputMessageType {
44
SYSTEM_IN,
5-
PLAYGROUND,
65
THEATER
76
}

org-code-javabuilder/protocol/src/test/java/org/code/protocol/InputHandlerTest.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,16 @@ public void testGetsNextMessageForTypeCorrectly() {
3232
public void testQueuesMessageIfNotOfRequestedType() {
3333
final String inputMessage1 = "system in 1";
3434
final String inputMessage2 = "system in 2";
35-
final String playgroundMessage = "playground message";
35+
final String theaterMessage = "theater message";
3636

3737
when(inputAdapter.getNextMessage())
3838
.thenReturn(createJsonMessage(InputMessageType.SYSTEM_IN.name(), inputMessage1))
3939
.thenReturn(createJsonMessage(InputMessageType.SYSTEM_IN.name(), inputMessage2))
40-
.thenReturn(createJsonMessage(InputMessageType.PLAYGROUND.name(), playgroundMessage))
41-
.thenReturn(createJsonMessage(InputMessageType.PLAYGROUND.name(), "other"));
40+
.thenReturn(createJsonMessage(InputMessageType.THEATER.name(), theaterMessage))
41+
.thenReturn(createJsonMessage(InputMessageType.THEATER.name(), "other"));
4242

43-
assertEquals(
44-
playgroundMessage, unitUnderTest.getNextMessageForType(InputMessageType.PLAYGROUND));
45-
// Should have called input adapter 3 times (until first PLAYGROUND message was received)
43+
assertEquals(theaterMessage, unitUnderTest.getNextMessageForType(InputMessageType.THEATER));
44+
// Should have called input adapter 3 times (until first THEATER message was received)
4645
verify(inputAdapter, times(3)).getNextMessage();
4746

4847
reset(inputAdapter);

org-code-javabuilder/settings.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ include('neighborhood')
1313
include('protocol')
1414
include('theater')
1515
include('media')
16-
include('playground')
1716
include('studentlib')
1817
include('validation')
1918
include('lang')

0 commit comments

Comments
 (0)