Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
e996e15
add yalc to gitignore
Sep 1, 2024
86bd024
add nitro-modules deps
Sep 1, 2024
397007c
add nitro.json
Sep 1, 2024
5302e24
implement nitro spec and restructure
Sep 1, 2024
bf79fd9
fix: nitro.json
Sep 1, 2024
2bc63f5
rename nitro spec interface
Sep 1, 2024
66c10da
first (partial) nitrogen specs
Sep 1, 2024
d37f1aa
full nitrogen specs (with string instead of any)
Sep 1, 2024
db3118c
more nitrogen files
Sep 1, 2024
a8c04f6
update nitrogen files
Sep 1, 2024
d7933a7
fix: naming clash
Sep 1, 2024
da4243c
remove generic parameter
Sep 1, 2024
b981870
add nitro-modules dep to example
Sep 1, 2024
301f7ae
chore: update ruby and gems
Sep 1, 2024
61012d4
update example Podfile
Sep 1, 2024
e904cec
fix: XCode 12 error
Sep 1, 2024
28f1a61
use extra SelectQueryResult HybridObject
Sep 1, 2024
053e016
fix: ios build
Sep 1, 2024
7729a54
implement first native hybrid function
Sep 2, 2024
de77eec
upgrade to RN 0.75.2
Sep 2, 2024
6b70ea7
disable typeORM stuff
Sep 2, 2024
06716a6
upgrade JDK version and gradle settings
Sep 2, 2024
d104b11
migrate codebase to RN0.75.2
Sep 2, 2024
0af5d40
remove yarn version dependency
Sep 2, 2024
e9238f4
update pods
Sep 2, 2024
ec78618
fix: TurboModule import
Sep 4, 2024
93588da
add more scripts
Sep 4, 2024
315dab1
load nitrogen in podspec
Sep 4, 2024
fe8200a
add Onload
Sep 4, 2024
ac03163
move specs
Sep 4, 2024
888820a
remove rn @types
Sep 4, 2024
1b229ac
fix lint
Sep 4, 2024
be94a8f
rename podspec
Sep 4, 2024
bf7ba4c
fix: ts
Sep 4, 2024
70cce45
fix: ts
Sep 4, 2024
638fb8e
remove unnecessary JSI files
Sep 5, 2024
71765f8
fix: CPP headers not found
Sep 5, 2024
8c32239
fix: onload and spec initialization
Sep 5, 2024
74a29bd
update specs
Sep 5, 2024
5078cfa
rename delete function
Sep 5, 2024
6a548da
fix: OnLoad and use generated specs
Sep 5, 2024
9a2585c
update generated files
Sep 5, 2024
3d75e25
rename internal delete function to drop to avoid keyword clash
Sep 5, 2024
0548315
update specs
Sep 6, 2024
cc4a75d
fix: specs
Sep 6, 2024
5f732ba
udpate specs
Sep 6, 2024
9ecfa76
implement nitro functions
Sep 6, 2024
84f8246
update specs
Sep 6, 2024
1e8b539
update specs
Sep 6, 2024
92bbe92
fix: wrong type
Sep 6, 2024
9b6fea8
updat ecpp
Sep 6, 2024
95e5e28
update specs
Sep 8, 2024
411c272
update specs
Sep 8, 2024
426eb3c
new implementation
Sep 8, 2024
8e7b407
update Podfile
Sep 8, 2024
855ab34
further implement nitro module
Sep 9, 2024
51d0064
update specs
Sep 9, 2024
bcc95f5
fix: inherit from abstract class
Sep 9, 2024
21c845e
fix: make iOS build
Sep 9, 2024
7a1dedd
fix: deps
Sep 9, 2024
a99f020
update specs
Sep 10, 2024
5e85ba7
update nitrogen files
Sep 10, 2024
fdf55de
rename type in C++
Sep 10, 2024
d37a717
disable tests temporarily
Sep 10, 2024
ff55b4b
update specs
Sep 10, 2024
7fe3b5a
restructure
Sep 10, 2024
3a563d1
update spec
Sep 10, 2024
18c9fa8
fix: ios build
Sep 10, 2024
c3b337a
update specs
Sep 11, 2024
26049df
change ColumnMetadata to TableMetadata
Sep 11, 2024
6eca091
add format-cpp script
Sep 11, 2024
f05b96f
re-structure JS code
Sep 11, 2024
f7d17e6
fix: tests
Sep 11, 2024
a8533d4
update specs
Sep 11, 2024
00fa0af
fix: simplify cpp and add ColumnMetadata hybrid object
Sep 11, 2024
c9152a5
add clang format script
Sep 11, 2024
4435d71
simplify spec
Sep 11, 2024
f4b0340
fix: spec update
Sep 11, 2024
d2d7d07
restructure types
Sep 11, 2024
464d71f
fix: missing return statement
Sep 11, 2024
993bcd5
enable new arch
Sep 11, 2024
2897ba8
fix: tests
Sep 11, 2024
761f7a4
update rn safe area context lib
Sep 11, 2024
4fd4b04
update nitro
Sep 11, 2024
8ed7787
add comment on how to get startup function in cpp
Sep 11, 2024
5ccd99f
add default hybrid object constructors
Sep 11, 2024
b83e43c
fix: HybridObject default constructor
Sep 11, 2024
14dc2d8
fix: import
Sep 11, 2024
b84413d
update nitro
chrispader Sep 13, 2024
307bb7c
add nitro autolinking
chrispader Sep 13, 2024
f05ed1f
re-structure javascript files
chrispader Sep 13, 2024
b51d7c2
fix: cpp
chrispader Sep 13, 2024
da62169
fix: ios
chrispader Sep 13, 2024
c94bae3
fix: bootup
chrispader Sep 13, 2024
76a9253
add clang-format config
chrispader Sep 13, 2024
c02e7d9
cpp format
chrispader Sep 13, 2024
4220e58
restructure cpp code
chrispader Sep 13, 2024
7fb39b2
update specs
chrispader Sep 13, 2024
dbb93f1
update spec
chrispader Sep 13, 2024
b9e48f8
update cpp
chrispader Sep 13, 2024
9041017
fix: cpp
chrispader Sep 13, 2024
78e91d3
improve exception handling
chrispader Sep 14, 2024
b85d6c1
rename
chrispader Sep 14, 2024
e33dfff
rename types
chrispader Sep 14, 2024
73a2e3f
fix: cpp
chrispader Sep 14, 2024
fc9b608
fix: user table type
chrispader Sep 14, 2024
1865c93
finish iOS
chrispader Sep 14, 2024
e48445e
remove console.log
chrispader Sep 15, 2024
47360c7
revert nitro changes
chrispader Sep 15, 2024
da2c7cf
fix: ios
chrispader Sep 15, 2024
1d99d28
remove nitro changes
chrispader Sep 15, 2024
38a2a32
update pods and gems
chrispader Sep 15, 2024
c12b6d5
rever nitro cpp changes
chrispader Sep 15, 2024
14a4ff7
remove ios files
chrispader Sep 15, 2024
177699b
remove nitro files
chrispader Sep 15, 2024
cf97e52
remove types
chrispader Sep 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Config for clang-format version 16

# Standard
BasedOnStyle: llvm
Standard: c++20

# Indentation
IndentWidth: 2
ColumnLimit: 140

# Includes
SortIncludes: CaseSensitive
SortUsingDeclarations: true

# Pointer and reference alignment
PointerAlignment: Left
ReferenceAlignment: Left
ReflowComments: true

# Line breaking options
BreakBeforeBraces: Attach
BreakConstructorInitializers: BeforeColon
AlwaysBreakTemplateDeclarations: true
AllowShortFunctionsOnASingleLine: Empty
IndentCaseLabels: true
NamespaceIndentation: Inner
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
**/.xcode.env.local
project.xcworkspace

# Android/IJ
Expand All @@ -47,7 +48,7 @@ vendor/

# Cocoapods
#
example/ios/Pods
**/Pods
example/vendor/bundle

# Temporary files created by Metro to check the health of the file watcher
Expand All @@ -74,4 +75,8 @@ android/.cxx
lib/
# Gradle
android/gradle/
android/gradle*
android/gradle*

# Yalc
.yalc
yalc.lock
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.6
3.3.0
4 changes: 0 additions & 4 deletions Gemfile

This file was deleted.

98 changes: 0 additions & 98 deletions Gemfile.lock

This file was deleted.

19 changes: 18 additions & 1 deletion android/.project
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>android_</name>
<name>react-native-quick-sqlite</name>
<comment>Project android_ created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
<filteredResources>
<filter>
<id>1716472255033</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
8 changes: 4 additions & 4 deletions android/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
arguments=
arguments=--init-script /var/folders/b1/xj_1nb1j5w9gx10ntjfr6jc40000gn/T/db3b08fc4a9ef609cb16b96b200fa13e563f396e9bb1ed0905fdab7bc3bc513b.gradle --init-script /var/folders/b1/xj_1nb1j5w9gx10ntjfr6jc40000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(6.0))
connection.project.dir=
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(8.9))
connection.project.dir=../example/android
eclipse.preferences.version=1
gradle.user.home=
java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
java.home=/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home
jvm.arguments=
offline.mode=false
override.workspace.settings=true
Expand Down
4 changes: 4 additions & 0 deletions android/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=27
org.eclipse.jdt.core.compiler.compliance=27
org.eclipse.jdt.core.compiler.source=27
4 changes: 2 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ['module:@react-native/babel-preset'],
plugins: [
'babel-plugin-transform-typescript-metadata',
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
],
};
}
15 changes: 13 additions & 2 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
ios/.xcode.env.local
**/.xcode.env.local

# Android/IntelliJ
#
Expand Down Expand Up @@ -54,5 +54,16 @@ yarn-error.log
*.jsbundle

# Ruby / CocoaPods
/ios/Pods/
**/Pods/
/vendor/bundle/

# testing
/coverage

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
2 changes: 1 addition & 1 deletion example/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.6
3.3.0
7 changes: 4 additions & 3 deletions example/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '2.7.6'
ruby '3.3.0'

gem 'cocoapods', '~> 1.11', '>= 1.11.3'
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
56 changes: 36 additions & 20 deletions example/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,26 +1,35 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.6)
CFPropertyList (3.0.7)
base64
nkf
rexml
activesupport (7.0.6)
activesupport (7.1.3.3)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.4)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
algoliasearch (1.27.5)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
atomos (0.1.3)
base64 (0.2.0)
bigdecimal (3.1.8)
claide (1.1.0)
cocoapods (1.12.1)
cocoapods (1.15.2)
addressable (~> 2.8)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.12.1)
cocoapods-core (= 1.15.2)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 1.6.0, < 2.0)
cocoapods-downloader (>= 2.1, < 3.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.6.0, < 2.0)
Expand All @@ -32,8 +41,8 @@ GEM
molinillo (~> 0.8.0)
nap (~> 1.0)
ruby-macho (>= 2.3.0, < 3.0)
xcodeproj (>= 1.21.0, < 2.0)
cocoapods-core (1.12.1)
xcodeproj (>= 1.23.0, < 2.0)
cocoapods-core (1.15.2)
activesupport (>= 5.0, < 8)
addressable (~> 2.8)
algoliasearch (~> 1.0)
Expand All @@ -44,7 +53,7 @@ GEM
public_suffix (~> 4.0)
typhoeus (~> 1.0)
cocoapods-deintegrate (1.0.5)
cocoapods-downloader (1.6.3)
cocoapods-downloader (2.1)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.1)
Expand All @@ -53,31 +62,37 @@ GEM
netrc (~> 0.11)
cocoapods-try (1.2.0)
colored2 (3.1.2)
concurrent-ruby (1.2.2)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
drb (2.2.1)
escape (0.0.4)
ethon (0.16.0)
ffi (>= 1.15.0)
ffi (1.15.5)
ffi (1.16.3)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
httpclient (2.8.3)
i18n (1.14.1)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
json (2.6.3)
minitest (5.18.1)
json (2.7.2)
minitest (5.23.1)
molinillo (0.8.0)
mutex_m (0.2.0)
nanaimo (0.3.0)
nap (1.1.0)
netrc (0.11.0)
nkf (0.2.0)
public_suffix (4.0.7)
rexml (3.2.5)
rexml (3.2.8)
strscan (>= 3.0.9)
ruby-macho (2.5.1)
typhoeus (1.4.0)
strscan (3.1.0)
typhoeus (1.4.1)
ethon (>= 0.9.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
xcodeproj (1.22.0)
xcodeproj (1.24.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
Expand All @@ -89,10 +104,11 @@ PLATFORMS
ruby

DEPENDENCIES
cocoapods (~> 1.11, >= 1.11.3)
activesupport (>= 6.1.7.5, != 7.1.0)
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)

RUBY VERSION
ruby 2.7.6p219
ruby 3.3.0p0

BUNDLED WITH
2.3.20
2.5.10
Loading