Skip to content

Commit d4e57f9

Browse files
authored
Merge pull request #1085 from BranchMetrics/CORE-1677-add-static-xcframework
CORE-1677 add static xcframework
2 parents 733da87 + 5cdf358 commit d4e57f9

File tree

17 files changed

+836
-127
lines changed

17 files changed

+836
-127
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>$(MARKETING_VERSION)</string>
19+
<key>CFBundleVersion</key>
20+
<string>$(CURRENT_PROJECT_VERSION)</string>
21+
</dict>
22+
</plist>

carthage-files/Branch/Info.plist

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
6-
<string>en</string>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
77
<key>CFBundleExecutable</key>
88
<string>$(EXECUTABLE_NAME)</string>
99
<key>CFBundleIdentifier</key>
@@ -13,14 +13,10 @@
1313
<key>CFBundleName</key>
1414
<string>$(PRODUCT_NAME)</string>
1515
<key>CFBundlePackageType</key>
16-
<string>FMWK</string>
16+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
1717
<key>CFBundleShortVersionString</key>
1818
<string>$(MARKETING_VERSION)</string>
19-
<key>CFBundleSignature</key>
20-
<string>????</string>
2119
<key>CFBundleVersion</key>
2220
<string>$(CURRENT_PROJECT_VERSION)</string>
23-
<key>NSPrincipalClass</key>
24-
<string></string>
2521
</dict>
2622
</plist>

carthage-files/BranchSDK.xcodeproj/project.pbxproj

Lines changed: 511 additions & 14 deletions
Large diffs are not rendered by default.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1240"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "5FD0FB0E25CE4B8A008200EE"
18+
BuildableName = "Branch-static-xcframework"
19+
BlueprintName = "Branch-static-xcframework"
20+
ReferencedContainer = "container:BranchSDK.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
</LaunchAction>
44+
<ProfileAction
45+
buildConfiguration = "Release"
46+
shouldUseLaunchSchemeArgsEnv = "YES"
47+
savedToolIdentifier = ""
48+
useCustomWorkingDirectory = "NO"
49+
debugDocumentVersioning = "YES">
50+
<MacroExpansion>
51+
<BuildableReference
52+
BuildableIdentifier = "primary"
53+
BlueprintIdentifier = "5FD0FB0E25CE4B8A008200EE"
54+
BuildableName = "Branch-static-xcframework"
55+
BlueprintName = "Branch-static-xcframework"
56+
ReferencedContainer = "container:BranchSDK.xcodeproj">
57+
</BuildableReference>
58+
</MacroExpansion>
59+
</ProfileAction>
60+
<AnalyzeAction
61+
buildConfiguration = "Debug">
62+
</AnalyzeAction>
63+
<ArchiveAction
64+
buildConfiguration = "Release"
65+
revealArchiveInOrganizer = "YES">
66+
</ArchiveAction>
67+
</Scheme>
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1240"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "5FD0FA3E25CE46BD008200EE"
18+
BuildableName = "Branch.framework"
19+
BlueprintName = "Branch-static"
20+
ReferencedContainer = "container:BranchSDK.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
</LaunchAction>
44+
<ProfileAction
45+
buildConfiguration = "Release"
46+
shouldUseLaunchSchemeArgsEnv = "YES"
47+
savedToolIdentifier = ""
48+
useCustomWorkingDirectory = "NO"
49+
debugDocumentVersioning = "YES">
50+
<MacroExpansion>
51+
<BuildableReference
52+
BuildableIdentifier = "primary"
53+
BlueprintIdentifier = "5FD0FA3E25CE46BD008200EE"
54+
BuildableName = "Branch.framework"
55+
BlueprintName = "Branch-static"
56+
ReferencedContainer = "container:BranchSDK.xcodeproj">
57+
</BuildableReference>
58+
</MacroExpansion>
59+
</ProfileAction>
60+
<AnalyzeAction
61+
buildConfiguration = "Debug">
62+
</AnalyzeAction>
63+
<ArchiveAction
64+
buildConfiguration = "Release"
65+
revealArchiveInOrganizer = "YES">
66+
</ArchiveAction>
67+
</Scheme>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
# deploy-announce - Prompts to check the announcement of a new SDK version.
4+
# announce_sdk_release.sh - Prompts to check the announcement of a new SDK version.
55
#
66
# Edward Smith, January 2017
77

8-
version=$(./scripts/version)
8+
version=$(./scripts/version.sh)
99

1010
echo ""
1111
echo ""

scripts/askYN renamed to scripts/askYN.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
# askYN - Ask the user a yes/no question on stdout/stdin.
3+
# askYN.sh - Ask the user a yes/no question on stdout/stdin.
44
#
5-
# Usage: askYN [ "Question?" ]
5+
# Usage: askYN.sh [ "Question?" ]
66
#
77
# Exits with code 0 for yes, 1 for no.
88
#
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
# deploy-checksum - The zip & checksum the framework.
5-
#
6-
# Edward Smith, December 2016
7-
84
scriptname=$(basename "${BASH_SOURCE[0]}")
95
scriptpath="${BASH_SOURCE[0]}"
106
scriptpath=$(cd "$(dirname "${scriptpath}")" && pwd)
7+
cd ${scriptpath}/../carthage-files
8+
9+
# Build
10+
echo "Building Branch.xcframework"
11+
xcodebuild -scheme 'Branch-xcframework'
12+
13+
# Move to build folder
1114
cd ${scriptpath}/../carthage-files/build
1215

1316
# Zip the SDK files
14-
echo "Zipping frameworks"
17+
echo "Zipping Branch.xcframework"
1518
zip -rqy Branch.zip Branch.xcframework/
1619

17-
# Checksum the zip files
18-
echo "Creating checksums"
20+
# Checksum the zip file
21+
echo "Creating Branch.zip checksum"
1922
checksum_file=checksum
2023

2124
echo '#checksum for Branch.zip on Github' > "$checksum_file"
2225
shasum Branch.zip >> $checksum_file
2326

24-
# remove source frameworks
27+
# Move zip file and checksum
2528
mv Branch.zip ..
2629
mv checksum ..
30+
31+
# Remove source frameworks
2732
echo "Cleaning up"
2833
rm -rf Branch.xcframework
29-

scripts/build_static_framework.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
scriptname=$(basename "${BASH_SOURCE[0]}")
5+
scriptpath="${BASH_SOURCE[0]}"
6+
scriptpath=$(cd "$(dirname "${scriptpath}")" && pwd)
7+
cd ${scriptpath}/../carthage-files
8+
9+
# Build
10+
echo "Building Branch.xcframework"
11+
xcodebuild -scheme 'Branch-static-xcframework'
12+
13+
# Move to build folder
14+
cd ${scriptpath}/../carthage-files/build
15+
16+
# Zip the SDK files
17+
echo "Zipping static Branch.xcframework"
18+
zip -rqy Branch_static.zip Branch.xcframework/
19+
20+
# Checksum the zip file
21+
echo "Creating Branch_static.zip checksum"
22+
checksum_file=checksum_static
23+
24+
echo '#checksum for Branch_static.zip on Github' > "$checksum_file"
25+
shasum Branch_static.zip >> $checksum_file
26+
27+
# Move zip file and checksum
28+
mv Branch_static.zip ..
29+
mv checksum_static ..
30+
31+
# Remove source frameworks
32+
echo "Cleaning up"
33+
rm -rf Branch.xcframework
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
# deploy-preflight - Check that the development environment is set up for deployment.
4+
# check_build_environment.sh - Check that the development environment is set up for deployment.
55
#
66
# Edward Smith, January 2017
77

0 commit comments

Comments
 (0)