Skip to content

Commit 6d5df6b

Browse files
Merge pull request #229 from Countly/linter_changes
linter fixes for pods
2 parents 2321743 + 9d30246 commit 6d5df6b

File tree

5 files changed

+16
-18
lines changed

5 files changed

+16
-18
lines changed

Countly.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
/* End PBXBuildFile section */
4949

5050
/* Begin PBXFileReference section */
51-
1A3A576229ED47A20041B7BE /* CountlyServerConfig.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CountlyServerConfig.m; sourceTree = "<group>"; };
52-
1A3A576429ED47B50041B7BE /* CountlyServerConfig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CountlyServerConfig.h; sourceTree = "<group>"; };
51+
1A3A576229ED47A20041B7BE /* CountlyServerConfig.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CountlyServerConfig.m; sourceTree = "<group>"; };
52+
1A3A576429ED47B50041B7BE /* CountlyServerConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CountlyServerConfig.h; sourceTree = "<group>"; };
5353
3B20A9822245225A00E3D7AE /* Countly.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Countly.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5454
3B20A9852245225A00E3D7AE /* Countly.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Countly.h; sourceTree = "<group>"; };
5555
3B20A9862245225A00E3D7AE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -211,7 +211,7 @@
211211
3B20A9792245225A00E3D7AE /* Project object */ = {
212212
isa = PBXProject;
213213
attributes = {
214-
LastUpgradeCheck = 1340;
214+
LastUpgradeCheck = 1410;
215215
ORGANIZATIONNAME = "Alin Radut";
216216
TargetAttributes = {
217217
3B20A9812245225A00E3D7AE = {

Countly.xcodeproj/xcshareddata/xcschemes/Countly.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1340"
3+
LastUpgradeVersion = "1410"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

CountlyCommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#import <Foundation/Foundation.h>
88
#import "Countly.h"
9+
#import "CountlyServerConfig.h"
910
#import "CountlyPersistency.h"
1011
#import "CountlyConnectionManager.h"
1112
#import "CountlyEvent.h"
@@ -22,7 +23,6 @@
2223
#import "CountlyLocationManager.h"
2324
#import "CountlyRemoteConfig.h"
2425
#import "CountlyPerformanceMonitoring.h"
25-
#import "CountlyServerConfig.h"
2626

2727
#define CLY_LOG_E(fmt, ...) CountlyInternalLog(CLYInternalLogLevelError, fmt, ##__VA_ARGS__)
2828
#define CLY_LOG_W(fmt, ...) CountlyInternalLog(CLYInternalLogLevelWarning, fmt, ##__VA_ARGS__)

CountlyServerConfig.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66

77
#import <Foundation/Foundation.h>
88

9+
extern NSString* const kCountlySCKeySC;
10+
911
@interface CountlyServerConfig : NSObject
10-
#if (TARGET_OS_IOS)
1112
+ (instancetype)sharedInstance;
1213

1314
- (void)fetchServerConfig;
1415

15-
@property (nonatomic) BOOL trackingEnabled;
16-
@property (nonatomic) BOOL networkingEnabled;
17-
#endif
16+
- (BOOL)trackingEnabled;
17+
- (BOOL)networkingEnabled;
18+
1819
@end
1920

CountlyServerConfig.m

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@
55
// Please visit www.count.ly for more information.
66

77
#import "CountlyCommon.h"
8-
#if (TARGET_OS_IOS)
9-
#import <WebKit/WebKit.h>
10-
#endif
118

12-
NSString* const kCountlySCKeySC = @"sc";
9+
@interface CountlyServerConfig ()
10+
@property (nonatomic) BOOL trackingEnabled;
11+
@property (nonatomic) BOOL networkingEnabled;
12+
@end
1313

14-
@implementation CountlyServerConfig
14+
NSString* const kCountlySCKeySC = @"sc";
1515

16-
@synthesize trackingEnabled = _trackingEnabled;
17-
@synthesize networkingEnabled = _networkingEnabled;
16+
@implementation CountlyServerConfig
1817

19-
#if (TARGET_OS_IOS)
2018
+ (instancetype)sharedInstance
2119
{
2220
if (!CountlyCommon.sharedInstance.hasStarted)
@@ -155,5 +153,4 @@ - (NSURLRequest *)serverConfigRequest
155153
CLY_LOG_D(@"serverConfigRequest URL :%@", URL);
156154
}
157155

158-
#endif
159156
@end

0 commit comments

Comments
 (0)