Skip to content

Commit e16404a

Browse files
authored
chore: Upgrade Nitro to v18 (#92)
1 parent d609ff9 commit e16404a

File tree

16 files changed

+99
-267
lines changed

16 files changed

+99
-267
lines changed

bun.lockb

-40.8 KB
Binary file not shown.
Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,88 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion="1210"
4-
version="1.3">
3+
LastUpgradeVersion = "1210"
4+
version = "1.3">
55
<BuildAction
6-
parallelizeBuildables="YES"
7-
buildImplicitDependencies="YES">
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
88
<BuildActionEntries>
99
<BuildActionEntry
10-
buildForTesting="YES"
11-
buildForRunning="YES"
12-
buildForProfiling="YES"
13-
buildForArchiving="YES"
14-
buildForAnalyzing="YES">
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
1515
<BuildableReference
16-
BuildableIdentifier="primary"
17-
BlueprintIdentifier="13B07F861A680F5B00A75B9A"
18-
BuildableName="NitroSQLiteExample.app"
19-
BlueprintName="NitroSQLiteExample"
20-
ReferencedContainer="container:NitroSQLiteExample.xcodeproj">
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18+
BuildableName = "NitroSQLiteExample.app"
19+
BlueprintName = "NitroSQLiteExample"
20+
ReferencedContainer = "container:NitroSQLiteExample.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
2323
</BuildActionEntries>
2424
</BuildAction>
2525
<TestAction
26-
buildConfiguration="Debug"
27-
selectedDebuggerIdentifier="Xcode.DebuggerFoundation.Debugger.LLDB"
28-
selectedLauncherIdentifier="Xcode.DebuggerFoundation.Launcher.LLDB"
29-
shouldUseLaunchSchemeArgsEnv="YES">
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
3131
<TestableReference
32-
skipped="NO">
32+
skipped = "NO">
3333
<BuildableReference
34-
BuildableIdentifier="primary"
35-
BlueprintIdentifier="00E356ED1AD99517003FC87E"
36-
BuildableName="NitroSQLiteExampleTests.xctest"
37-
BlueprintName="NitroSQLiteExampleTests"
38-
ReferencedContainer="container:NitroSQLiteExample.xcodeproj">
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "00E356ED1AD99517003FC87E"
36+
BuildableName = "NitroSQLiteExampleTests.xctest"
37+
BlueprintName = "NitroSQLiteExampleTests"
38+
ReferencedContainer = "container:NitroSQLiteExample.xcodeproj">
3939
</BuildableReference>
4040
</TestableReference>
4141
</Testables>
4242
</TestAction>
4343
<LaunchAction
44-
buildConfiguration="Debug"
45-
selectedDebuggerIdentifier="Xcode.DebuggerFoundation.Debugger.LLDB"
46-
selectedLauncherIdentifier="Xcode.DebuggerFoundation.Launcher.LLDB"
47-
launchStyle="0"
48-
useCustomWorkingDirectory="NO"
49-
ignoresPersistentStateOnLaunch="NO"
50-
debugDocumentVersioning="YES"
51-
debugServiceExtension="internal"
52-
allowLocationSimulation="YES">
44+
buildConfiguration = "Debug"
45+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
46+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47+
launchStyle = "0"
48+
useCustomWorkingDirectory = "NO"
49+
ignoresPersistentStateOnLaunch = "NO"
50+
debugDocumentVersioning = "YES"
51+
debugServiceExtension = "internal"
52+
allowLocationSimulation = "YES">
5353
<BuildableProductRunnable
54-
runnableDebuggingMode="0">
54+
runnableDebuggingMode = "0">
5555
<BuildableReference
56-
BuildableIdentifier="primary"
57-
BlueprintIdentifier="13B07F861A680F5B00A75B9A"
58-
BuildableName="NitroSQLiteExample.app"
59-
BlueprintName="NitroSQLiteExample"
60-
ReferencedContainer="container:NitroSQLiteExample.xcodeproj">
56+
BuildableIdentifier = "primary"
57+
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
58+
BuildableName = "NitroSQLiteExample.app"
59+
BlueprintName = "NitroSQLiteExample"
60+
ReferencedContainer = "container:NitroSQLiteExample.xcodeproj">
6161
</BuildableReference>
6262
</BuildableProductRunnable>
6363
</LaunchAction>
6464
<ProfileAction
65-
buildConfiguration="Release"
66-
shouldUseLaunchSchemeArgsEnv="YES"
67-
savedToolIdentifier=""
68-
useCustomWorkingDirectory="NO"
69-
debugDocumentVersioning="YES">
65+
buildConfiguration = "Release"
66+
shouldUseLaunchSchemeArgsEnv = "YES"
67+
savedToolIdentifier = ""
68+
useCustomWorkingDirectory = "NO"
69+
debugDocumentVersioning = "YES">
7070
<BuildableProductRunnable
71-
runnableDebuggingMode="0">
71+
runnableDebuggingMode = "0">
7272
<BuildableReference
73-
BuildableIdentifier="primary"
74-
BlueprintIdentifier="13B07F861A680F5B00A75B9A"
75-
BuildableName="NitroSQLiteExample.app"
76-
BlueprintName="NitroSQLiteExample"
77-
ReferencedContainer="container:NitroSQLiteExample.xcodeproj">
73+
BuildableIdentifier = "primary"
74+
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
75+
BuildableName = "NitroSQLiteExample.app"
76+
BlueprintName = "NitroSQLiteExample"
77+
ReferencedContainer = "container:NitroSQLiteExample.xcodeproj">
7878
</BuildableReference>
7979
</BuildableProductRunnable>
8080
</ProfileAction>
8181
<AnalyzeAction
82-
buildConfiguration="Debug">
82+
buildConfiguration = "Debug">
8383
</AnalyzeAction>
8484
<ArchiveAction
85-
buildConfiguration="Release"
86-
revealArchiveInOrganizer="YES">
85+
buildConfiguration = "Release"
86+
revealArchiveInOrganizer = "YES">
8787
</ArchiveAction>
8888
</Scheme>

example/ios/Podfile.lock

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@ PODS:
77
- hermes-engine (0.76.1):
88
- hermes-engine/Pre-built (= 0.76.1)
99
- hermes-engine/Pre-built (0.76.1)
10-
- NitroModules (0.16.1):
10+
- NitroModules (0.18.1):
1111
- DoubleConversion
1212
- glog
1313
- hermes-engine
1414
- RCT-Folly (= 2024.01.01.00)
1515
- RCTRequired
1616
- RCTTypeSafety
17+
- React-callinvoker
1718
- React-Core
1819
- React-debug
1920
- React-Fabric
2021
- React-featureflags
2122
- React-graphics
2223
- React-ImageManager
24+
- React-jsi
2325
- React-NativeModulesApple
2426
- React-RCTFabric
2527
- React-rendererdebug
@@ -1885,7 +1887,7 @@ SPEC CHECKSUMS:
18851887
fmt: 10c6e61f4be25dc963c36bd73fc7b1705fe975be
18861888
glog: 08b301085f15bcbb6ff8632a8ebaf239aae04e6a
18871889
hermes-engine: 46f1ffbf0297f4298862068dd4c274d4ac17a1fd
1888-
NitroModules: 69af449f389d4c548848a400e1270f672a64e5a3
1890+
NitroModules: 1301dc53a33ca73ada1479a3dda1141032d8e597
18891891
RCT-Folly: bf5c0376ffe4dd2cf438dcf86db385df9fdce648
18901892
RCTDeprecation: fde92935b3caa6cb65cbff9fbb7d3a9867ffb259
18911893
RCTRequired: 75c6cee42d21c1530a6f204ba32ff57335d19007

example/src/tests/unitTests.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import type {
66
import { beforeEach, describe, it } from './MochaRNAdapter'
77
import chai from 'chai'
88
import { testDb as testDbInternal, resetTestDb } from './db'
9+
import { User } from '../model/User'
910

1011
function isError(e: unknown): e is Error {
1112
return e instanceof Error

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"patch-package": "^8.0.0",
3232
"react": "18.3.1",
3333
"react-native": "0.76.1",
34-
"react-native-nitro-modules": "^0.16.1"
34+
"react-native-nitro-modules": "^0.18.1"
3535
},
3636
"devDependencies": {
3737
"@babel/core": "^7.25.2",
@@ -57,7 +57,7 @@
5757
"eslint-config-prettier": "^9.1.0",
5858
"eslint-plugin-prettier": "^5.2.1",
5959
"jest": "^29.7.0",
60-
"nitro-codegen": "^0.16.1",
60+
"nitro-codegen": "^0.17.0",
6161
"prettier": "^3.3.3",
6262
"release-it": "^17.10.0",
6363
"typescript": "~5.5.4",

package/cpp/NitroSQLiteException.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class NitroSQLiteException : public std::exception {
3434
explicit NitroSQLiteException(const std::string& message): NitroSQLiteException(NitroSQLiteExceptionType::UnknownError, message) {}
3535
NitroSQLiteException(const NitroSQLiteExceptionType& type, const char* message) : NitroSQLiteException(type, std::string(message)) {}
3636
NitroSQLiteException(const NitroSQLiteExceptionType& type, const std::string& message)
37-
: _exceptionString("[react-native-nitro-sqlite] " + typeToString(type) + ": " + message) {}
37+
: _exceptionString("[" + typeToString(type) + "] " + message) {}
3838

3939
private:
4040
const std::string _exceptionString;

package/cpp/ThreadPool.cpp

Lines changed: 0 additions & 91 deletions
This file was deleted.

package/cpp/ThreadPool.hpp

Lines changed: 0 additions & 50 deletions
This file was deleted.

package/cpp/specs/HybridNativeQueryResult.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ namespace margelo::nitro::rnnitrosqlite {
55
std::optional<double> HybridNativeQueryResult::getInsertId() {
66
return this->_insertId;
77
}
8+
89
double HybridNativeQueryResult::getRowsAffected() {
910
return this->_rowsAffected;
1011
}

package/cpp/specs/HybridNativeQueryResult.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ class HybridNativeQueryResult : public HybridNativeQueryResultSpec {
2727
public:
2828
// Properties
2929
std::optional<double> getInsertId() override;
30+
3031
double getRowsAffected() override;
32+
3133
SQLiteQueryResults getResults() override;
34+
3235
std::optional<SQLiteQueryTableMetadata> getMetadata() override;
3336
};
3437

0 commit comments

Comments
 (0)