Skip to content

Commit 97c0538

Browse files
initial JourneyApps PowerSync
1 parent 489016d commit 97c0538

File tree

19 files changed

+239
-121
lines changed

19 files changed

+239
-121
lines changed

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Copyright 2021 Oscar Franco
1+
Copyright 2023 Oscar Franco, Journey Mobile, Inc.
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

55
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
66

7-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Alpha
2+
This package is currently in an alpha release. Functionality could change dramatically in future releases. Certain functions may be partially implemented or buggy.
3+
14
![screenshot](https://raw.githubusercontent.com/margelo/react-native-quick-sqlite/main/header2.png)
25

36
<div align="center">
@@ -299,7 +302,7 @@ post_install do |installer|
299302
installer.pods_project.targets.each do |target|
300303
if target.name == "react-native-quick-sqlite" then
301304
target.build_configurations.each do |config|
302-
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'SQLITE_ENABLE_FTS5=1'
305+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '<SQLITE_FLAGS>']
303306
end
304307
end
305308
end

android/.project

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>android_</name>
3+
<name>journeyapps_react-native-quick-sqlite</name>
44
<comment>Project android_ created by Buildship.</comment>
55
<projects>
66
</projects>
@@ -14,4 +14,15 @@
1414
<natures>
1515
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
1616
</natures>
17+
<filteredResources>
18+
<filter>
19+
<id>1695029328310</id>
20+
<name></name>
21+
<type>30</type>
22+
<matcher>
23+
<id>org.eclipse.core.resources.regexFilterMatcher</id>
24+
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
25+
</matcher>
26+
</filter>
27+
</filteredResources>
1728
</projectDescription>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
arguments=
1+
arguments=--init-script /var/folders/jx/_56srfzj0s3d98w7v3tl8kvr0000gn/T/d146c9752a26f79b52047fb6dc6ed385d064e120494f96f08ca63a317c41f94c.gradle --init-script /var/folders/jx/_56srfzj0s3d98w7v3tl8kvr0000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
22
auto.sync=false
33
build.scans.enabled=false
4-
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(6.0))
4+
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.4.2))
55
connection.project.dir=
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=/usr/local/Cellar/openjdk@11/11.0.14.1/libexec/openjdk.jdk/Contents/Home
99
jvm.arguments=
1010
offline.mode=false
1111
override.workspace.settings=true

android/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ find_package(ReactAndroid REQUIRED CONFIG)
4646
find_package(fbjni REQUIRED CONFIG)
4747
find_library(LOG_LIB log)
4848

49+
if(${USE_HERMES})
50+
set(JSEXECUTOR_LIB ReactAndroid::hermes_executor)
51+
else()
52+
set(JSEXECUTOR_LIB ReactAndroid::jscexecutor)
53+
endif()
54+
4955

5056
target_link_libraries(
5157
${PACKAGE_NAME}
@@ -54,5 +60,7 @@ target_link_libraries(
5460
ReactAndroid::jsi
5561
ReactAndroid::turbomodulejsijni
5662
ReactAndroid::react_nativemodule_core
63+
${JSEXECUTOR_LIB}
5764
android
65+
powersync ${CMAKE_SOURCE_DIR}/src/main/jniLibs/${CMAKE_ANDROID_ARCH_ABI}/libpowersync.so
5866
)

android/build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ android {
6262
prefab true
6363
}
6464

65+
sourceSets.main {
66+
jniLibs.srcDirs = ['src/main/jniLibs']
67+
}
68+
6569
defaultConfig {
6670
minSdkVersion 21
6771
targetSdkVersion safeExtGet('targetSdkVersion', 28)
@@ -86,9 +90,7 @@ android {
8690
"META-INF/**",
8791
"**/libjsi.so",
8892
"**/libreact_nativemodule_core.so",
89-
"**/libturbomodulejsijni.so",
90-
"**/libc++_shared.so",
91-
"**/libfbjni.so"
93+
"**/libturbomodulejsijni.so"
9294
]
9395
}
9496

193 KB
Binary file not shown.
133 KB
Binary file not shown.
213 KB
Binary file not shown.
209 KB
Binary file not shown.

0 commit comments

Comments
 (0)