Skip to content

Commit

Permalink
Darwin: Tidy up MTRSetupPayload headers / includes
Browse files Browse the repository at this point in the history
  • Loading branch information
ksperling-apple committed Apr 29, 2024
1 parent de9d5e2 commit 0c6aa2f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
15 changes: 9 additions & 6 deletions src/darwin/Framework/CHIP/MTRSetupPayload.mm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
*
* Copyright (c) 2020 Project CHIP Authors
* Copyright (c) 2020-2024 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,20 +15,21 @@
* limitations under the License.
*/

#import "MTRError.h"
#import "MTRSetupPayload_Internal.h"

#import "MTRError_Internal.h"
#import "MTRFramework.h"
#import "MTROnboardingPayloadParser.h"
#import "MTRSetupPayload_Internal.h"
#import "setup_payload/ManualSetupPayloadGenerator.h"
#import "setup_payload/QRCodeSetupPayloadGenerator.h"
#import <setup_payload/SetupPayload.h>

#include <setup_payload/ManualSetupPayloadGenerator.h>
#include <setup_payload/QRCodeSetupPayloadGenerator.h>
#include <setup_payload/SetupPayload.h>
#include <string>

@implementation MTROptionalQRCodeInfo
@end

MTR_DIRECT_MEMBERS
@implementation MTRSetupPayload {
chip::SetupPayload _chipSetupPayload;
}
Expand Down Expand Up @@ -418,6 +419,7 @@ + (MTRDiscoveryCapabilities)_unboxDiscoveryCapabilities:(nullable NSNumber *)box

@end

MTR_DIRECT_MEMBERS
@implementation MTROptionalQRCodeInfo (Deprecated)

- (NSNumber *)infoType
Expand All @@ -432,6 +434,7 @@ - (void)setInfoType:(NSNumber *)infoType

@end

MTR_DIRECT_MEMBERS
@implementation MTRSetupPayload (Deprecated)

- (nullable NSNumber *)rendezvousInformation
Expand Down
27 changes: 19 additions & 8 deletions src/darwin/Framework/CHIP/MTRSetupPayload_Internal.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
//
// MTRSetupPayload_Internal.h
// MTR
//
// Copyright © 2021 CHIP. All rights reserved.
//

#import <Foundation/Foundation.h>
/**
*
* Copyright (c) 2021-2024 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#import "MTRSetupPayload.h"

#import "MTRDefines_Internal.h"

#ifdef __cplusplus
#import <lib/core/Optional.h>
#import <setup_payload/SetupPayload.h>
#endif

MTR_DIRECT_MEMBERS
@interface MTRSetupPayload ()

#ifdef __cplusplus
Expand Down

0 comments on commit 0c6aa2f

Please sign in to comment.