Skip to content

Commit 77116b8

Browse files
committed
fix(compile): removing dependency on pch file from example project
1 parent 5839c2c commit 77116b8

16 files changed

+35
-24
lines changed

Example/Leanplum-SDK.xcodeproj/project.pbxproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
/* End PBXContainerItemProxy section */
4141

4242
/* Begin PBXFileReference section */
43+
0723D6CA1ED8CCAA004AE3A5 /* Leanplum-iOS-SDK-source.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = "Leanplum-iOS-SDK-source.podspec"; path = "../Leanplum-iOS-SDK-source.podspec"; sourceTree = "<group>"; };
44+
0723D6CB1ED8CCAA004AE3A5 /* Leanplum-iOS-SDK.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = "Leanplum-iOS-SDK.podspec"; path = "../Leanplum-iOS-SDK.podspec"; sourceTree = "<group>"; };
45+
0723D6CC1ED8CCAA004AE3A5 /* Leanplum-tvOS-SDK.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = "Leanplum-tvOS-SDK.podspec"; path = "../Leanplum-tvOS-SDK.podspec"; sourceTree = "<group>"; };
4346
1982CE36FE54461D3A24D6B5 /* Pods-Leanplum-tvOS-SDK_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Leanplum-tvOS-SDK_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Leanplum-tvOS-SDK_Example/Pods-Leanplum-tvOS-SDK_Example.debug.xcconfig"; sourceTree = "<group>"; };
4447
29ABF5FA9E1826C5BBE433C9 /* Pods-Leanplum-SDK_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Leanplum-SDK_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Leanplum-SDK_Tests/Pods-Leanplum-SDK_Tests.debug.xcconfig"; sourceTree = "<group>"; };
4548
6003F58A195388D20070C39A /* Leanplum-SDK_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Leanplum-SDK_Example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -61,7 +64,6 @@
6164
6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
6265
606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; };
6366
73B565AA61D6B6A4E92607C4 /* Pods-Leanplum-SDK_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Leanplum-SDK_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Leanplum-SDK_Tests/Pods-Leanplum-SDK_Tests.release.xcconfig"; sourceTree = "<group>"; };
64-
742DDA885B7E0DC4FD74AD80 /* Leanplum-SDK.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = "Leanplum-SDK.podspec"; path = "../Leanplum-SDK.podspec"; sourceTree = "<group>"; };
6567
74C2EA3F2D53CAE77A03BFFA /* Pods-Leanplum-tvOS-SDK_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Leanplum-tvOS-SDK_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Leanplum-tvOS-SDK_Example/Pods-Leanplum-tvOS-SDK_Example.release.xcconfig"; sourceTree = "<group>"; };
6668
7849230A3D5C6DE5929ED1C8 /* Pods_Leanplum_SDK_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Leanplum_SDK_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
6769
84A3C33C701600A874B8C63F /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
@@ -201,7 +203,9 @@
201203
60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = {
202204
isa = PBXGroup;
203205
children = (
204-
742DDA885B7E0DC4FD74AD80 /* Leanplum-SDK.podspec */,
206+
0723D6CA1ED8CCAA004AE3A5 /* Leanplum-iOS-SDK-source.podspec */,
207+
0723D6CB1ED8CCAA004AE3A5 /* Leanplum-iOS-SDK.podspec */,
208+
0723D6CC1ED8CCAA004AE3A5 /* Leanplum-tvOS-SDK.podspec */,
205209
84A3C33C701600A874B8C63F /* README.md */,
206210
F5CF859C9DD307380E6F9A30 /* LICENSE */,
207211
);
@@ -390,7 +394,7 @@
390394
);
391395
runOnlyForDeploymentPostprocessing = 0;
392396
shellPath = /bin/sh;
393-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
397+
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
394398
showEnvVarsInLog = 0;
395399
};
396400
81DD9F917F8C0494E1D79789 /* [CP] Copy Pods Resources */ = {
@@ -450,7 +454,7 @@
450454
);
451455
runOnlyForDeploymentPostprocessing = 0;
452456
shellPath = /bin/sh;
453-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
457+
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
454458
showEnvVarsInLog = 0;
455459
};
456460
CE1D3D9B6CE96DE8989631BA /* [CP] Embed Pods Frameworks */ = {

Example/Leanplum-SDK/Leanplum-SDK-Prefix.pch

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@
1111
#endif
1212

1313
#ifdef __OBJC__
14-
@import UIKit;
15-
@import Foundation;
14+
1615
#endif

Leanplum-SDK/Classes/Constants.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
// under the License.
2424

2525
#import <Foundation/Foundation.h>
26+
#import <UIKit/UIKit.h>
2627

2728
#define IOS_6_SUPPORTED defined(_ARM_ARCH_7) || defined(__i386__) || defined(__LP64__)
2829

Leanplum-SDK/Classes/Vendor/MKNetworkKit/Categories/NSDate+RFC1123.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
// I’ve been asked about which license this code is under: I put this into Public Domain.
1212
// No warranty whatsoever. Still I’d be happy about attribution but don’t require such.
13+
#import <UIKit/UIKit.h>
14+
1315
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 70000
1416

1517
@interface LPRFC1123 : NSObject

Leanplum-SDK/Classes/Vendor/MKNetworkKit/Categories/NSDate+RFC1123.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
// http://blog.mro.name/2009/08/nsdateformatter-http-header/
77
//
88
// No obvious license attached
9-
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 70000
10-
119
#import "NSDate+RFC1123.h"
1210

11+
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 70000
12+
1313
@implementation LPRFC1123
1414

1515
+ (NSDate *)dateFromRFC1123:(NSString*)value_

Leanplum-SDK/Classes/Vendor/MKNetworkKit/Categories/NSDictionary+RequestEncoding.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2323
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
// THE SOFTWARE.
25-
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 70000
26-
2725
#import "MKNetworkKit.h"
2826

27+
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 70000
28+
2929
@implementation LPDictionaryEncoder
3030

3131
+ (NSString *)urlEncodedKeyValueString:(NSDictionary *)dictionary {

Leanplum-SDK/Classes/Vendor/MKNetworkKit/Categories/NSString+MKNetworkKitAdditions.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2323
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
// THE SOFTWARE.
25+
#import <UIKit/UIKit.h>
26+
2527
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 70000
2628

2729
@interface LPNetworkKitAdditions : NSObject

Leanplum-SDK/Classes/Vendor/MKNetworkKit/Categories/NSString+MKNetworkKitAdditions.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2323
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
// THE SOFTWARE.
25-
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 70000
26-
2725
#import "NSString+MKNetworkKitAdditions.h"
2826
#import <CommonCrypto/CommonDigest.h>
2927

28+
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 70000
29+
3030
@implementation LPNetworkKitAdditions
3131

3232
+ (NSString *)md5:(NSString *)string

Leanplum-SDK/Classes/Vendor/MKNetworkKit/Leanplum_MKNKEngineWrapper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
// Created by Alexis Oyama on 11/14/16.
66
// Copyright (c) 2016 Leanplum, Inc. All rights reserved.
77
//
8-
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 70000
9-
108
#import "LPNetworkProtocol.h"
119
#import "MKNetworkKit.h"
1210

11+
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 70000
12+
1313
/**
1414
* Wrapper for Leanplum_MKNetworkEngine to use with the factory.
1515
*/

Leanplum-SDK/Classes/Vendor/MKNetworkKit/Leanplum_MKNKEngineWrapper.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
// Created by Alexis Oyama on 11/14/16.
66
// Copyright (c) 2016 Leanplum, Inc. All rights reserved.
77
//
8-
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 70000
9-
108
#import "Leanplum_MKNKEngineWrapper.h"
119
#import "Leanplum_MKNKOperationWrapper.h"
1210

11+
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 70000
12+
1313
@implementation Leanplum_MKNKEngineWrapper
1414

1515
- (id)initWithHostName:(NSString*)hostName customHeaderFields:(NSDictionary*)headers

0 commit comments

Comments
 (0)