Skip to content

Commit 91437ff

Browse files
authored
React Native 0.75 upgrade (#57)
* add yalc to gitignore * add nitro-modules deps * add nitro.json * implement nitro spec and restructure * fix: nitro.json * rename nitro spec interface * first (partial) nitrogen specs * full nitrogen specs (with string instead of any) * more nitrogen files * update nitrogen files * fix: naming clash * remove generic parameter * add nitro-modules dep to example * chore: update ruby and gems * update example Podfile * fix: XCode 12 error * use extra SelectQueryResult HybridObject * fix: ios build * implement first native hybrid function * upgrade to RN 0.75.2 * disable typeORM stuff * upgrade JDK version and gradle settings * migrate codebase to RN0.75.2 * remove yarn version dependency * update pods * fix: TurboModule import * add more scripts * load nitrogen in podspec * add Onload * move specs * remove rn @types * fix lint * rename podspec * fix: ts * fix: ts * remove unnecessary JSI files * fix: CPP headers not found * fix: onload and spec initialization * update specs * rename delete function * fix: OnLoad and use generated specs * update generated files * rename internal delete function to drop to avoid keyword clash * update specs * fix: specs * udpate specs * implement nitro functions * update specs * update specs * fix: wrong type * updat ecpp * update specs * update specs * new implementation * update Podfile * further implement nitro module * update specs * fix: inherit from abstract class * fix: make iOS build * fix: deps * update specs * update nitrogen files * rename type in C++ * disable tests temporarily * update specs * restructure * update spec * fix: ios build * update specs * change ColumnMetadata to TableMetadata * add format-cpp script * re-structure JS code * fix: tests * update specs * fix: simplify cpp and add ColumnMetadata hybrid object * add clang format script * simplify spec * fix: spec update * restructure types * fix: missing return statement * enable new arch * fix: tests * update rn safe area context lib * update nitro * add comment on how to get startup function in cpp * add default hybrid object constructors * fix: HybridObject default constructor * fix: import * update nitro * add nitro autolinking * re-structure javascript files * fix: cpp * fix: ios * fix: bootup * add clang-format config * cpp format * restructure cpp code * update specs * update spec * update cpp * fix: cpp * improve exception handling * rename * rename types * fix: cpp * fix: user table type * finish iOS * remove console.log * revert nitro changes * fix: ios * remove nitro changes * update pods and gems * rever nitro cpp changes * remove ios files * remove nitro files * remove types
1 parent 99f34eb commit 91437ff

28 files changed

+8075
-3436
lines changed

.clang-format

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Config for clang-format version 16
2+
3+
# Standard
4+
BasedOnStyle: llvm
5+
Standard: c++20
6+
7+
# Indentation
8+
IndentWidth: 2
9+
ColumnLimit: 140
10+
11+
# Includes
12+
SortIncludes: CaseSensitive
13+
SortUsingDeclarations: true
14+
15+
# Pointer and reference alignment
16+
PointerAlignment: Left
17+
ReferenceAlignment: Left
18+
ReflowComments: true
19+
20+
# Line breaking options
21+
BreakBeforeBraces: Attach
22+
BreakConstructorInitializers: BeforeColon
23+
AlwaysBreakTemplateDeclarations: true
24+
AllowShortFunctionsOnASingleLine: Empty
25+
IndentCaseLabels: true
26+
NamespaceIndentation: Inner

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ DerivedData
2727
*.hmap
2828
*.ipa
2929
*.xcuserstate
30+
**/.xcode.env.local
3031
project.xcworkspace
3132

3233
# Android/IJ
@@ -47,7 +48,7 @@ vendor/
4748

4849
# Cocoapods
4950
#
50-
example/ios/Pods
51+
**/Pods
5152
example/vendor/bundle
5253

5354
# Temporary files created by Metro to check the health of the file watcher
@@ -74,4 +75,8 @@ android/.cxx
7475
lib/
7576
# Gradle
7677
android/gradle/
77-
android/gradle*
78+
android/gradle*
79+
80+
# Yalc
81+
.yalc
82+
yalc.lock

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.6
1+
3.3.0

Gemfile

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

Gemfile.lock

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

android/.project

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,34 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>android_</name>
3+
<name>react-native-quick-sqlite</name>
44
<comment>Project android_ created by Buildship.</comment>
55
<projects>
66
</projects>
77
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
813
<buildCommand>
914
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
1015
<arguments>
1116
</arguments>
1217
</buildCommand>
1318
</buildSpec>
1419
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
1521
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
1622
</natures>
23+
<filteredResources>
24+
<filter>
25+
<id>1716472255033</id>
26+
<name></name>
27+
<type>30</type>
28+
<matcher>
29+
<id>org.eclipse.core.resources.regexFilterMatcher</id>
30+
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
31+
</matcher>
32+
</filter>
33+
</filteredResources>
1734
</projectDescription>

android/.settings/org.eclipse.buildship.core.prefs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
arguments=
1+
arguments=--init-script /var/folders/b1/xj_1nb1j5w9gx10ntjfr6jc40000gn/T/db3b08fc4a9ef609cb16b96b200fa13e563f396e9bb1ed0905fdab7bc3bc513b.gradle --init-script /var/folders/b1/xj_1nb1j5w9gx10ntjfr6jc40000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
22
auto.sync=false
33
build.scans.enabled=false
4-
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(6.0))
5-
connection.project.dir=
4+
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(8.9))
5+
connection.project.dir=../example/android
66
eclipse.preferences.version=1
77
gradle.user.home=
8-
java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
8+
java.home=/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home
99
jvm.arguments=
1010
offline.mode=false
1111
override.workspace.settings=true
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=27
3+
org.eclipse.jdt.core.compiler.compliance=27
4+
org.eclipse.jdt.core.compiler.source=27

babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset'],
2+
presets: ['module:@react-native/babel-preset'],
33
plugins: [
44
'babel-plugin-transform-typescript-metadata',
55
['@babel/plugin-proposal-decorators', { legacy: true }],
66
['@babel/plugin-proposal-class-properties', { loose: true }],
77
],
8-
};
8+
}

example/.gitignore

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ DerivedData
2020
*.hmap
2121
*.ipa
2222
*.xcuserstate
23-
ios/.xcode.env.local
23+
**/.xcode.env.local
2424

2525
# Android/IntelliJ
2626
#
@@ -54,5 +54,16 @@ yarn-error.log
5454
*.jsbundle
5555

5656
# Ruby / CocoaPods
57-
/ios/Pods/
57+
**/Pods/
5858
/vendor/bundle/
59+
60+
# testing
61+
/coverage
62+
63+
# Yarn
64+
.yarn/*
65+
!.yarn/patches
66+
!.yarn/plugins
67+
!.yarn/releases
68+
!.yarn/sdks
69+
!.yarn/versions

0 commit comments

Comments
 (0)