Skip to content

Commit

Permalink
Prefixes headers with TD (#136)
Browse files Browse the repository at this point in the history
* Prefixes headers with TD

* Test iOS 18.2 beta
  • Loading branch information
tung-vu-td authored Nov 14, 2024
1 parent d7e39b7 commit d420d73
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 26 deletions.
12 changes: 9 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: 2.1

orbs:
macos: circleci/macos@2

commands:
auxiliary_setup:
Expand Down Expand Up @@ -83,6 +85,10 @@ commands:
- auxiliary_setup
# - install_cocoapods
- install_pods
- macos/preboot-simulator:
version: "<<parameters.os>>"
platform: "iOS"
device: "<<parameters.simulator>>"
- run_tests:
os: <<parameters.os>>
simulator: <<parameters.simulator>>
Expand All @@ -108,11 +114,11 @@ commands:
jobs:
test_ios18:
macos:
xcode: "16.1.0"
resource_class: macos.m1.medium.gen1
xcode: "16.2.0"
resource_class: m2pro.medium
steps:
- run_tests_flow:
os: "18.1"
os: "18.2"
simulator: "iPhone 16"

test_ios17:
Expand Down
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: c7c56130903936173a7ecee314611a525c115504

COCOAPODS: 1.15.2
COCOAPODS: 1.16.1
20 changes: 10 additions & 10 deletions TreasureData.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
6B7380AC192A09160097D56E /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6B7380AA192A09160097D56E /* InfoPlist.strings */; };
6B7380AE192A09160097D56E /* TreasureDataTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B7380AD192A09160097D56E /* TreasureDataTests.m */; };
6B758E4E1C00C59A00D597F8 /* TDClient.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6BF8C9321A3E9B76005B1804 /* TDClient.h */; };
6BB5A9D41D1A86EF0006A534 /* Session.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BB5A9D31D1A86EE0006A534 /* Session.m */; };
6BB5A9D41D1A86EF0006A534 /* TDSession.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BB5A9D31D1A86EE0006A534 /* TDSession.m */; };
6BB5A9D61D1BBFE60006A534 /* SessionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BB5A9D51D1BBFE60006A534 /* SessionTests.m */; };
6BF8C92D1A3E971D005B1804 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BF8C92C1A3E971D005B1804 /* CoreLocation.framework */; settings = {ATTRIBUTES = (Required, ); }; };
6BF8C92F1A3E972C005B1804 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BF8C92E1A3E972C005B1804 /* Security.framework */; };
Expand Down Expand Up @@ -75,7 +75,7 @@
1950C4C633D1BEA93C441EFC /* TDIAPObserver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDIAPObserver.h; sourceTree = "<group>"; };
1950CA957CA6115F3C3DD018 /* TDIAPObserver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TDIAPObserver.m; sourceTree = "<group>"; };
19CFD6BDE2E7D4AC4F0869FF /* Pods-TreasureDataTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TreasureDataTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-TreasureDataTests/Pods-TreasureDataTests.release.xcconfig"; sourceTree = "<group>"; };
201053E9204858F8009C7EFA /* Constants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Constants.h; sourceTree = "<group>"; };
201053E9204858F8009C7EFA /* TDConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDConstants.h; sourceTree = "<group>"; };
2053A39B2047F37F0089A959 /* TDUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TDUtils.m; sourceTree = "<group>"; };
2053A39D2047F38B0089A959 /* TDUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TDUtils.h; sourceTree = "<group>"; };
27C46146494E527DCE7A92A1 /* Pods-TreasureData-TreasureDataTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TreasureData-TreasureDataTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-TreasureData-TreasureDataTests/Pods-TreasureData-TreasureDataTests.debug.xcconfig"; sourceTree = "<group>"; };
Expand All @@ -95,8 +95,8 @@
6B7380A9192A09160097D56E /* TreasureDataTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "TreasureDataTests-Info.plist"; sourceTree = "<group>"; };
6B7380AB192A09160097D56E /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
6B7380AD192A09160097D56E /* TreasureDataTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TreasureDataTests.m; sourceTree = "<group>"; };
6BB5A9D21D1A86CD0006A534 /* Session.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Session.h; sourceTree = "<group>"; };
6BB5A9D31D1A86EE0006A534 /* Session.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Session.m; sourceTree = "<group>"; };
6BB5A9D21D1A86CD0006A534 /* TDSession.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TDSession.h; sourceTree = "<group>"; };
6BB5A9D31D1A86EE0006A534 /* TDSession.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TDSession.m; sourceTree = "<group>"; };
6BB5A9D51D1BBFE60006A534 /* SessionTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SessionTests.m; sourceTree = "<group>"; };
6BF8C92C1A3E971D005B1804 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
6BF8C92E1A3E972C005B1804 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
Expand All @@ -111,7 +111,7 @@
D4602B9A0FADB71F2C158763 /* Pods-Common-TreasureDataTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Common-TreasureDataTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Common-TreasureDataTests/Pods-Common-TreasureDataTests.release.xcconfig"; sourceTree = "<group>"; };
DC74A9280B244A4C25A4F155 /* Pods-TreasureData.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TreasureData.release.xcconfig"; path = "Pods/Target Support Files/Pods-TreasureData/Pods-TreasureData.release.xcconfig"; sourceTree = "<group>"; };
DF259EBC22A5034A00697319 /* TDRequestOptionsKey.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TDRequestOptionsKey.h; sourceTree = "<group>"; };
DF259EBD22A5138800697319 /* NSString+Helpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSString+Helpers.h"; sourceTree = "<group>"; };
DF259EBD22A5138800697319 /* NSString+TDHelpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSString+TDHelpers.h"; sourceTree = "<group>"; };
DF9D4DC5230FBC4200682E41 /* AdSupport.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AdSupport.framework; path = System/Library/Frameworks/AdSupport.framework; sourceTree = SDKROOT; };
E52CB7F121FDD6D300062EBA /* TreasureDataTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "TreasureDataTests-Bridging-Header.h"; sourceTree = "<group>"; };
E52CB7F421FDD78A00062EBA /* TDAPI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TDAPI.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -165,13 +165,13 @@
4F99812D269844A000471FD4 /* TreasureDataInternal */ = {
isa = PBXGroup;
children = (
DF259EBD22A5138800697319 /* NSString+Helpers.h */,
DF259EBD22A5138800697319 /* NSString+TDHelpers.h */,
E5701BA5225755C5000FB17F /* TDClientInternal.h */,
2053A39D2047F38B0089A959 /* TDUtils.h */,
2053A39B2047F37F0089A959 /* TDUtils.m */,
201053E9204858F8009C7EFA /* Constants.h */,
6BB5A9D21D1A86CD0006A534 /* Session.h */,
6BB5A9D31D1A86EE0006A534 /* Session.m */,
201053E9204858F8009C7EFA /* TDConstants.h */,
6BB5A9D21D1A86CD0006A534 /* TDSession.h */,
6BB5A9D31D1A86EE0006A534 /* TDSession.m */,
1950C4C633D1BEA93C441EFC /* TDIAPObserver.h */,
1950CA957CA6115F3C3DD018 /* TDIAPObserver.m */,
);
Expand Down Expand Up @@ -479,7 +479,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6BB5A9D41D1A86EF0006A534 /* Session.m in Sources */,
6BB5A9D41D1A86EF0006A534 /* TDSession.m in Sources */,
6BF8C9341A3E9B76005B1804 /* TDClient.m in Sources */,
2053A39C2047F37F0089A959 /* TDUtils.m in Sources */,
6B738099192A09160097D56E /* TreasureData.m in Sources */,
Expand Down
6 changes: 3 additions & 3 deletions TreasureData/TreasureData.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
#import <UIKit/UIKit.h>
#import "TreasureData.h"
#import "TDClient.h"
#import "Session.h"
#import "TDSession.h"
#import "TDUtils.h"
#import "Constants.h"
#import "TDConstants.h"
#import "TDIAPObserver.h"
#import "TDClientInternal.h"
#import "NSString+Helpers.h"
#import "NSString+TDHelpers.h"
#import <AdSupport/ASIdentifierManager.h>

static bool isTraceLoggingEnabled = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// NSString+Helpers.h
// NSString+TDHelpers.h
// TreasureData
//
// Created by Tung Vu on 6/3/19.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Constants.h
// TDConstants.h
// TreasureData
//
// Created by Huy Le on 3/1/18.
Expand Down
2 changes: 1 addition & 1 deletion TreasureDataInternal/TDIAPObserver.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#import "TDIAPObserver.h"
#import "TreasureData.h"
#import "Constants.h"
#import "TDConstants.h"
#import "TDUtils.h"


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Session.h
// TDSession.h
// TreasureData
//
// Created by Mitsunori Komatsu on 6/22/16.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//
// Session.m
// TDSession.m
// TreasureData
//
// Created by Mitsunori Komatsu on 6/22/16.
// Copyright © 2014 Treasure Data. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Session.h"
#import "TDSession.h"

static int DEFAULT_SESSION_PENDING_MILLIS = 10 * 1000;

Expand Down
2 changes: 1 addition & 1 deletion TreasureDataInternal/TDUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import "TDUtils.h"
#import "Constants.h"
#import "TDConstants.h"
@import KeenClientTD;

@implementation TDUtils
Expand Down
2 changes: 1 addition & 1 deletion TreasureDataTests/SessionTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <XCTest/XCTest.h>
#import "Session.h"
#import "TDSession.h"

@interface SessionTests : XCTestCase

Expand Down
2 changes: 1 addition & 1 deletion TreasureDataTests/TreasureDataTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#import "TreasureData.h"
#import "TDClient.h"
#import "TDClientInternal.h"
#import "Constants.h"
#import "TDConstants.h"
#import "TDUtils.h"
#import "TDIAPObserver.h"

Expand Down

0 comments on commit d420d73

Please sign in to comment.