diff --git a/.github/workflows/scheduled-upload-crowdin.yml b/.github/workflows/scheduled-upload-crowdin.yml
deleted file mode 100644
index 88a17ac23e2..00000000000
--- a/.github/workflows/scheduled-upload-crowdin.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: scheduled-upload-crowdin
-
-on:
- schedule:
- - cron: '0 0 * * *'
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- with:
- ref: develop
- - name: Upload Strings to Crowdin
- env:
- CROWDIN_KEY: ${{ secrets.CROWDIN_API }}
- run: 'curl -F "files[catroid/src/main/res/values/strings.xml]=@catroid/src/main/res/values/strings.xml"
- -F "export_patterns[catroid/src/main/res/values/strings.xml]=catroid/src/main/res/values-%android_code%/%original_file_name%"
- -F "titles[catroid/src/main/res/values/strings.xml]=Pocket Code for Android" "https://api.crowdin.com/api/project/catrobat/update-file?key="$CROWDIN_KEY'
diff --git a/.github/workflows/sync_crowdin.yml b/.github/workflows/sync_crowdin.yml
index 842815cc4b6..887d6ef62ce 100644
--- a/.github/workflows/sync_crowdin.yml
+++ b/.github/workflows/sync_crowdin.yml
@@ -49,7 +49,8 @@ jobs:
- uses: crowdin/github-action@1.0.10
with:
- upload_translations: true
+ upload_sources: true
+ upload_translations: false
download_translations: true
config: 'crowdin.yml'
env:
diff --git a/catroid/build.gradle b/catroid/build.gradle
index 223c1efb0e5..59b44903680 100644
--- a/catroid/build.gradle
+++ b/catroid/build.gradle
@@ -105,8 +105,8 @@ jacocoAndroidUnitTestReport {
xml.enabled true
}
-def defaultVersionCode = 84
-def defaultVersionName = "1.0.2"
+def defaultVersionCode = 85
+def defaultVersionName = "1.0.3"
android {
compileSdkVersion 29
@@ -332,6 +332,7 @@ dependencies {
// Paintroid local aar lib files
implementation fileTree(dir: 'src/main/libs', include: ['*.aar'])
+ implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
diff --git a/catroid/config/lint-baseline.xml b/catroid/config/lint-baseline.xml
index 624d3f344e3..98c2426d432 100644
--- a/catroid/config/lint-baseline.xml
+++ b/catroid/config/lint-baseline.xml
@@ -29,84 +29,18 @@
errorLine1=" public void onActivityResult(int requestCode, int resultCode, Intent data) {"
errorLine2=" ~~~~~~~~~~~~~~~~">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -117,7 +51,7 @@
errorLine1=" private static final CastManager INSTANCE = new CastManager();"
errorLine2=" ~~~~~~">
@@ -128,7 +62,7 @@
errorLine1=" private static Context context;"
errorLine2=" ~~~~~~">
@@ -139,7 +73,7 @@
errorLine1=" private Activity activity;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~">
@@ -150,7 +84,7 @@
errorLine1=" private class ConnectDeviceTask extends AsyncTask<String, Void, BluetoothConnection.State> {"
errorLine2=" ~~~~~~~~~~~~~~~~~">
@@ -161,7 +95,7 @@
errorLine1=" private Context context;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
@@ -172,7 +106,7 @@
errorLine1=" private Context context;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
@@ -183,8 +117,8 @@
errorLine1=" private static FormulaEditorEditText formulaEditorEditText;"
errorLine2=" ~~~~~~">
@@ -194,8 +128,8 @@
errorLine1=" private static LinearLayout formulaEditorBrick;"
errorLine2=" ~~~~~~">
@@ -205,8 +139,8 @@
errorLine1=" private static FormulaBrick formulaBrick;"
errorLine2=" ~~~~~~">
@@ -216,7 +150,7 @@
errorLine1=" private Context context;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
@@ -227,7 +161,7 @@
errorLine1=" private Context context;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
@@ -238,7 +172,7 @@
errorLine1=" private Context context;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
@@ -249,7 +183,7 @@
errorLine1=" private class ReadTask extends AsyncTask<UserList, Void, Void> {"
errorLine2=" ~~~~~~~~">
@@ -260,7 +194,7 @@
errorLine1=" private class ReadTask extends AsyncTask<UserVariable, Void, Void> {"
errorLine2=" ~~~~~~~~">
@@ -271,8 +205,8 @@
errorLine1=" private class FinishThreadAndDisposeTexturesTask extends AsyncTask<Void, Void, Void> {"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
@@ -282,7 +216,7 @@
errorLine1=" private class WriteTask extends AsyncTask<UserList, Void, Void> {"
errorLine2=" ~~~~~~~~~">
@@ -293,7 +227,7 @@
errorLine1=" private class WriteTask extends AsyncTask<UserVariable, Void, Void> {"
errorLine2=" ~~~~~~~~~">
@@ -302,22 +236,22 @@
id="UnusedResources"
message="The resource `R.drawable.brick_brown_2h_9` appears to be unused">
+ file="src/main/res/drawable-ldpi/brick_brown_2h_9.9.png"/>
+ file="src/main/res/drawable-mdpi/brick_brown_2h_9.9.png"/>
+ file="src/main/res/drawable-xhdpi/brick_brown_2h_9.9.png"/>
+ file="src/main/res/drawable-ldpi/brick_control_1h.9.png"/>
+ file="src/main/res/drawable-mdpi/brick_control_1h.9.png"/>
+ file="src/main/res/drawable-xhdpi/brick_control_1h.9.png"/>
+ file="src/main/res/mipmap-hdpi/ic_launcher_round.png"/>
+ file="src/main/res/mipmap-mdpi/ic_launcher_round.png"/>
+ file="src/main/res/mipmap-xhdpi/ic_launcher_round.png"/>
+ file="src/main/res/mipmap-xxhdpi/ic_launcher_round.png"/>
+ file="src/main/res/mipmap-xxxhdpi/ic_launcher_round.png"/>
@@ -358,7 +292,7 @@
errorLine1=" <style name="BrickContainer.Script.Small">"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
@@ -367,28 +301,28 @@
id="IconDensities"
message="Missing the following drawables in `drawable-hdpi`: brick_blue_1h.9.png, brick_blue_2h.9.png, brick_blue_2h_when_9.9.png, brick_blue_3h.9.png, brick_brown_1h_when_9.9.png... (42 more)">
+ file="src/main/res/drawable-hdpi"/>
+ message="Missing the following drawables in `drawable-mdpi`: ardrone_neg.png, ardrone_pos.png, arduino_neg.png, arduino_pos.png, brick_selection_background_bluetooth.9.png... (44 more)">
+ file="src/main/res/drawable-mdpi"/>
+ message="Missing the following drawables in `drawable-xhdpi`: embroidery_neg.png, embroidery_pos.png, favorites_72x72.png, google_playstore_logo.png, huawei_app_gallery_logo.png... (5 more)">
+ file="src/main/res/drawable-xhdpi"/>
+ message="Missing the following drawables in `drawable-xxhdpi`: ardrone_neg.png, ardrone_pos.png, arduino_neg.png, arduino_pos.png, brick_blue_1h.9.png... (88 more)">
+ file="src/main/res/drawable-xxhdpi"/>
@@ -408,8 +342,8 @@
errorLine1=" public boolean onTouch(View view, MotionEvent event) {"
errorLine2=" ~~~~~~~">
@@ -419,7 +353,7 @@
errorLine1=" public boolean onTouch(View v, MotionEvent event) {"
errorLine2=" ~~~~~~~">
@@ -430,7 +364,7 @@
errorLine1=" btn.setOnTouchListener(otl);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
@@ -441,7 +375,7 @@
errorLine1=" public boolean onTouch(View v, MotionEvent event) {"
errorLine2=" ~~~~~~~">
@@ -452,7 +386,7 @@
errorLine1=" this.setOnTouchListener(this);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
@@ -463,8 +397,8 @@
errorLine1=" public boolean onTouch(View view, MotionEvent event) {"
errorLine2=" ~~~~~~~">
@@ -474,7 +408,7 @@
errorLine1=" public boolean onTouchEvent(MotionEvent e) {"
errorLine2=" ~~~~~~~~~~~~">
@@ -485,8 +419,8 @@
errorLine1=" frameLayout.setOnTouchListener(this);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
@@ -496,8 +430,8 @@
errorLine1=" public boolean onTouch(View view, MotionEvent event) {"
errorLine2=" ~~~~~~~">
@@ -507,7 +441,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -518,7 +452,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -529,7 +463,7 @@
errorLine1=" <ImageButton"
errorLine2=" ~~~~~~~~~~~">
@@ -540,7 +474,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -551,7 +485,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -562,7 +496,7 @@
errorLine1=" <ImageButton"
errorLine2=" ~~~~~~~~~~~">
@@ -573,7 +507,7 @@
errorLine1=" <ImageButton"
errorLine2=" ~~~~~~~~~~~">
@@ -584,7 +518,7 @@
errorLine1=" <ImageButton"
errorLine2=" ~~~~~~~~~~~">
@@ -595,7 +529,7 @@
errorLine1=" <ImageButton"
errorLine2=" ~~~~~~~~~~~">
@@ -606,7 +540,7 @@
errorLine1=" <ImageButton"
errorLine2=" ~~~~~~~~~~~">
@@ -617,7 +551,7 @@
errorLine1=" <ImageButton"
errorLine2=" ~~~~~~~~~~~">
@@ -628,29 +562,18 @@
errorLine1=" <ImageButton"
errorLine2=" ~~~~~~~~~~~">
-
-
-
-
@@ -661,7 +584,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -672,7 +595,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -683,7 +606,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -694,7 +617,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -705,8 +628,8 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -716,7 +639,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -727,7 +650,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -738,7 +661,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -749,7 +672,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -760,7 +683,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -771,7 +694,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -782,7 +705,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -793,7 +716,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -804,7 +727,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -815,7 +738,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -826,7 +749,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -837,7 +760,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -848,7 +771,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -859,7 +782,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -870,7 +793,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -881,7 +804,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -892,7 +815,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -903,7 +826,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -914,7 +837,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -925,29 +848,18 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
-
-
-
-
@@ -958,7 +870,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -969,7 +881,7 @@
errorLine1=" <ImageView"
errorLine2=" ~~~~~~~~~">
@@ -980,7 +892,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -991,7 +903,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1002,7 +914,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1013,7 +925,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1024,7 +936,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1035,7 +947,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1046,7 +958,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1057,7 +969,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1068,7 +980,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1079,7 +991,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1090,7 +1002,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1101,7 +1013,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1112,7 +1024,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1123,7 +1035,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1134,7 +1046,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1145,7 +1057,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1156,7 +1068,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1167,7 +1079,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1178,7 +1090,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1189,7 +1101,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1200,7 +1112,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1211,7 +1123,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1222,7 +1134,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1233,7 +1145,7 @@
errorLine1=" android:paddingStart="@dimen/material_design_spacing_small""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1244,7 +1156,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1255,7 +1167,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1266,7 +1178,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1277,7 +1189,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1288,7 +1200,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1299,7 +1211,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1310,7 +1222,7 @@
errorLine1=" android:paddingStart="@dimen/material_design_spacing_small""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1321,7 +1233,7 @@
errorLine1=" android:paddingStart="@dimen/material_design_spacing_small""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1332,7 +1244,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1343,7 +1255,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1354,7 +1266,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1365,7 +1277,7 @@
errorLine1=" android:paddingStart="5dip""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1376,7 +1288,7 @@
errorLine1=" android:paddingStart="@dimen/device_text_view_padding""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1387,7 +1299,7 @@
errorLine1=" android:paddingStart="@dimen/device_text_view_padding""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1398,7 +1310,7 @@
errorLine1=" android:paddingStart="@dimen/material_design_spacing_large"/>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1409,7 +1321,7 @@
errorLine1=" android:paddingStart="@dimen/material_design_spacing_large"/>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1420,7 +1332,7 @@
errorLine1=" android:paddingStart="@dimen/material_design_spacing_large"/>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1431,7 +1343,7 @@
errorLine1=" android:paddingStart="5dp">"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1442,7 +1354,7 @@
errorLine1=" android:paddingStart="@dimen/material_design_spacing_large""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1453,7 +1365,7 @@
errorLine1=" android:paddingStart="@dimen/material_design_spacing_large""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
@@ -1464,7 +1376,7 @@
errorLine1=" android:paddingEnd="@dimen/material_design_spacing_small" />"
errorLine2=" ~~~~~~~~~~~~~~~~~~">
@@ -1475,7 +1387,7 @@
errorLine1=" android:paddingEnd="@dimen/details_spacing""
errorLine2=" ~~~~~~~~~~~~~~~~~~">
@@ -1486,7 +1398,7 @@
errorLine1=" android:paddingEnd="@dimen/details_spacing""
errorLine2=" ~~~~~~~~~~~~~~~~~~">
diff --git a/catroid/src/androidTest/java/org/catrobat/catroid/test/BricksHelpUrlTest.java b/catroid/src/androidTest/java/org/catrobat/catroid/test/BricksHelpUrlTest.java
index 2a746ba9eb8..c23137c178f 100644
--- a/catroid/src/androidTest/java/org/catrobat/catroid/test/BricksHelpUrlTest.java
+++ b/catroid/src/androidTest/java/org/catrobat/catroid/test/BricksHelpUrlTest.java
@@ -160,6 +160,8 @@ public class BricksHelpUrlTest {
"https://wiki.catrobat.org/bin/view/Documentation/BrickDocumentation/ChangeXByNBrick");
brickToHelpUrlMapping.put("org.catrobat.catroid.content.bricks.ChangeColorByNBrick",
"https://wiki.catrobat.org/bin/view/Documentation/BrickDocumentation/ChangeColorByNBrick");
+ brickToHelpUrlMapping.put("org.catrobat.catroid.content.bricks.SetThreadColorBrick",
+ "https://wiki.catrobat.org/bin/view/Documentation/BrickDocumentation/SetThreadColorBrick");
brickToHelpUrlMapping.put("org.catrobat.catroid.content.bricks.TurnLeftSpeedBrick",
"https://wiki.catrobat.org/bin/view/Documentation/BrickDocumentation/TurnLeftSpeedBrick");
brickToHelpUrlMapping.put("org.catrobat.catroid.content.bricks.LegoEv3PlayToneBrick",
diff --git a/catroid/src/androidTest/java/org/catrobat/catroid/test/content/actions/StitchActionTest.java b/catroid/src/androidTest/java/org/catrobat/catroid/test/content/actions/StitchActionTest.java
index c9eb1e66cd8..10b71828826 100644
--- a/catroid/src/androidTest/java/org/catrobat/catroid/test/content/actions/StitchActionTest.java
+++ b/catroid/src/androidTest/java/org/catrobat/catroid/test/content/actions/StitchActionTest.java
@@ -25,6 +25,8 @@
import android.graphics.PointF;
+import com.badlogic.gdx.graphics.Color;
+
import org.catrobat.catroid.ProjectManager;
import org.catrobat.catroid.content.ActionFactory;
import org.catrobat.catroid.content.Project;
@@ -78,14 +80,15 @@ public void tearDown() {
public void testAddSingleStitchPoint() {
ActionFactory.createStitchAction(testSprite1).act(1f);
Mockito.verify(StageActivity.stageListener.embroideryPatternManager, Mockito.times(1)).addStitchCommand(
- Mockito.eq(new DSTStitchCommand(spriteCoords1.x, spriteCoords1.y, testSprite1.look.getZIndex(), testSprite1)));
+ Mockito.eq(new DSTStitchCommand(spriteCoords1.x, spriteCoords1.y,
+ testSprite1.look.getZIndex(), testSprite1, Color.BLACK)));
}
@Test
public void testAddPointsTwoSprites() {
ActionFactory.createStitchAction(testSprite1).act(1f);
ActionFactory.createStitchAction(testSprite2).act(1f);
- Mockito.verify(StageActivity.stageListener.embroideryPatternManager, Mockito.times(1)).addStitchCommand(new DSTStitchCommand(spriteCoords1.x, spriteCoords1.y, testSprite1.look.getZIndex(), testSprite1));
- Mockito.verify(StageActivity.stageListener.embroideryPatternManager, Mockito.times(1)).addStitchCommand(new DSTStitchCommand(spriteCoords2.x, spriteCoords2.y, testSprite2.look.getZIndex(), testSprite2));
+ Mockito.verify(StageActivity.stageListener.embroideryPatternManager, Mockito.times(1)).addStitchCommand(new DSTStitchCommand(spriteCoords1.x, spriteCoords1.y, testSprite1.look.getZIndex(), testSprite1, Color.BLACK));
+ Mockito.verify(StageActivity.stageListener.embroideryPatternManager, Mockito.times(1)).addStitchCommand(new DSTStitchCommand(spriteCoords2.x, spriteCoords2.y, testSprite2.look.getZIndex(), testSprite2, Color.BLACK));
}
}
diff --git a/catroid/src/androidTest/java/org/catrobat/catroid/test/content/bricks/BrickCategoryTest.java b/catroid/src/androidTest/java/org/catrobat/catroid/test/content/bricks/BrickCategoryTest.java
index e31f2e10fea..e1b9407ef02 100644
--- a/catroid/src/androidTest/java/org/catrobat/catroid/test/content/bricks/BrickCategoryTest.java
+++ b/catroid/src/androidTest/java/org/catrobat/catroid/test/content/bricks/BrickCategoryTest.java
@@ -170,6 +170,7 @@
import org.catrobat.catroid.content.bricks.SetRotationStyleBrick;
import org.catrobat.catroid.content.bricks.SetSizeToBrick;
import org.catrobat.catroid.content.bricks.SetTempoBrick;
+import org.catrobat.catroid.content.bricks.SetThreadColorBrick;
import org.catrobat.catroid.content.bricks.SetTransparencyBrick;
import org.catrobat.catroid.content.bricks.SetVariableBrick;
import org.catrobat.catroid.content.bricks.SetVelocityBrick;
@@ -267,6 +268,7 @@ public static Collection