Skip to content

Commit

Permalink
Merge pull request #229 from Countly/linter_changes
Browse files Browse the repository at this point in the history
linter fixes for pods
  • Loading branch information
ArtursKadikis committed May 25, 2023
2 parents 2321743 + 9d30246 commit 6d5df6b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 18 deletions.
6 changes: 3 additions & 3 deletions Countly.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
1A3A576229ED47A20041B7BE /* CountlyServerConfig.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CountlyServerConfig.m; sourceTree = "<group>"; };
1A3A576429ED47B50041B7BE /* CountlyServerConfig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CountlyServerConfig.h; sourceTree = "<group>"; };
1A3A576229ED47A20041B7BE /* CountlyServerConfig.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CountlyServerConfig.m; sourceTree = "<group>"; };
1A3A576429ED47B50041B7BE /* CountlyServerConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CountlyServerConfig.h; sourceTree = "<group>"; };
3B20A9822245225A00E3D7AE /* Countly.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Countly.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3B20A9852245225A00E3D7AE /* Countly.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Countly.h; sourceTree = "<group>"; };
3B20A9862245225A00E3D7AE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -211,7 +211,7 @@
3B20A9792245225A00E3D7AE /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1340;
LastUpgradeCheck = 1410;
ORGANIZATIONNAME = "Alin Radut";
TargetAttributes = {
3B20A9812245225A00E3D7AE = {
Expand Down
2 changes: 1 addition & 1 deletion Countly.xcodeproj/xcshareddata/xcschemes/Countly.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1340"
LastUpgradeVersion = "1410"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion CountlyCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#import <Foundation/Foundation.h>
#import "Countly.h"
#import "CountlyServerConfig.h"
#import "CountlyPersistency.h"
#import "CountlyConnectionManager.h"
#import "CountlyEvent.h"
Expand All @@ -22,7 +23,6 @@
#import "CountlyLocationManager.h"
#import "CountlyRemoteConfig.h"
#import "CountlyPerformanceMonitoring.h"
#import "CountlyServerConfig.h"

#define CLY_LOG_E(fmt, ...) CountlyInternalLog(CLYInternalLogLevelError, fmt, ##__VA_ARGS__)
#define CLY_LOG_W(fmt, ...) CountlyInternalLog(CLYInternalLogLevelWarning, fmt, ##__VA_ARGS__)
Expand Down
9 changes: 5 additions & 4 deletions CountlyServerConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@

#import <Foundation/Foundation.h>

extern NSString* const kCountlySCKeySC;

@interface CountlyServerConfig : NSObject
#if (TARGET_OS_IOS)
+ (instancetype)sharedInstance;

- (void)fetchServerConfig;

@property (nonatomic) BOOL trackingEnabled;
@property (nonatomic) BOOL networkingEnabled;
#endif
- (BOOL)trackingEnabled;
- (BOOL)networkingEnabled;

@end

15 changes: 6 additions & 9 deletions CountlyServerConfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
// Please visit www.count.ly for more information.

#import "CountlyCommon.h"
#if (TARGET_OS_IOS)
#import <WebKit/WebKit.h>
#endif

NSString* const kCountlySCKeySC = @"sc";
@interface CountlyServerConfig ()
@property (nonatomic) BOOL trackingEnabled;
@property (nonatomic) BOOL networkingEnabled;
@end

@implementation CountlyServerConfig
NSString* const kCountlySCKeySC = @"sc";

@synthesize trackingEnabled = _trackingEnabled;
@synthesize networkingEnabled = _networkingEnabled;
@implementation CountlyServerConfig

#if (TARGET_OS_IOS)
+ (instancetype)sharedInstance
{
if (!CountlyCommon.sharedInstance.hasStarted)
Expand Down Expand Up @@ -155,5 +153,4 @@ - (NSURLRequest *)serverConfigRequest
CLY_LOG_D(@"serverConfigRequest URL :%@", URL);
}

#endif
@end

0 comments on commit 6d5df6b

Please sign in to comment.