react-native-nitro-sqlite 9.1.3 → 9.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RNNitroSQLite.podspec +0 -1
- package/android/build.gradle +5 -7
- package/android/gradle.properties +2 -2
- package/android/src/main/kotlin/com/margelo/rnnitrosqlite/RNNitroSQLitePackage.kt +27 -0
- package/cpp/operations.cpp +1 -1
- package/lib/commonjs/OnLoad.android.js +11 -0
- package/lib/commonjs/OnLoad.android.js.map +1 -0
- package/lib/commonjs/OnLoad.js +10 -0
- package/lib/commonjs/OnLoad.js.map +1 -0
- package/lib/commonjs/index.js +2 -7
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/NitroSQLiteOnLoad.nitro.js +6 -0
- package/lib/commonjs/specs/NitroSQLiteOnLoad.nitro.js.map +1 -0
- package/lib/module/OnLoad.android.js +6 -0
- package/lib/module/OnLoad.android.js.map +1 -0
- package/lib/module/OnLoad.js +5 -0
- package/lib/module/OnLoad.js.map +1 -0
- package/lib/module/index.js +2 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/specs/NitroSQLiteOnLoad.nitro.js +4 -0
- package/lib/module/specs/NitroSQLiteOnLoad.nitro.js.map +1 -0
- package/lib/typescript/commonjs/OnLoad.android.d.ts +2 -0
- package/lib/typescript/commonjs/OnLoad.android.d.ts.map +1 -0
- package/lib/typescript/commonjs/OnLoad.d.ts +2 -0
- package/lib/typescript/commonjs/OnLoad.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +0 -2
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/specs/NitroSQLiteOnLoad.nitro.d.ts +7 -0
- package/lib/typescript/commonjs/specs/NitroSQLiteOnLoad.nitro.d.ts.map +1 -0
- package/lib/typescript/module/OnLoad.android.d.ts +2 -0
- package/lib/typescript/module/OnLoad.android.d.ts.map +1 -0
- package/lib/typescript/module/OnLoad.d.ts +2 -0
- package/lib/typescript/module/OnLoad.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +0 -2
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/specs/NitroSQLiteOnLoad.nitro.d.ts +7 -0
- package/lib/typescript/module/specs/NitroSQLiteOnLoad.nitro.d.ts.map +1 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/RNNitroSQLite+autolinking.cmake +21 -1
- package/nitrogen/generated/android/RNNitroSQLiteOnLoad.cpp +17 -1
- package/nitrogen/generated/android/c++/JHybridNitroSQLiteOnLoadSpec.cpp +40 -0
- package/nitrogen/generated/android/c++/JHybridNitroSQLiteOnLoadSpec.hpp +62 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rnnitrosqlite/HybridNitroSQLiteOnLoad.kt +18 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rnnitrosqlite/HybridNitroSQLiteOnLoadSpec.kt +52 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rnnitrosqlite/RNNitroSQLiteOnLoad.kt +35 -0
- package/nitrogen/generated/ios/RNNitroSQLite+autolinking.rb +2 -0
- package/nitrogen/generated/ios/RNNitroSQLite-Swift-Cxx-Umbrella.hpp +0 -1
- package/nitrogen/generated/shared/c++/BatchQueryCommand.hpp +2 -1
- package/nitrogen/generated/shared/c++/BatchQueryResult.hpp +2 -1
- package/nitrogen/generated/shared/c++/ColumnType.hpp +1 -1
- package/nitrogen/generated/shared/c++/FileLoadResult.hpp +2 -1
- package/nitrogen/generated/shared/c++/HybridNativeQueryResultSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridNitroSQLiteOnLoadSpec.cpp +21 -0
- package/nitrogen/generated/shared/c++/HybridNitroSQLiteOnLoadSpec.hpp +62 -0
- package/nitrogen/generated/shared/c++/HybridNitroSQLiteSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/SQLiteNullValue.hpp +2 -1
- package/nitrogen/generated/shared/c++/SQLiteQueryColumnMetadata.hpp +2 -1
- package/package.json +8 -16
- package/src/OnLoad.android.ts +6 -0
- package/src/OnLoad.ts +2 -0
- package/src/index.ts +2 -5
- package/src/specs/NitroSQLiteOnLoad.nitro.ts +5 -0
- package/android/src/main/java/com/margelo/rnnitrosqlite/RNNitroSQLitePackage.kt +0 -40
- package/android/src/newarch/com/margelo/rnnitrosqlite/RNNitroSQLiteOnLoadModule.kt +0 -41
- package/android/src/oldarch/com/margelo/rnnitrosqlite/RNNitroSQLiteOnLoadModule.kt +0 -43
- package/lib/commonjs/specs/NativeNitroSQLiteOnLoad.ios.js +0 -11
- package/lib/commonjs/specs/NativeNitroSQLiteOnLoad.ios.js.map +0 -1
- package/lib/commonjs/specs/NativeNitroSQLiteOnLoad.js +0 -9
- package/lib/commonjs/specs/NativeNitroSQLiteOnLoad.js.map +0 -1
- package/lib/module/specs/NativeNitroSQLiteOnLoad.ios.js +0 -7
- package/lib/module/specs/NativeNitroSQLiteOnLoad.ios.js.map +0 -1
- package/lib/module/specs/NativeNitroSQLiteOnLoad.js +0 -5
- package/lib/module/specs/NativeNitroSQLiteOnLoad.js.map +0 -1
- package/lib/typescript/commonjs/specs/NativeNitroSQLiteOnLoad.d.ts +0 -7
- package/lib/typescript/commonjs/specs/NativeNitroSQLiteOnLoad.d.ts.map +0 -1
- package/lib/typescript/commonjs/specs/NativeNitroSQLiteOnLoad.ios.d.ts +0 -4
- package/lib/typescript/commonjs/specs/NativeNitroSQLiteOnLoad.ios.d.ts.map +0 -1
- package/lib/typescript/module/specs/NativeNitroSQLiteOnLoad.d.ts +0 -7
- package/lib/typescript/module/specs/NativeNitroSQLiteOnLoad.d.ts.map +0 -1
- package/lib/typescript/module/specs/NativeNitroSQLiteOnLoad.ios.d.ts +0 -4
- package/lib/typescript/module/specs/NativeNitroSQLiteOnLoad.ios.d.ts.map +0 -1
- package/nitrogen/generated/android/RNNitroSQLiteOnLoad.kt +0 -1
- package/src/specs/NativeNitroSQLiteOnLoad.ios.ts +0 -7
- package/src/specs/NativeNitroSQLiteOnLoad.ts +0 -7
- /package/android/src/main/{java → kotlin}/com/margelo/rnnitrosqlite/DocPathSetter.kt +0 -0
|
@@ -41,6 +41,7 @@ namespace margelo::nitro::rnnitrosqlite {
|
|
|
41
41
|
std::optional<std::variant<std::vector<std::variant<std::string, double, bool, std::shared_ptr<ArrayBuffer>, SQLiteNullValue>>, std::vector<std::vector<std::variant<std::string, double, bool, std::shared_ptr<ArrayBuffer>, SQLiteNullValue>>>>> params SWIFT_PRIVATE;
|
|
42
42
|
|
|
43
43
|
public:
|
|
44
|
+
BatchQueryCommand() = default;
|
|
44
45
|
explicit BatchQueryCommand(std::string query, std::optional<std::variant<std::vector<std::variant<std::string, double, bool, std::shared_ptr<ArrayBuffer>, SQLiteNullValue>>, std::vector<std::vector<std::variant<std::string, double, bool, std::shared_ptr<ArrayBuffer>, SQLiteNullValue>>>>> params): query(query), params(params) {}
|
|
45
46
|
};
|
|
46
47
|
|
|
@@ -52,7 +53,7 @@ namespace margelo::nitro {
|
|
|
52
53
|
|
|
53
54
|
// C++ BatchQueryCommand <> JS BatchQueryCommand (object)
|
|
54
55
|
template <>
|
|
55
|
-
struct JSIConverter<BatchQueryCommand> {
|
|
56
|
+
struct JSIConverter<BatchQueryCommand> final {
|
|
56
57
|
static inline BatchQueryCommand fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
57
58
|
jsi::Object obj = arg.asObject(runtime);
|
|
58
59
|
return BatchQueryCommand(
|
|
@@ -32,6 +32,7 @@ namespace margelo::nitro::rnnitrosqlite {
|
|
|
32
32
|
std::optional<double> rowsAffected SWIFT_PRIVATE;
|
|
33
33
|
|
|
34
34
|
public:
|
|
35
|
+
BatchQueryResult() = default;
|
|
35
36
|
explicit BatchQueryResult(std::optional<double> rowsAffected): rowsAffected(rowsAffected) {}
|
|
36
37
|
};
|
|
37
38
|
|
|
@@ -43,7 +44,7 @@ namespace margelo::nitro {
|
|
|
43
44
|
|
|
44
45
|
// C++ BatchQueryResult <> JS BatchQueryResult (object)
|
|
45
46
|
template <>
|
|
46
|
-
struct JSIConverter<BatchQueryResult> {
|
|
47
|
+
struct JSIConverter<BatchQueryResult> final {
|
|
47
48
|
static inline BatchQueryResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
48
49
|
jsi::Object obj = arg.asObject(runtime);
|
|
49
50
|
return BatchQueryResult(
|
|
@@ -41,7 +41,7 @@ namespace margelo::nitro {
|
|
|
41
41
|
|
|
42
42
|
// C++ ColumnType <> JS ColumnType (enum)
|
|
43
43
|
template <>
|
|
44
|
-
struct JSIConverter<ColumnType> {
|
|
44
|
+
struct JSIConverter<ColumnType> final {
|
|
45
45
|
static inline ColumnType fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
46
46
|
int enumValue = JSIConverter<int>::fromJSI(runtime, arg);
|
|
47
47
|
return static_cast<ColumnType>(enumValue);
|
|
@@ -33,6 +33,7 @@ namespace margelo::nitro::rnnitrosqlite {
|
|
|
33
33
|
std::optional<double> rowsAffected SWIFT_PRIVATE;
|
|
34
34
|
|
|
35
35
|
public:
|
|
36
|
+
FileLoadResult() = default;
|
|
36
37
|
explicit FileLoadResult(std::optional<double> commands, std::optional<double> rowsAffected): commands(commands), rowsAffected(rowsAffected) {}
|
|
37
38
|
};
|
|
38
39
|
|
|
@@ -44,7 +45,7 @@ namespace margelo::nitro {
|
|
|
44
45
|
|
|
45
46
|
// C++ FileLoadResult <> JS FileLoadResult (object)
|
|
46
47
|
template <>
|
|
47
|
-
struct JSIConverter<FileLoadResult> {
|
|
48
|
+
struct JSIConverter<FileLoadResult> final {
|
|
48
49
|
static inline FileLoadResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
49
50
|
jsi::Object obj = arg.asObject(runtime);
|
|
50
51
|
return FileLoadResult(
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridNitroSQLiteOnLoadSpec.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include "HybridNitroSQLiteOnLoadSpec.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::rnnitrosqlite {
|
|
11
|
+
|
|
12
|
+
void HybridNitroSQLiteOnLoadSpec::loadHybridMethods() {
|
|
13
|
+
// load base methods/properties
|
|
14
|
+
HybridObject::loadHybridMethods();
|
|
15
|
+
// load custom methods/properties
|
|
16
|
+
registerHybrids(this, [](Prototype& prototype) {
|
|
17
|
+
prototype.registerHybridMethod("init", &HybridNitroSQLiteOnLoadSpec::init);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
} // namespace margelo::nitro::rnnitrosqlite
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridNitroSQLiteOnLoadSpec.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#if __has_include(<NitroModules/HybridObject.hpp>)
|
|
11
|
+
#include <NitroModules/HybridObject.hpp>
|
|
12
|
+
#else
|
|
13
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
14
|
+
#endif
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
namespace margelo::nitro::rnnitrosqlite {
|
|
21
|
+
|
|
22
|
+
using namespace margelo::nitro;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* An abstract base class for `NitroSQLiteOnLoad`
|
|
26
|
+
* Inherit this class to create instances of `HybridNitroSQLiteOnLoadSpec` in C++.
|
|
27
|
+
* You must explicitly call `HybridObject`'s constructor yourself, because it is virtual.
|
|
28
|
+
* @example
|
|
29
|
+
* ```cpp
|
|
30
|
+
* class HybridNitroSQLiteOnLoad: public HybridNitroSQLiteOnLoadSpec {
|
|
31
|
+
* public:
|
|
32
|
+
* HybridNitroSQLiteOnLoad(...): HybridObject(TAG) { ... }
|
|
33
|
+
* // ...
|
|
34
|
+
* };
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
class HybridNitroSQLiteOnLoadSpec: public virtual HybridObject {
|
|
38
|
+
public:
|
|
39
|
+
// Constructor
|
|
40
|
+
explicit HybridNitroSQLiteOnLoadSpec(): HybridObject(TAG) { }
|
|
41
|
+
|
|
42
|
+
// Destructor
|
|
43
|
+
~HybridNitroSQLiteOnLoadSpec() override = default;
|
|
44
|
+
|
|
45
|
+
public:
|
|
46
|
+
// Properties
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
public:
|
|
50
|
+
// Methods
|
|
51
|
+
virtual void init() = 0;
|
|
52
|
+
|
|
53
|
+
protected:
|
|
54
|
+
// Hybrid Setup
|
|
55
|
+
void loadHybridMethods() override;
|
|
56
|
+
|
|
57
|
+
protected:
|
|
58
|
+
// Tag for logging
|
|
59
|
+
static constexpr auto TAG = "NitroSQLiteOnLoad";
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
} // namespace margelo::nitro::rnnitrosqlite
|
|
@@ -32,6 +32,7 @@ namespace margelo::nitro::rnnitrosqlite {
|
|
|
32
32
|
bool isNitroSQLiteNull SWIFT_PRIVATE;
|
|
33
33
|
|
|
34
34
|
public:
|
|
35
|
+
SQLiteNullValue() = default;
|
|
35
36
|
explicit SQLiteNullValue(bool isNitroSQLiteNull): isNitroSQLiteNull(isNitroSQLiteNull) {}
|
|
36
37
|
};
|
|
37
38
|
|
|
@@ -43,7 +44,7 @@ namespace margelo::nitro {
|
|
|
43
44
|
|
|
44
45
|
// C++ SQLiteNullValue <> JS SQLiteNullValue (object)
|
|
45
46
|
template <>
|
|
46
|
-
struct JSIConverter<SQLiteNullValue> {
|
|
47
|
+
struct JSIConverter<SQLiteNullValue> final {
|
|
47
48
|
static inline SQLiteNullValue fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
48
49
|
jsi::Object obj = arg.asObject(runtime);
|
|
49
50
|
return SQLiteNullValue(
|
|
@@ -36,6 +36,7 @@ namespace margelo::nitro::rnnitrosqlite {
|
|
|
36
36
|
double index SWIFT_PRIVATE;
|
|
37
37
|
|
|
38
38
|
public:
|
|
39
|
+
SQLiteQueryColumnMetadata() = default;
|
|
39
40
|
explicit SQLiteQueryColumnMetadata(std::string name, ColumnType type, double index): name(name), type(type), index(index) {}
|
|
40
41
|
};
|
|
41
42
|
|
|
@@ -47,7 +48,7 @@ namespace margelo::nitro {
|
|
|
47
48
|
|
|
48
49
|
// C++ SQLiteQueryColumnMetadata <> JS SQLiteQueryColumnMetadata (object)
|
|
49
50
|
template <>
|
|
50
|
-
struct JSIConverter<SQLiteQueryColumnMetadata> {
|
|
51
|
+
struct JSIConverter<SQLiteQueryColumnMetadata> final {
|
|
51
52
|
static inline SQLiteQueryColumnMetadata fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
52
53
|
jsi::Object obj = arg.asObject(runtime);
|
|
53
54
|
return SQLiteQueryColumnMetadata(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nitro-sqlite",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.5",
|
|
4
4
|
"description": "Fast SQLite library for React Native built using Nitro Modules",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/commonjs/index",
|
|
@@ -69,29 +69,21 @@
|
|
|
69
69
|
"typeorm": "^0.3.20"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"jest": "
|
|
73
|
-
"nitro-codegen": "
|
|
74
|
-
"react": "
|
|
75
|
-
"react-native": "
|
|
72
|
+
"jest": "^29.7.0",
|
|
73
|
+
"nitro-codegen": "^0.24.1",
|
|
74
|
+
"react": "19.0.0",
|
|
75
|
+
"react-native": "0.78.0",
|
|
76
76
|
"react-native-builder-bob": "^0.31.0",
|
|
77
|
-
"react-native-nitro-modules": "
|
|
77
|
+
"react-native-nitro-modules": "0.24.1"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"react": ">=17.0.0",
|
|
81
|
-
"react-native": ">=0.
|
|
82
|
-
"react-native-nitro-modules": ">=0.
|
|
81
|
+
"react-native": ">=0.75.0",
|
|
82
|
+
"react-native-nitro-modules": ">=0.24.1"
|
|
83
83
|
},
|
|
84
84
|
"resolutions": {
|
|
85
85
|
"@types/react": "^18.2.44"
|
|
86
86
|
},
|
|
87
|
-
"codegenConfig": {
|
|
88
|
-
"name": "RNNitroSQLite",
|
|
89
|
-
"type": "modules",
|
|
90
|
-
"jsSrcsDir": "src",
|
|
91
|
-
"android": {
|
|
92
|
-
"javaPackageName": "com.margelo.rnnitrosqlite"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
87
|
"jest": {
|
|
96
88
|
"preset": "react-native",
|
|
97
89
|
"modulePathIgnorePatterns": [
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NitroModules } from 'react-native-nitro-modules'
|
|
2
|
+
import { NitroSQLiteOnLoad as NitroSQLiteOnLoadSpec } from './specs/NitroSQLiteOnLoad.nitro'
|
|
3
|
+
|
|
4
|
+
const NitroSQLiteOnLoad =
|
|
5
|
+
NitroModules.createHybridObject<NitroSQLiteOnLoadSpec>('NitroSQLiteOnLoad')
|
|
6
|
+
export const init = () => NitroSQLiteOnLoad.init()
|
package/src/OnLoad.ts
ADDED
package/src/index.ts
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { transaction } from './operations/transaction'
|
|
2
2
|
import { HybridNitroSQLite } from './nitro'
|
|
3
3
|
import { open } from './operations/session'
|
|
4
|
-
import NitroSQLiteOnLoad from './specs/NativeNitroSQLiteOnLoad'
|
|
5
4
|
import { execute, executeAsync } from './operations/execute'
|
|
6
5
|
import { SQLiteNullValue } from './types'
|
|
6
|
+
import { init } from './OnLoad'
|
|
7
7
|
export type * from './types'
|
|
8
8
|
export { typeORMDriver } from './typeORM'
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
NitroSQLiteOnLoad.onReactApplicationContextReady(resolve)
|
|
12
|
-
})
|
|
10
|
+
init()
|
|
13
11
|
|
|
14
12
|
export const NitroSQLite = {
|
|
15
13
|
...HybridNitroSQLite,
|
|
16
14
|
native: HybridNitroSQLite,
|
|
17
|
-
onInitialized,
|
|
18
15
|
// Overwrite native `open` function with session-based JS abstraction,
|
|
19
16
|
// where the database name can be ommited once opened
|
|
20
17
|
open,
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
package com.margelo.rnnitrosqlite
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.TurboReactPackage
|
|
4
|
-
import com.facebook.react.bridge.NativeModule
|
|
5
|
-
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
|
-
import com.facebook.react.module.model.ReactModuleInfo
|
|
7
|
-
import com.facebook.react.module.model.ReactModuleInfoProvider
|
|
8
|
-
|
|
9
|
-
class RNNitroSQLitePackage : TurboReactPackage() {
|
|
10
|
-
override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
|
|
11
|
-
return if (name == RNNitroSQLiteOnLoadModule.NAME) {
|
|
12
|
-
RNNitroSQLiteOnLoadModule(reactContext)
|
|
13
|
-
} else {
|
|
14
|
-
null
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
override fun getReactModuleInfoProvider(): ReactModuleInfoProvider {
|
|
19
|
-
return ReactModuleInfoProvider {
|
|
20
|
-
val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
|
|
21
|
-
val isTurboModule: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
|
|
22
|
-
moduleInfos[RNNitroSQLiteOnLoadModule.NAME] = ReactModuleInfo(
|
|
23
|
-
RNNitroSQLiteOnLoadModule.NAME,
|
|
24
|
-
RNNitroSQLiteOnLoadModule.NAME,
|
|
25
|
-
canOverrideExistingModule=false,
|
|
26
|
-
needsEagerInit=true,
|
|
27
|
-
hasConstants=true,
|
|
28
|
-
isCxxModule=false,
|
|
29
|
-
isTurboModule=isTurboModule
|
|
30
|
-
)
|
|
31
|
-
moduleInfos
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
companion object {
|
|
36
|
-
init {
|
|
37
|
-
System.loadLibrary("RNNitroSQLite")
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
package com.margelo.rnnitrosqlite
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.bridge.Callback
|
|
4
|
-
import com.facebook.react.bridge.ReactApplicationContext
|
|
5
|
-
import com.margelo.rnnitrosqlite.NativeNitroSQLiteOnLoadSpec
|
|
6
|
-
|
|
7
|
-
class RNNitroSQLiteOnLoadModule(reactContext: ReactApplicationContext) :
|
|
8
|
-
NativeNitroSQLiteOnLoadSpec(reactContext) {
|
|
9
|
-
private var reactApplicationContextReadyCallback: Callback? = null
|
|
10
|
-
|
|
11
|
-
init {
|
|
12
|
-
Companion.reactContext = reactContext
|
|
13
|
-
DocPathSetter.setDocPath(reactContext)
|
|
14
|
-
|
|
15
|
-
if (reactApplicationContextReadyCallback != null) {
|
|
16
|
-
reactApplicationContextReadyCallback!!.invoke()
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
override fun getName(): String {
|
|
21
|
-
return NAME
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
override fun onReactApplicationContextReady(callback: Callback) {
|
|
25
|
-
if (reactContext != null) {
|
|
26
|
-
callback.invoke()
|
|
27
|
-
return
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
reactApplicationContextReadyCallback = callback
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
companion object {
|
|
34
|
-
const val NAME: String = "RNNitroSQLiteOnLoad"
|
|
35
|
-
|
|
36
|
-
var reactContext: ReactApplicationContext? = null
|
|
37
|
-
private set
|
|
38
|
-
var reactApplicationContextReadyCallback: Callback? = null
|
|
39
|
-
private set
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
package com.margelo.rnnitrosqlite
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.bridge.Callback
|
|
4
|
-
import com.facebook.react.bridge.ReactApplicationContext
|
|
5
|
-
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
6
|
-
import com.facebook.react.bridge.ReactMethod
|
|
7
|
-
|
|
8
|
-
class RNNitroSQLiteOnLoadModule(reactContext: ReactApplicationContext) :
|
|
9
|
-
ReactContextBaseJavaModule(reactContext) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
init {
|
|
13
|
-
Companion.reactContext = reactContext
|
|
14
|
-
DocPathSetter.setDocPath(reactContext)
|
|
15
|
-
|
|
16
|
-
if (reactApplicationContextReadyCallback != null) {
|
|
17
|
-
reactApplicationContextReadyCallback!!.invoke()
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
override fun getName(): String {
|
|
22
|
-
return NAME
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@ReactMethod
|
|
26
|
-
fun onReactApplicationContextReady(callback: Callback) {
|
|
27
|
-
if (reactContext != null) {
|
|
28
|
-
callback.invoke()
|
|
29
|
-
return
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
reactApplicationContextReadyCallback = callback
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
companion object {
|
|
36
|
-
const val NAME: String = "RNNitroSQLiteOnLoad"
|
|
37
|
-
|
|
38
|
-
var reactContext: ReactApplicationContext? = null
|
|
39
|
-
private set
|
|
40
|
-
var reactApplicationContextReadyCallback: Callback? = null
|
|
41
|
-
private set
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.noop = exports.default = void 0;
|
|
7
|
-
const noop = exports.noop = {
|
|
8
|
-
onReactApplicationContextReady: () => undefined
|
|
9
|
-
};
|
|
10
|
-
var _default = exports.default = noop;
|
|
11
|
-
//# sourceMappingURL=NativeNitroSQLiteOnLoad.ios.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["noop","exports","onReactApplicationContextReady","undefined","_default","default"],"sourceRoot":"../../../src","sources":["specs/NativeNitroSQLiteOnLoad.ios.ts"],"mappings":";;;;;;AAEO,MAAMA,IAAkC,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAChDE,8BAA8B,EAAEA,CAAA,KAAMC;AACxC,CAAC;AAAA,IAAAC,QAAA,GAAAH,OAAA,CAAAI,OAAA,GAEcL,IAAI","ignoreList":[]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('RNNitroSQLiteOnLoad');
|
|
9
|
-
//# sourceMappingURL=NativeNitroSQLiteOnLoad.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeNitroSQLiteOnLoad.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAoE,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMrDC,gCAAmB,CAACC,YAAY,CAAO,qBAAqB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["noop","onReactApplicationContextReady","undefined"],"sourceRoot":"../../../src","sources":["specs/NativeNitroSQLiteOnLoad.ios.ts"],"mappings":";;AAEA,OAAO,MAAMA,IAAkC,GAAG;EAChDC,8BAA8B,EAAEA,CAAA,KAAMC;AACxC,CAAC;AAED,eAAeF,IAAI","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeNitroSQLiteOnLoad.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;AAMpE,eAAeA,mBAAmB,CAACC,YAAY,CAAO,qBAAqB,CAAC","ignoreList":[]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type TurboModule } from 'react-native';
|
|
2
|
-
export interface Spec extends TurboModule {
|
|
3
|
-
onReactApplicationContextReady(callback: () => void): void;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: Spec;
|
|
6
|
-
export default _default;
|
|
7
|
-
//# sourceMappingURL=NativeNitroSQLiteOnLoad.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NativeNitroSQLiteOnLoad.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeNitroSQLiteOnLoad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAEpE,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,8BAA8B,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAA;CAC3D;;AAED,wBAA4E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NativeNitroSQLiteOnLoad.ios.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeNitroSQLiteOnLoad.ios.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,4BAA4B,EAAE,MAAM,2BAA2B,CAAA;AAErF,eAAO,MAAM,IAAI,EAAE,4BAElB,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type TurboModule } from 'react-native';
|
|
2
|
-
export interface Spec extends TurboModule {
|
|
3
|
-
onReactApplicationContextReady(callback: () => void): void;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: Spec;
|
|
6
|
-
export default _default;
|
|
7
|
-
//# sourceMappingURL=NativeNitroSQLiteOnLoad.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NativeNitroSQLiteOnLoad.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeNitroSQLiteOnLoad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAEpE,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,8BAA8B,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAA;CAC3D;;AAED,wBAA4E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NativeNitroSQLiteOnLoad.ios.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeNitroSQLiteOnLoad.ios.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,4BAA4B,EAAE,MAAM,2BAA2B,CAAA;AAErF,eAAO,MAAM,IAAI,EAAE,4BAElB,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
File without changes
|