Skip to content

Commit 7eba3bc

Browse files
Darwin: Tidy up Xcode project file and header naming
- Add missing header files to the project file and sort groups - Align group names / paths better with the file system - Consistently use "_Internal.h" for internal slice of a header (but only if the base header exists)
1 parent b590431 commit 7eba3bc

19 files changed

+234
-157
lines changed

src/darwin/Framework/CHIP/MTRBaseClustersCpp_Internal.h src/darwin/Framework/CHIP/MTRBaseClusterUtils.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#import <Foundation/Foundation.h>
1717

1818
#import "MTRBaseDevice.h"
19-
#import "MTRCluster_internal.h"
20-
#import "zap-generated/MTRCallbackBridge_internal.h"
19+
#import "MTRCallbackBridge.h"
20+
#import "MTRCluster_Internal.h"
2121

2222
#include <app/CommandSender.h>
2323
#include <app/ReadClient.h>

src/darwin/Framework/CHIP/MTRBaseDevice.mm

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
#import "MTRAttributeTLVValueDecoder_Internal.h"
1919
#import "MTRBaseDevice_Internal.h"
2020
#import "MTRBaseSubscriptionCallback.h"
21-
#import "MTRCallbackBridgeBase_internal.h"
21+
#import "MTRCallbackBridgeBase.h"
2222
#import "MTRCluster.h"
2323
#import "MTRClusterStateCacheContainer_Internal.h"
24-
#import "MTRCluster_internal.h"
24+
#import "MTRCluster_Internal.h"
2525
#import "MTRError_Internal.h"
2626
#import "MTREventTLVValueDecoder_Internal.h"
2727
#import "MTRLogging_Internal.h"

src/darwin/Framework/CHIP/MTRCluster.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
#import "MTRBaseDevice.h"
19-
#import "MTRCluster_internal.h"
19+
#import "MTRCluster_Internal.h"
2020
#import "NSDataSpanConversion.h"
2121
#import "NSStringSpanConversion.h"
2222

src/darwin/Framework/CHIP/templates/MTRBaseClusters-src.zapt

+6-7
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
#import <Foundation/Foundation.h>
44

5-
#import "MTRClusterStateCacheContainer_Internal.h"
6-
#import "MTRBaseClusters_internal.h"
7-
#import "MTRBaseDevice.h"
5+
#import "MTRBaseClusters_Internal.h"
6+
#import "MTRBaseClusterUtils.h"
87
#import "MTRBaseDevice_Internal.h"
9-
#import "MTRCallbackBridge_internal.h"
10-
#import "MTRCluster_internal.h"
11-
#import "MTRStructsObjc.h"
8+
#import "MTRCallbackBridge.h"
9+
#import "MTRCluster_Internal.h"
10+
#import "MTRClusterStateCacheContainer_Internal.h"
1211
#import "MTRCommandPayloadsObjc.h"
13-
#import "MTRBaseClustersCpp_Internal.h"
12+
#import "MTRStructsObjc.h"
1413

1514
#include <lib/support/CHIPListUtils.h>
1615
#include <platform/CHIPDeviceLayer.h>

src/darwin/Framework/CHIP/templates/MTRCallbackBridge-src.zapt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{> header excludeZapComment=true}}
22

3-
#import "MTRCallbackBridge_internal.h"
3+
#import "MTRCallbackBridge.h"
44
#import "MTRStructsObjc.h"
55
#import "MTRCommandPayloadsObjc.h"
66

src/darwin/Framework/CHIP/templates/MTRCallbackBridge_internal.zapt src/darwin/Framework/CHIP/templates/MTRCallbackBridge.zapt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{> header excludeZapComment=true}}
22

33
#import <Foundation/Foundation.h>
4-
#import "MTRCallbackBridgeBase_internal.h"
4+
#import "MTRCallbackBridgeBase.h"
55

66
#include <app/data-model/DecodableList.h>
77
#include <app/util/im-client-callbacks.h>

src/darwin/Framework/CHIP/templates/MTRClusters-src.zapt

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
#import <Foundation/Foundation.h>
44

55
#import "MTRAsyncCallbackWorkQueue.h"
6-
#import "MTRBaseDevice_internal.h"
6+
#import "MTRBaseDevice_Internal.h"
77
#import "MTRClusterConstants.h"
8-
#import "MTRClusters_internal.h"
9-
#import "MTRDevice.h"
8+
#import "MTRClusters_Internal.h"
109
#import "MTRDevice_Internal.h"
11-
#import "MTRCallbackBridge_internal.h"
12-
#import "MTRCluster_internal.h"
10+
#import "MTRCallbackBridge.h"
11+
#import "MTRCluster_Internal.h"
1312
#import "MTRStructsObjc.h"
1413
#import "MTRCommandPayloadsObjc.h"
1514
#import "MTRLogging_Internal.h"

src/darwin/Framework/CHIP/templates/templates.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,19 @@
4848
],
4949
"templates": [
5050
{
51-
"path": "MTRCallbackBridge_internal.zapt",
52-
"name": "Objc MTRCallbackBridge Internal header",
53-
"output": "src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge_internal.h"
51+
"path": "MTRCallbackBridge.zapt",
52+
"name": "Objc MTRCallbackBridge header",
53+
"output": "src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.h"
5454
},
5555
{
5656
"path": "MTRCallbackBridge-src.zapt",
5757
"name": "Objc MTRCallbackBridge",
5858
"output": "src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm"
5959
},
6060
{
61-
"path": "MTRBaseClusters_internal.zapt",
61+
"path": "MTRBaseClusters_Internal.zapt",
6262
"name": "Objc ZCL asynchronous API Internal Header",
63-
"output": "src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters_internal.h"
63+
"output": "src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters_Internal.h"
6464
},
6565
{
6666
"path": "MTRBaseClusters.zapt",
@@ -73,9 +73,9 @@
7373
"output": "src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm"
7474
},
7575
{
76-
"path": "MTRClusters_internal.zapt",
76+
"path": "MTRClusters_Internal.zapt",
7777
"name": "Objc ZCL synchronous API Internal Header",
78-
"output": "src/darwin/Framework/CHIP/zap-generated/MTRClusters_internal.h"
78+
"output": "src/darwin/Framework/CHIP/zap-generated/MTRClusters_Internal.h"
7979
},
8080
{
8181
"path": "MTRClusters.zapt",

src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm

+4-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge_internal.h src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm

+4-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)