Skip to content

Commit

Permalink
iOS add Post-clone script
Browse files Browse the repository at this point in the history
  • Loading branch information
bricefriha committed May 7, 2024
1 parent a38c1ac commit ea1b042
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions AresNews/AresNews.iOS/AresNews.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
<Compile Include="Renderers\CustomShellTabLayoutAppearanceTracker.cs" />
<Compile Include="Renderers\HtmlLabelRenderer.cs" />
<Compile Include="Renderers\IShellTabLayoutAppearanceTracker.cs" />
<None Include="appcenter-post-clone.sh" />
<None Include="appcenter-pre-build.sh" />
<None Include="Entitlements.plist" />
<None Include="Info.plist" />
Expand Down
37 changes: 37 additions & 0 deletions AresNews/AresNews.iOS/appcenter-post-clone.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env bash

export RemoveANDROIDProjects=true

find "$APPCENTER_SOURCE_DIRECTORY" -iname '*.sln' -type f -print0 | while IFS= read -r -d '' SLN_PATH; do

if [ -z "$SLN_PATH" ]; then

echo "No Solution Found. Exiting Script."

exit

else

echo "SLN_PATH = $SLN_PATH"

fi

if [ -z "$RemoveANDROIDProjects" ]; then

echo "Do Not Remove Android Projects"

else

echo "Searching for Android Projects"

find "$APPCENTER_SOURCE_DIRECTORY" -iname '*Android*.csproj' -type f -print0 | while IFS= read -r -d '' path; do

echo "Removing $path from $SLN_PATH"

dotnet sln "$SLN_PATH" remove "$path" || true

done

fi

done

0 comments on commit ea1b042

Please sign in to comment.