Skip to content

Commit 1be6414

Browse files
committed
Merge branch 'nitro' into rename-to-nitro-sqlite
2 parents 8c8f5f6 + 0d48277 commit 1be6414

File tree

7 files changed

+31
-320
lines changed

7 files changed

+31
-320
lines changed

bun.lockb

296 Bytes
Binary file not shown.

package/nitrogen/generated/ios/RNNitroSQLite+autolinking.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@ def add_nitrogen_files(spec)
2424

2525
spec.dependency "NitroModules"
2626

27-
current_source_files = spec.attributes_hash['source_files'] || []
27+
current_source_files = Array(spec.attributes_hash['source_files'])
2828
spec.source_files = current_source_files + [
2929
# Generated cross-platform specs
3030
"nitrogen/generated/shared/**/*.{h,hpp,c,cpp,swift}",
3131
# Generated bridges for the cross-platform specs
3232
"nitrogen/generated/ios/**/*.{h,hpp,c,cpp,mm,swift}",
3333
]
3434

35-
current_public_header_files = spec.attributes_hash['public_header_files'] || []
35+
current_public_header_files = Array(spec.attributes_hash['public_header_files'])
3636
spec.public_header_files = current_public_header_files + [
3737
# Generated specs
3838
"nitrogen/generated/shared/**/*.{h,hpp}",
3939
# Swift to C++ bridging helpers
4040
"nitrogen/generated/ios/RNNitroSQLite-Swift-Cxx-Bridge.hpp"
4141
]
4242

43-
current_private_header_files = spec.attributes_hash['private_header_files'] || []
43+
current_private_header_files = Array(spec.attributes_hash['private_header_files'])
4444
spec.private_header_files = current_private_header_files + [
4545
# iOS specific specs
4646
"nitrogen/generated/ios/c++/**/*.{h,hpp}",
@@ -52,5 +52,7 @@ def add_nitrogen_files(spec)
5252
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
5353
# Enables C++ <-> Swift interop (by default it's only C)
5454
"SWIFT_OBJC_INTEROP_MODE" => "objcxx",
55+
# Enables stricter modular headers
56+
"DEFINES_MODULE" => "YES",
5557
})
5658
end

package/nitrogen/generated/ios/RNNitroSQLite-Swift-Cxx-Bridge.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@
66
///
77

88
#include "RNNitroSQLite-Swift-Cxx-Bridge.hpp"
9+
10+
// Include C++ implementation defined types
11+
12+
13+
namespace margelo::nitro::rnnitrosqlite::bridge::swift {
14+
15+
16+
17+
} // namespace margelo::nitro::rnnitrosqlite::bridge::swift

package/nitrogen/generated/ios/RNNitroSQLite-Swift-Cxx-Bridge.hpp

Lines changed: 11 additions & 281 deletions
Large diffs are not rendered by default.

package/nitrogen/generated/ios/RNNitroSQLite-Swift-Cxx-Umbrella.hpp

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,10 @@
88
#pragma once
99

1010
// Forward declarations of C++ defined types
11-
// Forward declaration of `ArrayBuffer` to properly resolve imports.
12-
namespace NitroModules { class ArrayBuffer; }
13-
// Forward declaration of `BatchQueryCommand` to properly resolve imports.
14-
namespace margelo::nitro::rnnitrosqlite { struct BatchQueryCommand; }
15-
// Forward declaration of `BatchQueryResult` to properly resolve imports.
16-
namespace margelo::nitro::rnnitrosqlite { struct BatchQueryResult; }
17-
// Forward declaration of `ColumnType` to properly resolve imports.
18-
namespace margelo::nitro::rnnitrosqlite { enum class ColumnType; }
19-
// Forward declaration of `FileLoadResult` to properly resolve imports.
20-
namespace margelo::nitro::rnnitrosqlite { struct FileLoadResult; }
21-
// Forward declaration of `HybridNativeQueryResultSpec` to properly resolve imports.
22-
namespace margelo::nitro::rnnitrosqlite { class HybridNativeQueryResultSpec; }
23-
// Forward declaration of `HybridNitroSQLiteSpec` to properly resolve imports.
24-
namespace margelo::nitro::rnnitrosqlite { class HybridNitroSQLiteSpec; }
25-
// Forward declaration of `SQLiteQueryColumnMetadata` to properly resolve imports.
26-
namespace margelo::nitro::rnnitrosqlite { struct SQLiteQueryColumnMetadata; }
11+
2712

2813
// Include C++ defined types
29-
#include "BatchQueryCommand.hpp"
30-
#include "BatchQueryResult.hpp"
31-
#include "ColumnType.hpp"
32-
#include "FileLoadResult.hpp"
33-
#include "HybridNativeQueryResultSpec.hpp"
34-
#include "HybridNitroSQLiteSpec.hpp"
35-
#include "SQLiteQueryColumnMetadata.hpp"
36-
#include <NitroModules/ArrayBuffer.hpp>
37-
#include <future>
38-
#include <memory>
39-
#include <optional>
40-
#include <string>
41-
#include <unordered_map>
42-
#include <variant>
43-
#include <vector>
14+
4415

4516
// C++ helpers for Swift
4617
#include "RNNitroSQLite-Swift-Cxx-Bridge.hpp"
@@ -52,10 +23,7 @@ namespace margelo::nitro::rnnitrosqlite { struct SQLiteQueryColumnMetadata; }
5223
#include <NitroModules/PromiseHolder.hpp>
5324

5425
// Forward declarations of Swift defined types
55-
// Forward declaration of `HybridNativeQueryResultSpecCxx` to properly resolve imports.
56-
namespace RNNitroSQLite { class HybridNativeQueryResultSpecCxx; }
57-
// Forward declaration of `HybridNitroSQLiteSpecCxx` to properly resolve imports.
58-
namespace RNNitroSQLite { class HybridNitroSQLiteSpecCxx; }
26+
5927

6028
// Include Swift defined types
6129
#if __has_include("RNNitroSQLite-Swift.h")

package/nitrogen/generated/ios/RNNitroSQLiteAutolinking.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
///
77

88
public final class RNNitroSQLiteAutolinking {
9+
public typealias bridge = margelo.nitro.rnnitrosqlite.bridge.swift
10+
911

1012
}

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"devDependencies": {
5757
"@react-native/typescript-config": "0.75.2",
5858
"babel-plugin-transform-typescript-metadata": "^0.3.2",
59-
"nitro-codegen": "^0.11.0",
59+
"nitro-codegen": "^0.13.0",
6060
"react": "18.3.1",
6161
"react-native": "0.75.2",
6262
"react-native-builder-bob": "^0.18.2"

0 commit comments

Comments
 (0)