Skip to content

Commit 7706606

Browse files
authored
Abstract promise code and make simple result creation faster (#341)
* New architecture and JSI code
1 parent 18c4c94 commit 7706606

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+4603
-6511
lines changed

.clang-format

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
BasedOnStyle: LLVM
2-
IndentWidth: 4
2+
# IndentWidth: 4
3+
# AlignEscapedNewlines: Left
4+
# IndentPPDirectives: BeforeHash
5+
# IndentPPDirectives: AfterHash

.github/actions/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ runs:
2020
path: |
2121
**/node_modules
2222
.yarn/install-state.gz
23-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
23+
# key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
24+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock', 'example/yarn.lock') }}-${{ hashFiles('package.json', 'example/package.json') }}
2425
restore-keys: |
25-
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
2626
${{ runner.os }}-yarn-
2727
2828
- name: Install dependencies

android/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ add_definitions(
1616
add_library(
1717
${PACKAGE_NAME}
1818
SHARED
19-
../cpp/bindings.cpp
19+
../cpp/OPSqlite.cpp
2020
../cpp/utils.cpp
2121
../cpp/OPThreadPool.cpp
2222
../cpp/SmartHostObject.cpp

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ dependencies {
245245

246246
tasks.register('prepareHeaders', Copy) {
247247
from('../cpp')
248-
include "**/*.h"
248+
include "**/*.h", "**/*.hpp"
249249
into "${project.buildDir}/headers/op-sqlite/op-engineering_op-sqlite/"
250250
includeEmptyDirs = false
251251
}

android/cpp-adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "bindings.h"
1+
#include "OPSqlite.hpp"
22
#include "logs.h"
33
#include <ReactCommon/CallInvokerHolder.h>
44
#include <fbjni/fbjni.h>

0 commit comments

Comments
 (0)