Skip to content

Commit

Permalink
Ensure storefront.xcconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
markmur committed Dec 13, 2024
1 parent d056f34 commit 5be6a03
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Scripts/ensure_storefront_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -e

if [ ! -f "./samples/MobileBuyIntegration/Storefront.xcconfig" ]; then
echo """
Error: Your project is missing a Storefront.xcconfig file.

Replace the STOREFRONT_DOMAIN and STOREFRONT_ACCESS_TOKEN in \"samples/MobileBuyIntegration/Storefront.xcconfig.example\" and rename the file to \"Storefront.xcconfig\".
"""
exit 1;
fi
7 changes: 6 additions & 1 deletion dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ type: ios

up:
- ruby
- custom:
name: Ensure Storefront.xcconfig file
met?: ./scripts/ensure_storefront_config
meet: touch ./samples/MobileBuyIntegration/Storefront.xcconfig
- custom:
name: Setup entitlements
met?: ([ -f "./samples/MobileBuyIntegration/MobileBuyIntegration/MobileBuyIntegration.entitlements" ] || exit 1;)
met?: |
([ -f "./samples/MobileBuyIntegration/MobileBuyIntegration/MobileBuyIntegration.entitlements" ] || exit 1;)
meet: ./scripts/setup_entitlements

packages:
Expand Down

0 comments on commit 5be6a03

Please sign in to comment.