Skip to content

Commit

Permalink
#29 modify script to rename frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
akaffenberger committed Jun 1, 2022
1 parent f808d36 commit e780f15
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ create_scratch () {
trap "if [[ \$debug ]]; then read -p \"\"; fi; rm -rf \"$scratch\"" EXIT
}

rename_frameworks () {
local prefix="$1"
for i in */*.xcframework; do (
local name=$(xcframework_name $i)
cd "$i/../"; mv "$name.xcframework" "$prefix$name.xcframework"
) & done;
wait
}

zip_frameworks () {
for i in */*.xcframework; do (
local name=$(xcframework_name $i)
Expand Down Expand Up @@ -293,6 +302,7 @@ if [[ $latest != $current || $debug ]]; then
unzip -q Firebase.zip
echo "Preparing xcframeworks for distribution..."
cd Firebase
rename_frameworks "_"
zip_frameworks
echo "Creating distribution files..."
prepare_files_for_distribution "../$distribution"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ The script performs the following actions:
- Generate the swift package: `$ cd .scripts && sh package.sh debug skip-release`

## Running the iOS Example
- [Setup a firebase project](https://firebase.google.com/docs/ios/setup), and add your `GoogleService-Info.plist` to the project. Make sure the services you want to use are enabled (FirebaseAuth, Firestore, In App Messaging, etc.)
- [Setup a firebase project](https://firebase.google.com/docs/ios/setup). Make sure the services you want to test are enabled (FirebaseAuth, Firestore, In App Messaging, etc.)
- Download and add your `GoogleService-Info.plist` to the iOS Example project.
- Open the iOS Example.xcworkspace, build and run the iOS Example target

0 comments on commit e780f15

Please sign in to comment.