Skip to content

Commit

Permalink
refactor: Include ctanker headers relative to Tanker framework
Browse files Browse the repository at this point in the history
Instead of including them from the TankerDeps XCFramework
We need this to have a modular framework, where the modulemap
only refers to headers files inside the current framework module

And we want a modular framework so that Swift can use ctanker
  • Loading branch information
tux3 committed Apr 19, 2024
1 parent 32c3552 commit 18b3a6d
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Tanker/Headers/TKRAsyncStreamReader+Private.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#import <Foundation/Foundation.h>

#include "ctanker/stream.h"
#include <Tanker/ctanker/stream.h>

void readInput(uint8_t* _Nonnull out,
int64_t n,
Expand Down
2 changes: 1 addition & 1 deletion Tanker/Headers/TKRStreamsFromNative+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#import <Tanker/TKRAsyncStreamReader+Private.h>
#import <Tanker/TKRStreamBase.h>

#include "ctanker/stream.h"
#include <Tanker/ctanker/stream.h>

@interface TKRStreamsFromNative : TKRStreamBase

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

#import <Tanker/Storage/TKRDatastore.h>

#import "ctanker/datastore.h"
#import <Tanker/ctanker/datastore.h>

static void report_error(void* error_handle, NSError* _Nonnull err)
{
Expand Down
2 changes: 1 addition & 1 deletion Tanker/Sources/TKREncryptionSession+Private.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#import <Tanker/TKREncryptionSession+Private.h>
#import <Tanker/Utils/TKRUtils.h>

#include <ctanker/encryptionsession.h>
#include <Tanker/ctanker/encryptionsession.h>

#include <objc/runtime.h>

Expand Down
2 changes: 1 addition & 1 deletion Tanker/Sources/TKREncryptionSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#import <Tanker/TKRTanker+Private.h>
#import <Tanker/Utils/TKRUtils.h>

#include "ctanker/encryptionsession.h"
#include <Tanker/ctanker/encryptionsession.h>

@implementation TKREncryptionSession

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

#include <libkern/OSAtomic.h>

#include "ctanker.h"
#include <Tanker/ctanker.h>

@interface HTTPClient : NSObject <NSURLSessionTaskDelegate>

Expand Down
2 changes: 1 addition & 1 deletion Tanker/Sources/TKRTanker+Private.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#import <Tanker/TKRTanker+Private.h>
#import <Tanker/Utils/TKRUtils.h>

#include "ctanker.h"
#include <Tanker/ctanker.h>

#include <objc/runtime.h>

Expand Down
4 changes: 2 additions & 2 deletions Tanker/Sources/TKRTanker.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include <assert.h>
#include <string.h>

#include "ctanker.h"
#include "ctanker/stream.h"
#include <Tanker/ctanker.h>
#include <Tanker/ctanker/stream.h>

NSString* const TKRErrorDomain = @"TKRErrorDomain";

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

#import <Tanker/Utils/TKRUtils.h>

#include "ctanker.h"
#include <Tanker/ctanker.h>

@implementation TKRPtrAndSizePair

Expand Down
4 changes: 2 additions & 2 deletions Tanker/Tests/TankerTests-Bridging-Header.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "TKRTestAdmin.h"

#include "ctanker.h"
#include "ctanker/identity.h"
#include <Tanker/ctanker.h>
#include <Tanker/ctanker/identity.h>
6 changes: 3 additions & 3 deletions Tanker/Tests/Tests.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
#import <PromiseKit/PromiseKit.h>
#import <Specta/Specta.h>

#include "ctanker.h"
#include "ctanker/identity.h"
#include "ctanker/private/datastore-tests/test.h"
#include <Tanker/ctanker.h>
#include <Tanker/ctanker/identity.h>
#include <Tanker/ctanker/private/datastore-tests/test.h>

static NSString* createIdentity(NSString* userID, NSString* appID, NSString* appSecret)
{
Expand Down

0 comments on commit 18b3a6d

Please sign in to comment.