diff --git a/Sources/PlaybackSDK/Folder Structure.md b/Sources/PlaybackSDK/Folder Structure.md new file mode 100644 index 0000000..3a21423 --- /dev/null +++ b/Sources/PlaybackSDK/Folder Structure.md @@ -0,0 +1,23 @@ +# Folder Structure + +PlaybackSDK +├── Playback API +│   ├── PlaybackAPI.swift +│   ├── PlaybackAPIService.swift +│   ├── PlaybackResponseModel.swift +│   └── PlaybackVideoDetails.swift +├── Playback Configuration API +│   ├── PlayerInformationAPI.swift +│   ├── PlayerInformationAPIService.swift +│   └── PlayerInformationResponseModel.swift +├── PlaybackSDKManager.swift +├── Player Plugin +│   ├── BitMovinPlugin +│   │   ├── BitmovinPlayerPlugin.swift +│   │   └── BitmovinPlayerView.swift +│   ├── VideoPlayerConfig.swift +│   ├── VideoPlayerPlugin.swift +│   └── VideoPlayerPluginManager.swift +└── PlayerUIView + ├── PlaybackUIView.swift + └── UtilsUIView.swift diff --git a/Tests/PlaybackSDKTests/Folder Structure.md b/Tests/PlaybackSDKTests/Folder Structure.md new file mode 100644 index 0000000..d0b2974 --- /dev/null +++ b/Tests/PlaybackSDKTests/Folder Structure.md @@ -0,0 +1,6 @@ +# Folder Structure + +PlaybackSDKTests +├── PlaybackSDKManagerTests.swift +├── PlaybackSDKTests.swift +└── TestConfig.swift diff --git a/generate_folder_structure.sh b/generate_folder_structure.sh index 2efdd95..32e081e 100644 --- a/generate_folder_structure.sh +++ b/generate_folder_structure.sh @@ -3,11 +3,26 @@ # Determine the current working directory CURRENT_DIR=$(pwd) -# Create the Folder Structure.md file in the specified directory +# Check for tree using Homebrew, installs it if needed +if ! command -v tree &> /dev/null; then + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + brew install tree +fi + +# Create the Folder Structure.md file in the Tests directory mkdir -p "$CURRENT_DIR/Tests/PlaybackSDKTests" echo "# Folder Structure" > "$CURRENT_DIR/Tests/PlaybackSDKTests/Folder Structure.md" echo "" >> "$CURRENT_DIR/Tests/PlaybackSDKTests/Folder Structure.md" -echo "This file represents the folder structure of the project." >> "$CURRENT_DIR/Tests/PlaybackSDKTests/Folder Structure.md" -echo "You can update it with the actual structure if needed." >> "$CURRENT_DIR/Tests/PlaybackSDKTests/Folder Structure.md" -echo "Folder Structure.md generated successfully in $CURRENT_DIR/Tests/PlaybackSDKTests" \ No newline at end of file +cd "$CURRENT_DIR/Tests/" +tree --noreport -I "*.md" "PlaybackSDKTests" >> "$CURRENT_DIR/Tests/PlaybackSDKTests/Folder Structure.md" +echo "Folder Structure.md generated successfully in $CURRENT_DIR/Tests/PlaybackSDKTests" + +# Create the Folder Structure.md file in the Sources directory +mkdir -p "$CURRENT_DIR/Sources/PlaybackSDK" +echo "# Folder Structure" > "$CURRENT_DIR/Sources/PlaybackSDK/Folder Structure.md" +echo "" >> "$CURRENT_DIR/Sources/PlaybackSDK/Folder Structure.md" + +cd "$CURRENT_DIR/Sources/" +tree --noreport -I "*.md|*.docc|*.xcprivacy" "PlaybackSDK" >> "$CURRENT_DIR/Sources/PlaybackSDK/Folder Structure.md" +echo "Folder Structure.md generated successfully in $CURRENT_DIR/Sources/PlaybackSDK"