Skip to content

Commit

Permalink
remove duplicate constants (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulajet authored Nov 12, 2020
1 parent 521903d commit 3530cf6
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 44 deletions.
4 changes: 1 addition & 3 deletions OTAcceleratorCore.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@

/* Begin PBXFileReference section */
120640212525FEBC008E3516 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; };
129EDCFC253F0E0500541893 /* Constant.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Constant.h; sourceTree = "<group>"; };
129EDCFD253F0E0600541893 /* OTTextMessage_Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OTTextMessage_Private.h; sourceTree = "<group>"; };
129EDCFE253F0E0600541893 /* OTTextMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OTTextMessage.m; sourceTree = "<group>"; };
129EDD00253F0E0600541893 /* OTTextChat.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OTTextChat.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -467,7 +466,6 @@
129EDCFB253F0DF500541893 /* TextChat */ = {
isa = PBXGroup;
children = (
129EDCFC253F0E0500541893 /* Constant.h */,
129EDD01253F0E0600541893 /* OTTextChat.h */,
129EDD00253F0E0600541893 /* OTTextChat.m */,
129EDCFD253F0E0600541893 /* OTTextMessage_Private.h */,
Expand Down Expand Up @@ -577,7 +575,6 @@
12B6BA832540927C00293718 /* AnnLoggingWrapper.h */,
12B6BA822540927C00293718 /* AnnLoggingWrapper.m */,
12B6BA87254092A400293718 /* Category */,
12B6BA97254092C600293718 /* Constants.h */,
12B6BA98254092C600293718 /* OTAnnotationKitBundle.h */,
12B6BA99254092C600293718 /* OTAnnotationKitBundle.m */,
12B6BA9B254092F500293718 /* OTAnnotationNative */,
Expand Down Expand Up @@ -854,6 +851,7 @@
A080E47C1E244CFA007972D8 /* OTCommonCommunicator.h */,
A0AB9F0E1E3AC2D50068E20F /* OTScreenCapture.h */,
A0AB9F0F1E3AC2D50068E20F /* OTScreenCapture.m */,
12B6BA97254092C600293718 /* Constants.h */,
A0565F221DF63F62001F9032 /* Info.plist */,
);
path = OTAcceleratorCore;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ static const CGFloat WidthOfColorPicker = 49.0f;
static const CGFloat HeightOfColorPicker = 49.0f;
static const CGFloat LeadingPaddingOfAnnotationTextView = 20.0f;


static NSString * const kLogComponentIdentifier = @"annotationsAccPack";
static NSString * const KLogClientVersion = @"ios-vsol-1.1.0";
static NSString* const KLogActionInitialize = @"Init";
static NSString* const KLogActionStartDrawing = @"StartDrawing";
static NSString* const KLogActionEndDrawing = @"EndDrawing";
static NSString* const KLogActionFreeHand = @"FreeHand";
Expand All @@ -29,3 +25,18 @@ static NSString* const KLogActionDone = @"DONE";
static NSString* const KLogVariationAttempt = @"Attempt";
static NSString* const KLogVariationSuccess = @"Success";
static NSString* const KLogVariationFailure = @"Failure";

static NSString* const KLogActionStart = @"Start";
static NSString* const KLogActionEnd = @"End";
static NSString* const KLogActionOpen = @"OpenTC";
static NSString* const KLogActionClose = @"CloseTC";
static NSString* const KLogActionSendMessage = @"SendMessage";
static NSString* const KLogActionReceiveMessage = @"ReceiveMessage";
static NSString* const KLogActionSetMaxLength = @"SetMaxLength";

static NSString* const KLogClientVersion = @"ios-accelerator-core-3.0.0";
static NSString* const kLogComponentIdentifier = @"OTAcceleratorCore";
static NSString* const KLogActionInitialize = @"Init";
static NSString* const KLogActionStartCommunication = @"StartComm";
static NSString* const KLogActionStartScreenCommunication = @"StartScreenComm";
static NSString* const KLogActionEndCommunication = @"EndComm";
11 changes: 1 addition & 10 deletions OTAcceleratorCore/OTCommonCommunicator.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,7 @@
//

#import <Foundation/Foundation.h>

static NSString* const KLogClientVersion = @"ios-accelerator-core-1.1.0";
static NSString* const kLogComponentIdentifier = @"OTAcceleratorCore";
static NSString* const KLogActionInitialize = @"Init";
static NSString* const KLogActionStartCommunication = @"StartComm";
static NSString* const KLogActionStartScreenCommunication = @"StartScreenComm";
static NSString* const KLogActionEndCommunication = @"EndComm";
static NSString* const KLogVariationAttempt = @"Attempt";
static NSString* const KLogVariationSuccess = @"Success";
static NSString* const KLogVariationFailure = @"Failure";
#import "Constants.h"

typedef NS_ENUM(NSUInteger, OTCommunicationSignal) {
OTPublisherCreated, // capture camera/screen successfully and publishing in the OpenTok cloud
Expand Down
25 changes: 0 additions & 25 deletions OTAcceleratorCore/TextChat/Constant.h

This file was deleted.

2 changes: 1 addition & 1 deletion OTAcceleratorCore/TextChat/OTTextChat.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#import "OTTextMessage.h"
#import "OTTextMessage_Private.h"

#import "Constant.h"
#import "Constants.h"

static NSString* const kTextChatType = @"text-chat";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#import "OTAcceleratorSession.h"

#import "OTTextChatAcceleratorBundle.h"
#import "Constant.h"
#import "Constants.h"

@interface OTTextChatViewController() <UITableViewDataSource, UITableViewDelegate, UITextFieldDelegate> {
OTTextChatViewType typeOfTextChatTableView;
Expand Down

0 comments on commit 3530cf6

Please sign in to comment.