Skip to content

Commit 1de88a2

Browse files
Eli Hinijaeopt
authored andcommitted
Added infrastructure to bundle up certificates (#425)
Added three Optimizely public certificates - cdn.optimizely.com - logx.optimizely.com - api.optimizely.com Updated Copy Bundle Phase of for OptimizelySDKCore.podspec to bumdle the three certficates Updated the PodSpec for Cocoapods to create a bundled resource
1 parent df0c7f8 commit 1de88a2

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

OptimizelySDKCore.podspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ Pod::Spec.new do |s|
1717
s.framework = "Foundation"
1818
s.requires_arc = true
1919
s.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => "OPTIMIZELY_SDK_VERSION=@\\\"#{s.version}\\\"" }
20+
s.resource_bundles = {
21+
'OptimizelySDKCoreiOS' => ['OptimizelySDKCore/Resources/*.cer']
22+
}
2023
end

OptimizelySDKCore/OptimizelySDKCore.xcodeproj/project.pbxproj

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@
211211
5E4C07F41DFF645C0042B1F8 /* UnsupportedVersionDatafile.json in Resources */ = {isa = PBXBuildFile; fileRef = 5E4C07F21DFF645C0042B1F8 /* UnsupportedVersionDatafile.json */; };
212212
5E4C07FB1DFF66B00042B1F8 /* OPTLYNetworkServiceTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E4C07FA1DFF66B00042B1F8 /* OPTLYNetworkServiceTest.m */; };
213213
5E4C07FC1DFF66B00042B1F8 /* OPTLYNetworkServiceTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E4C07FA1DFF66B00042B1F8 /* OPTLYNetworkServiceTest.m */; };
214+
5E92F23522CDA35C00F12C87 /* cdnDump.cer in Resources */ = {isa = PBXBuildFile; fileRef = 5E92F23222CDA35B00F12C87 /* cdnDump.cer */; };
215+
5E92F23622CDA35C00F12C87 /* apiDump.cer in Resources */ = {isa = PBXBuildFile; fileRef = 5E92F23322CDA35B00F12C87 /* apiDump.cer */; };
216+
5E92F23722CDA35C00F12C87 /* logxDump.cer in Resources */ = {isa = PBXBuildFile; fileRef = 5E92F23422CDA35C00F12C87 /* logxDump.cer */; };
214217
9084F7812150D4F700ACBA99 /* OPTLYEventTagUtil.h in Headers */ = {isa = PBXBuildFile; fileRef = 9084F77F2150D4F700ACBA99 /* OPTLYEventTagUtil.h */; };
215218
9084F7822150D4F800ACBA99 /* OPTLYEventTagUtil.h in Headers */ = {isa = PBXBuildFile; fileRef = 9084F77F2150D4F700ACBA99 /* OPTLYEventTagUtil.h */; };
216219
9084F7832150D4F800ACBA99 /* OPTLYEventTagUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = 9084F7802150D4F700ACBA99 /* OPTLYEventTagUtil.m */; };
@@ -619,6 +622,9 @@
619622
59B9E1E020E35C9E002F732E /* OPTLYProjectConfigSwiftTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OPTLYProjectConfigSwiftTest.swift; sourceTree = "<group>"; };
620623
5E4C07F21DFF645C0042B1F8 /* UnsupportedVersionDatafile.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = UnsupportedVersionDatafile.json; sourceTree = "<group>"; };
621624
5E4C07FA1DFF66B00042B1F8 /* OPTLYNetworkServiceTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OPTLYNetworkServiceTest.m; sourceTree = "<group>"; };
625+
5E92F23222CDA35B00F12C87 /* cdnDump.cer */ = {isa = PBXFileReference; lastKnownFileType = file; path = cdnDump.cer; sourceTree = "<group>"; };
626+
5E92F23322CDA35B00F12C87 /* apiDump.cer */ = {isa = PBXFileReference; lastKnownFileType = file; path = apiDump.cer; sourceTree = "<group>"; };
627+
5E92F23422CDA35C00F12C87 /* logxDump.cer */ = {isa = PBXFileReference; lastKnownFileType = file; path = logxDump.cer; sourceTree = "<group>"; };
622628
8766E217ECD3BEA353B080F5 /* Pods_OptimizelySDKCoreiOSTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_OptimizelySDKCoreiOSTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
623629
8B04E0101E180FAD8C9CA7A6 /* Pods_OptimizelySDKCoreiOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_OptimizelySDKCoreiOS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
624630
9084F77F2150D4F700ACBA99 /* OPTLYEventTagUtil.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OPTLYEventTagUtil.h; sourceTree = "<group>"; };
@@ -997,6 +1003,16 @@
9971003
name = Notification;
9981004
sourceTree = "<group>";
9991005
};
1006+
5E92F23E22CDA41100F12C87 /* Resources */ = {
1007+
isa = PBXGroup;
1008+
children = (
1009+
5E92F23422CDA35C00F12C87 /* logxDump.cer */,
1010+
5E92F23322CDA35B00F12C87 /* apiDump.cer */,
1011+
5E92F23222CDA35B00F12C87 /* cdnDump.cer */,
1012+
);
1013+
path = Resources;
1014+
sourceTree = "<group>";
1015+
};
10001016
93BE4E5119FD429B5D9A3435 /* Pods */ = {
10011017
isa = PBXGroup;
10021018
children = (
@@ -1201,6 +1217,7 @@
12011217
EA3C67FB1DC1E66C00C578CA = {
12021218
isa = PBXGroup;
12031219
children = (
1220+
5E92F23E22CDA41100F12C87 /* Resources */,
12041221
3E858C5C1F42275700D53856 /* OPTLYJSONModel */,
12051222
3EA27B081F47AB0D00C0208F /* OPTLYJSONModelTests */,
12061223
EA3C68071DC1E66C00C578CA /* OptimizelySDKCore */,
@@ -1611,6 +1628,7 @@
16111628
developmentRegion = English;
16121629
hasScannedForEncodings = 0;
16131630
knownRegions = (
1631+
English,
16141632
en,
16151633
);
16161634
mainGroup = EA3C67FB1DC1E66C00C578CA;
@@ -1678,6 +1696,9 @@
16781696
buildActionMask = 2147483647;
16791697
files = (
16801698
3E858C601F42277B00D53856 /* LICENSE in Resources */,
1699+
5E92F23522CDA35C00F12C87 /* cdnDump.cer in Resources */,
1700+
5E92F23622CDA35C00F12C87 /* apiDump.cer in Resources */,
1701+
5E92F23722CDA35C00F12C87 /* logxDump.cer in Resources */,
16811702
);
16821703
runOnlyForDeploymentPostprocessing = 0;
16831704
};
837 Bytes
Binary file not shown.
947 Bytes
Binary file not shown.
969 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)