Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
0a2cac6
Hide scratch converter and login/logout menu items
wslany Dec 11, 2025
a116bd1
Fix URLs in Constants.java for documentation and terms
wslany Dec 11, 2025
26798b2
Update Catrobat help and privacy policy URLs
wslany Dec 11, 2025
81fb979
Update URLs in FlavoredConstants.java
wslany Dec 11, 2025
c751871
Update Catrobat URLs in FlavoredConstants.java
wslany Dec 11, 2025
fc0f770
Remove upload project option from main menu
wslany Dec 11, 2025
4f31f54
Remove upload button back button test
wslany Dec 11, 2025
c065f56
Remove uploadProject test method
wslany Dec 11, 2025
80affad
Remove project upload setup and related methods
wslany Dec 11, 2025
a4bd76b
Deleted upload test
wslany Dec 11, 2025
8ded5c8
Fix Catrobat wiki URLs to point to new documentation
wslany Dec 11, 2025
9c88ce6
Remove onSaveProjectComplete function
wslany Dec 11, 2025
80837b3
Clean up unused imports in MainMenuFragment.kt
wslany Dec 11, 2025
cf2dcda
Clean up imports in ProjectOptionsFragment.kt
wslany Dec 11, 2025
bb48c8f
Fix URLs in Constants.java for wiki and links
wslany Dec 12, 2025
4f49491
Remove login/logout from options menu
wslany Dec 12, 2025
45fceba
Remove upload icon from main menu layout
wslany Dec 12, 2025
336f1ec
Remove project upload from project options layout
wslany Dec 12, 2025
9c4490e
Update main menu strings for local projects and Catrobat site
wslany Dec 12, 2025
b23b7b7
Update BASE_URL_HTTPS to new documentation URL
wslany Dec 12, 2025
5841f94
Update BASE_URL_HTTPS for embroidery service
wslany Dec 12, 2025
a121b80
Update BASE_URL_HTTPS for create@school
wslany Dec 12, 2025
3734d5c
Merge branch 'develop' into wslany-release-preparation-fixes
wslany Dec 15, 2025
d2d45c4
Update content download and privacy policy URLs
wslany Dec 15, 2025
df4a3e1
Update content download URL in FlavoredConstants
wslany Dec 15, 2025
f5ef1e8
Update download and privacy policy URLs in FlavoredConstants
wslany Dec 15, 2025
6545478
Update content download and privacy policy URLs
wslany Dec 15, 2025
f507dd5
Update content download and privacy policy URLs
wslany Dec 15, 2025
2e1f8cd
Update download and privacy policy URLs in FlavoredConstants
wslany Dec 15, 2025
a0419e6
Update content download URL path in FlavoredConstants
wslany Dec 15, 2025
978d2a7
Update content download URL path in FlavoredConstants
wslany Dec 15, 2025
c162e52
Update CATROBAT_CONTENT_DOWNLOAD_URL path
wslany Dec 15, 2025
9e89ff5
Update CATROBAT_CONTENT_DOWNLOAD_URL path
wslany Dec 15, 2025
9bb9785
Update content download URL in FlavoredConstants
wslany Dec 15, 2025
7b6b93e
Update content download URL in FlavoredConstants
wslany Dec 15, 2025
4de52de
Update FlavoredConstants.java
wslany Dec 15, 2025
880f4f5
Update CATROBAT_CONTENT_DOWNLOAD_URL path
wslany Dec 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,6 @@ class MainMenuFragmentTest : KoinTest {
connectionMonitor.setValueTo(true)
}

@Test
fun testBackButtonAfterTappingOnUploadButton() {
syncBeforeLaunch(false)
onView(withId(R.id.uploadProject))
.perform(ViewActions.click())
pressBack()
onView(withId(R.id.projectImageView))
.check(matches(isDisplayed()))
}

@Test
fun testBackButtonAfterTappingOnPlayButton() {
syncBeforeLaunch(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,16 +299,6 @@ public void changeAspectRatio() {
assertEquals(ScreenModes.MAXIMIZE, project.getScreenMode());
}

@Test
public void uploadProject() {
onView(withId(R.id.project_options_upload))
.perform(ViewActions.scrollTo())
.perform(click());

onView(anyOf(withId(R.id.upload_layout), withText(R.string.login)))
.check(matches(isDisplayed()));
}

@Test
public void saveExternal() throws IOException {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

public final class FlavoredConstants {
// Web:
public static final String BASE_URL_HTTPS = MAIN_URL_HTTPS + "/pocketcode/";
public static final String BASE_URL_HTTPS = "https://catrobat.org/docs/";

public static final String BASE_UPLOAD_URL = UPLOAD_URL + "/pocketcode/";

public static final String CATROBAT_HELP_URL = "https://catrob.at/help";
public static final String CATROBAT_HELP_URL = "https://catrobat.org/docs/";

public static final String CATEGORY_URL = BASE_URL_HTTPS + "#home-projects__";

Expand All @@ -54,7 +54,7 @@ public final class FlavoredConstants {
// TODO: Delete these and every usage, when the Catrobat share server completely closes
// Deprecated Media Library:
public static final String LIBRARY_BASE_URL = MAIN_URL_HTTPS + "/app/download-media/";
public static final String PRIVACY_POLICY_URL = "https://catrob.at/privacypolicy";
public static final String PRIVACY_POLICY_URL = "https://developer.catrobat.org/pages/legal/policies/privacy/";

// Media Library:
public static final String CATROBAT_BASE_URL = "https://catrobat.org/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

public final class FlavoredConstants {
// Web:
public static final String BASE_URL_HTTPS = MAIN_URL_HTTPS + "/create@school/";
public static final String BASE_URL_HTTPS = "https://catrobat.org/docs/";

public static final String BASE_UPLOAD_URL = UPLOAD_URL + "/create@school/";

public static final String CATROBAT_HELP_URL = "https://catrob.at/help";
public static final String CATROBAT_HELP_URL = "https://catrobat.org/docs/";

public static final String CATEGORY_URL = BASE_URL_HTTPS + "#home-projects__";

Expand All @@ -58,7 +58,7 @@ public final class FlavoredConstants {
public static final String CATROBAT_CONTENT_LOOKS_URL = CATROBAT_BASE_URL + "figures-download/";
public static final String CATROBAT_CONTENT_SOUNDS_URL = CATROBAT_BASE_URL + "sounds-download/";
public static final String CATROBAT_CONTENT_BACKGROUNDS_URL = CATROBAT_BASE_URL + "backgrounds-download/";
public static final String PRIVACY_POLICY_URL = "https://catrob.at/privacypolicy";
public static final String PRIVACY_POLICY_URL = "https://developer.catrobat.org/pages/legal/policies/privacy/";

private FlavoredConstants() {
throw new AssertionError("No.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

public final class FlavoredConstants {
// Web:
public static final String BASE_URL_HTTPS = MAIN_URL_HTTPS + "/embroidery/";
public static final String BASE_URL_HTTPS = "https://catrobat.org/docs/";

public static final String BASE_UPLOAD_URL = UPLOAD_URL + "/embroidery/";

public static final String CATROBAT_HELP_URL = "https://catrob.at/CodedEmbroideryDocumentation";
public static final String CATROBAT_HELP_URL = "https://catrobat.org/docs/";

public static final String CATEGORY_URL = BASE_URL_HTTPS + "#home-projects__";

Expand All @@ -58,7 +58,7 @@ public final class FlavoredConstants {
public static final String CATROBAT_CONTENT_LOOKS_URL = CATROBAT_BASE_URL + "figures-download/";
public static final String CATROBAT_CONTENT_SOUNDS_URL = CATROBAT_BASE_URL + "sounds-download/";
public static final String CATROBAT_CONTENT_BACKGROUNDS_URL = CATROBAT_BASE_URL + "backgrounds-download/";
public static final String PRIVACY_POLICY_URL = "https://catrob.at/privacypolicy";
public static final String PRIVACY_POLICY_URL = "https://developer.catrobat.org/pages/legal/policies/privacy/";

private FlavoredConstants() {
throw new AssertionError("No.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public final class FlavoredConstants {
public static final String CATROBAT_CONTENT_LOOKS_URL = CATROBAT_BASE_URL + "figures-download/";
public static final String CATROBAT_CONTENT_SOUNDS_URL = CATROBAT_BASE_URL + "sounds-download/";
public static final String CATROBAT_CONTENT_BACKGROUNDS_URL = CATROBAT_BASE_URL + "backgrounds-download/";
public static final String PRIVACY_POLICY_URL = "https://catrob.at/privacypolicy";
public static final String PRIVACY_POLICY_URL = "https://developer.catrobat.org/pages/legal/policies/privacy/";

private FlavoredConstants() {
throw new AssertionError("No.");
Expand Down
18 changes: 9 additions & 9 deletions catroid/src/main/java/org/catrobat/catroid/common/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ public final class Constants {
public static final String SHARE_PROJECT_URL = BASE_URL_HTTPS + "/project/";

public static final String CATROBAT_ABOUT_URL = "https://www.catrobat.org/";
public static final String CATROBAT_FORMULA_WIKI_URL = "https://wiki.catrobat.org/bin/view/Documentation/FormulaEditor";
public static final String ABOUT_POCKETCODE_LICENSE_URL = "https://catrob.at/licenses";
public static final String WEB_REQUEST_WIKI_URL = "https://catrob.at/webbricks";

public static final String CATROBAT_TERMS_OF_USE_URL = BASE_URL_HTTPS + "termsOfUse";
public static final String CATROBAT_FUNCTIONS_WIKI_URL = CATROBAT_FORMULA_WIKI_URL + "/Functions/";
public static final String CATROBAT_LOGIC_WIKI_URL = CATROBAT_FORMULA_WIKI_URL + "/Logic/";
public static final String CATROBAT_SENSORS_WIKI_URL = CATROBAT_FORMULA_WIKI_URL + "/Sensors/";
public static final String CATROBAT_OBJECT_WIKI_URL = CATROBAT_FORMULA_WIKI_URL + "/Properties/";
public static final String CATROBAT_FORMULA_WIKI_URL = "https://catrobat.org/docs/";
public static final String ABOUT_POCKETCODE_LICENSE_URL = "https://developer.catrobat.org/pages/legal/licenses/";
public static final String WEB_REQUEST_WIKI_URL = "https://catrobat.org/docs/";

public static final String CATROBAT_TERMS_OF_USE_URL = "https://developer.catrobat.org/pages/legal/terms-of-use-and-service/";
public static final String CATROBAT_FUNCTIONS_WIKI_URL = "https://catrobat.org/docs/";
public static final String CATROBAT_LOGIC_WIKI_URL = "https://catrobat.org/docs/";
public static final String CATROBAT_SENSORS_WIKI_URL = "https://catrobat.org/docs/";
public static final String CATROBAT_OBJECT_WIKI_URL = "https://catrobat.org/docs/";
public static final String CATROBAT_DELETE_ACCOUNT_URL = BASE_URL_HTTPS + "profile/edit";
public static final String CATROBAT_TERMS_OF_USE_TOKEN_FLAVOR_URL = "?flavorName=";
public static final String CATROBAT_TERMS_OF_USE_TOKEN_VERSION_URL = "&versionCode=";
Expand Down
16 changes: 0 additions & 16 deletions catroid/src/main/java/org/catrobat/catroid/ui/MainMenuActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -262,17 +262,6 @@ class MainMenuActivity : BaseCastActivity(), ProjectLoadListener {
return super.onCreateOptionsMenu(menu)
}

override fun onPrepareOptionsMenu(menu: Menu): Boolean {
menu.findItem(R.id.menu_login).isVisible =
!Utils.isUserLoggedIn(this)
menu.findItem(R.id.menu_logout).isVisible =
Utils.isUserLoggedIn(this)
if (!BuildConfig.FEATURE_SCRATCH_CONVERTER_ENABLED) {
menu.removeItem(R.id.menu_scratch_converter)
}
return true
}

override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
R.id.menu_rate_app -> if (Utils.checkIsNetworkAvailableAndShowErrorMessage(this)) {
Expand Down Expand Up @@ -307,11 +296,6 @@ class MainMenuActivity : BaseCastActivity(), ProjectLoadListener {
startActivity(Intent(this, ScratchConverterActivity::class.java))
}
R.id.settings -> startActivity(Intent(this, SettingsActivity::class.java))
R.id.menu_login -> startActivity(Intent(this, SignInActivity::class.java))
R.id.menu_logout -> {
Utils.logoutUser(this)
ToastUtil.showSuccess(this, R.string.logout_successful)
}
R.id.menu_help -> startActivity(
Intent(
Intent.ACTION_VIEW,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import com.google.android.material.chip.Chip
import com.google.android.material.snackbar.Snackbar
import org.catrobat.catroid.ProjectManager
import org.catrobat.catroid.R
import org.catrobat.catroid.common.Constants
Expand All @@ -55,16 +54,12 @@ import org.catrobat.catroid.io.StorageOperations
import org.catrobat.catroid.io.XstreamSerializer
import org.catrobat.catroid.io.asynctask.ProjectExportTask
import org.catrobat.catroid.io.asynctask.loadProject
import org.catrobat.catroid.io.asynctask.ProjectSaver
import org.catrobat.catroid.io.asynctask.renameProject
import org.catrobat.catroid.io.asynctask.saveProjectSerial
import org.catrobat.catroid.merge.NewProjectNameTextWatcher
import org.catrobat.catroid.ui.BottomBar.hideBottomBar
import org.catrobat.catroid.ui.PROJECT_DIR
import org.catrobat.catroid.ui.ProjectUploadActivity
import org.catrobat.catroid.ui.runtimepermissions.RequiresPermissionTask
import org.catrobat.catroid.utils.ToastUtil
import org.catrobat.catroid.utils.Utils
import org.catrobat.catroid.utils.notifications.StatusBarNotificationManager
import org.koin.android.ext.android.inject
import java.io.File
Expand Down Expand Up @@ -100,7 +95,6 @@ class ProjectOptionsFragment : Fragment() {
setupNotesAndCreditsInputLayout()
addTags()
setupProjectAspectRatio()
setupProjectUpload()
setupProjectSaveExternal()
setupProjectMoreDetails()
setupProjectOptionDelete()
Expand Down Expand Up @@ -158,12 +152,6 @@ class ProjectOptionsFragment : Fragment() {
}
}

private fun setupProjectUpload() {
binding.projectOptionsUpload.setOnClickListener {
projectUpload()
}
}

private fun setupProjectSaveExternal() {
binding.projectOptionsSaveExternal.setOnClickListener {
exportProject()
Expand Down Expand Up @@ -282,29 +270,6 @@ class ProjectOptionsFragment : Fragment() {
}
}

fun projectUpload() {
val currentProject = projectManager.currentProject
ProjectSaver(currentProject, requireContext())
.saveProjectAsync({ onSaveProjectComplete() })
Utils.setLastUsedProjectName(requireContext(), currentProject.name)
}

private fun onSaveProjectComplete() {
val currentProject = projectManager.currentProject

if (Utils.isDefaultProject(currentProject, activity)) {
binding.root.apply {
Snackbar.make(binding.root, R.string.error_upload_default_project, Snackbar.LENGTH_LONG).show()
}
return
}

val intent = Intent(requireContext(), ProjectUploadActivity::class.java)
intent.putExtra(PROJECT_DIR, currentProject.directory)

startActivity(intent)
}

private fun exportProject() {
saveProject()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
Expand Down
Loading