Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bsneed/version fixes #966

Merged
merged 8 commits into from
Nov 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Analytics.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/segmentio/analytics-ios.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/segment'

s.ios.deployment_target = '11.0'
s.tvos.deployment_target = '9.0'

s.ios.frameworks = 'CoreTelephony'
s.frameworks = 'Security', 'StoreKit', 'SystemConfiguration', 'UIKit'
s.ios.deployment_target = '10.0'
s.tvos.deployment_target = '10.0'
s.osx.deployment_target = '10.13'

s.source_files = [
'Segment/Classes/**/*.{h,m}',
Expand Down
7 changes: 2 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PackageDescription
let package = Package(
name: "Segment",
platforms: [
.iOS(.v12), .tvOS(.v12)
.iOS(.v10), .tvOS(.v10), .macOS(.v10_13)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
Expand All @@ -31,10 +31,7 @@ let package = Package(
cSettings: [
.headerSearchPath("Internal"),
.headerSearchPath("Classes")
],
linkerSettings: [
.linkedFramework("CoreTelephony", .when(platforms: [.iOS, .macOS]))
]
),
)
]
)
22 changes: 13 additions & 9 deletions Segment.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0810;
LastUpgradeCheck = 1130;
LastUpgradeCheck = 1200;
ORGANIZATIONNAME = Segment;
TargetAttributes = {
EADEB85A1DECD080005322DA = {
Expand Down Expand Up @@ -607,6 +607,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -634,13 +635,17 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos appletvos appletvsimulator macosx";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
TARGETED_DEVICE_FAMILY = "1,2,3";
TVOS_DEPLOYMENT_TARGET = 10.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
WATCHOS_DEPLOYMENT_TARGET = 7.0;
};
name = Debug;
};
Expand Down Expand Up @@ -669,6 +674,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand All @@ -690,14 +696,18 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos appletvos appletvsimulator macosx";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
TARGETED_DEVICE_FAMILY = "1,2,3";
TVOS_DEPLOYMENT_TARGET = 10.0;
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
WATCHOS_DEPLOYMENT_TARGET = 7.0;
};
name = Release;
};
Expand All @@ -722,9 +732,6 @@
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos appletvos appletvsimulator macosx";
TARGETED_DEVICE_FAMILY = "1,2,3";
TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Debug;
};
Expand All @@ -749,9 +756,6 @@
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos appletvos appletvsimulator macosx";
TARGETED_DEVICE_FAMILY = "1,2,3";
TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion Segment.xcodeproj/xcshareddata/xcschemes/Segment.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1130"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1130"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1130"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGAliasPayload.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGPayload.h"

NS_ASSUME_NONNULL_BEGIN
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGAnalytics.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGIntegrationFactory.h"
#import "SEGCrypto.h"
#import "SEGAnalyticsConfiguration.h"
Expand Down
6 changes: 3 additions & 3 deletions Segment/Classes/SEGAnalyticsConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
// Copyright © 2016 Segment. All rights reserved.
//

#import <Foundation/Foundation.h>
@import Foundation;

#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
@import UIKit;
#elif TARGET_OS_OSX
#import <Cocoa/Cocoa.h>
@import Cocoa;
#endif

NS_SWIFT_NAME(ApplicationProtocol)
Expand Down
4 changes: 2 additions & 2 deletions Segment/Classes/SEGAnalyticsConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#import "SEGMiddleware.h"
#import "SEGCrypto.h"
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
@import UIKit;
#elif TARGET_OS_OSX
#import <Cocoa/Cocoa.h>
@import Cocoa;
#endif

#if TARGET_OS_IPHONE
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGAnalyticsUtils.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2016 Segment. All rights reserved.
//

#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGIntegration.h"

typedef NS_ENUM(NSInteger, SEGEventType) {
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGCrypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Copyright © 2016 Segment. All rights reserved.
//

#import <Foundation/Foundation.h>
@import Foundation;

@protocol SEGCrypto <NSObject>

Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGGroupPayload.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGPayload.h"

NS_ASSUME_NONNULL_BEGIN
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGHTTPClient.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGAnalytics.h"

// TODO: Make this configurable via SEGAnalyticsConfiguration
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGIdentifyPayload.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGPayload.h"

NS_ASSUME_NONNULL_BEGIN
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGIntegration.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGIdentifyPayload.h"
#import "SEGTrackPayload.h"
#import "SEGScreenPayload.h"
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGIntegrationFactory.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGIntegration.h"
#import "SEGAnalytics.h"

Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGMiddleware.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2016 Segment. All rights reserved.
//

#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGContext.h"

typedef void (^SEGMiddlewareNext)(SEGContext *_Nullable newContext);
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGPayload.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGSerializableValue.h"

NS_ASSUME_NONNULL_BEGIN
Expand Down
4 changes: 2 additions & 2 deletions Segment/Classes/SEGReachability.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
POSSIBILITY OF SUCH DAMAGE.
*/

#import <Foundation/Foundation.h>
#import <SystemConfiguration/SystemConfiguration.h>
@import Foundation;
@import SystemConfiguration;

/**
* Does ARC support GCD objects?
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGScreenPayload.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGPayload.h"

NS_ASSUME_NONNULL_BEGIN
Expand Down
4 changes: 2 additions & 2 deletions Segment/Classes/SEGScreenReporting.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
@import UIKit;
#elif TARGET_OS_OSX
#import <Cocoa/Cocoa.h>
@import Cocoa;
#endif

#import "SEGSerializableValue.h"
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGSegmentIntegration.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGIntegration.h"
#import "SEGHTTPClient.h"
#import "SEGStorage.h"
Expand Down
7 changes: 1 addition & 6 deletions Segment/Classes/SEGSegmentIntegration.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
#import "SEGState.h"

#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#endif

#if TARGET_OS_IOS
#import <CoreTelephony/CTCarrier.h>
#import <CoreTelephony/CTTelephonyNetworkInfo.h>
@import UIKit;
#endif

NSString *const SEGSegmentDidSendRequestNotification = @"SegmentDidSendRequest";
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGSegmentIntegrationFactory.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGIntegrationFactory.h"
#import "SEGHTTPClient.h"
#import "SEGStorage.h"
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGSerializableValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2016 Segment. All rights reserved.
//

#import <Foundation/Foundation.h>
@import Foundation;

/*
Acceptable dictionary values are
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Copyright © 2016 Segment. All rights reserved.
//

#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGCrypto.h"

@protocol SEGStorage <NSObject>
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGTrackPayload.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGPayload.h"

NS_ASSUME_NONNULL_BEGIN
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/SEGWebhookIntegration.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGWebhookIntegration.h"
#import "SEGHTTPClient.h"
#import "SEGState.h"
Expand Down
2 changes: 1 addition & 1 deletion Segment/Classes/Segment.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2016 Segment. All rights reserved.
//

#import <Foundation/Foundation.h>
@import Foundation;

//! Project version number for Analytics.
FOUNDATION_EXPORT double SegmentVersionNumber;
Expand Down
2 changes: 1 addition & 1 deletion Segment/Internal/NSData+SEGGZIP.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
//


#import <Foundation/Foundation.h>
@import Foundation;

extern void *_Nullable seg_libzOpen(void);

Expand Down
2 changes: 1 addition & 1 deletion Segment/Internal/NSViewController+SEGScreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import "SEGSerializableValue.h"

#if TARGET_OS_OSX
#import <Cocoa/Cocoa.h>
@import Cocoa;

@interface NSViewController (SEGScreen)

Expand Down
3 changes: 1 addition & 2 deletions Segment/Internal/NSViewController+SEGScreen.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#import "SEGAnalyticsUtils.h"
#import "SEGScreenReporting.h"


#if TARGET_OS_OSX
@implementation NSViewController (SEGScreen)

Expand All @@ -22,7 +21,7 @@ + (void)seg_swizzleViewDidAppear
dispatch_once(&onceToken, ^{
Class class = [self class];

SEL originalSelector = @selector(viewDidAppear:);
SEL originalSelector = @selector(viewDidAppear);
SEL swizzledSelector = @selector(seg_viewDidAppear:);

Method originalMethod = class_getInstanceMethod(class, originalSelector);
Expand Down
2 changes: 1 addition & 1 deletion Segment/Internal/SEGAES256Crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Copyright © 2016 Segment. All rights reserved.
//

#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGCrypto.h"


Expand Down
2 changes: 1 addition & 1 deletion Segment/Internal/SEGFileStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Copyright © 2016 Segment. All rights reserved.
//

#import <Foundation/Foundation.h>
@import Foundation;
#import "SEGStorage.h"


Expand Down
Loading