Skip to content

Commit

Permalink
CORE-4594 Playlist API integration
Browse files Browse the repository at this point in the history
- Changed generate_folder_structure script to create Folder Structure md file automatically
- Updated Folder Structure file for Tests and Sources directories
  • Loading branch information
StefanoStream committed Dec 5, 2024
1 parent 2318ff7 commit b351d10
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 4 deletions.
23 changes: 23 additions & 0 deletions Sources/PlaybackSDK/Folder Structure.md
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions Tests/PlaybackSDKTests/Folder Structure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Folder Structure

PlaybackSDKTests
├── PlaybackSDKManagerTests.swift
├── PlaybackSDKTests.swift
└── TestConfig.swift
23 changes: 19 additions & 4 deletions generate_folder_structure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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"

0 comments on commit b351d10

Please sign in to comment.