Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
List Flutter's generated platform folders in Build Artifacts
Țugui Dragoșcb69c4e15a39
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swiftindex ea7891ec..9e7f5d09 100644--- a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift+++ b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift@@ -429,6 +429,31 @@ public enum ProjectArtifacts {name: "build", markers: ["pubspec.yaml"], tool: "Dart & Flutter", isGeneric: true,source: "https://docs.flutter.dev/reference/flutter-cli"),+ Definition(+ name: "ios/Flutter/ephemeral", markers: ["pubspec.yaml"], tool: "Flutter", isGeneric: false,+ source: "https://github.com/flutter/flutter/blob/3d9c69bf9efd3b4ac086629657003b47a0fde2f0/packages/flutter_tools/lib/src/xcode_project.dart#L162-L170"+ ),+ Definition(+ name: "macos/Flutter/ephemeral", markers: ["pubspec.yaml"], tool: "Flutter", isGeneric: false,+ source: "https://github.com/flutter/flutter/blob/3d9c69bf9efd3b4ac086629657003b47a0fde2f0/packages/flutter_tools/lib/src/xcode_project.dart#L162-L170"+ ),+ Definition(+ name: "linux/flutter/ephemeral", markers: ["pubspec.yaml"], tool: "Flutter", isGeneric: false,+ source: "https://github.com/flutter/flutter/blob/3d9c69bf9efd3b4ac086629657003b47a0fde2f0/packages/flutter_tools/lib/src/cmake_project.dart#L114-L121"+ ),+ Definition(+ name: "windows/flutter/ephemeral", markers: ["pubspec.yaml"], tool: "Flutter", isGeneric: false,+ source: "https://github.com/flutter/flutter/blob/3d9c69bf9efd3b4ac086629657003b47a0fde2f0/packages/flutter_tools/lib/src/cmake_project.dart#L80-L87"+ ),+ // A module's host apps, which Flutter writes again from its templates; editable ones are `ios` and `android`.+ Definition(+ name: ".ios", markers: ["pubspec.yaml"], tool: "Flutter", isGeneric: false,+ source: "https://github.com/flutter/flutter/blob/3d9c69bf9efd3b4ac086629657003b47a0fde2f0/packages/flutter_tools/lib/src/xcode_project.dart#L1092-L1125"+ ),+ Definition(+ name: ".android", markers: ["pubspec.yaml"], tool: "Flutter", isGeneric: false,+ source: "https://github.com/flutter/flutter/blob/3d9c69bf9efd3b4ac086629657003b47a0fde2f0/packages/flutter_tools/lib/src/project.dart#L1109-L1156"+ ),Definition(name: ".venv", markers: pythonProjectFiles, tool: "Python", isGeneric: false, isEnvironment: true,source: "https://docs.python.org/3/library/venv.html"diff --git a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swiftindex 16e007e4..6004930e 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift@@ -399,6 +399,12 @@ struct ProjectArtifactsTests {Kind(artifact: "_cache", marker: "site.hs", tool: "Hakyll", isGeneric: true),Kind(artifact: "out", marker: "build.mill", tool: "Mill", isGeneric: true),Kind(artifact: "out", marker: "build.sc", tool: "Mill", isGeneric: true),+ Kind(artifact: "ios/Flutter/ephemeral", marker: "pubspec.yaml", tool: "Flutter", isGeneric: false),+ Kind(artifact: "macos/Flutter/ephemeral", marker: "pubspec.yaml", tool: "Flutter", isGeneric: false),+ Kind(artifact: "linux/flutter/ephemeral", marker: "pubspec.yaml", tool: "Flutter", isGeneric: false),+ Kind(artifact: "windows/flutter/ephemeral", marker: "pubspec.yaml", tool: "Flutter", isGeneric: false),+ Kind(artifact: ".ios", marker: "pubspec.yaml", tool: "Flutter", isGeneric: false),+ Kind(artifact: ".android", marker: "pubspec.yaml", tool: "Flutter", isGeneric: false),])}@@ -1150,7 +1156,7 @@ struct ProjectArtifactsTests {#expect(!definition.name.isEmpty)#expect(!definition.markers.isEmpty || definition.proof != nil, "\(definition.name) has no proof")#expect(!definition.tool.isEmpty)- #expect(definition.name.split(separator: "/").count <= 2, "\(definition.name) goes deeper than one folder")+ #expect(definition.name.split(separator: "/").count <= 3, "\(definition.name) goes deeper than two folders")let isAPage = definition.source.hasPrefix("https://") && URL(string: definition.source)?.host() != nil#expect(isAPage || definition.source.hasPrefix("Xcode 27: "), "\(definition.name) names \(definition.source)")}