Skip to content

Commit 6d53789

Browse files
authored
Merge pull request #275 from OP-Engineering/oscar/android-16kb-pages
Support Android 16kb pages
2 parents 14336a6 + a4de4dc commit 6d53789

13 files changed

+1458
-1512
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ local.properties
4141
example/.cxx/
4242
*.keystore
4343
!debug.keystore
44+
.kotlin/
4445

4546
# Bundle
4647
#

android/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def reactNativeArchitectures() {
116116

117117
android {
118118

119-
compileSdkVersion safeExtGet("compileSdkVersion", 33)
119+
compileSdkVersion safeExtGet("compileSdkVersion", 35)
120120
namespace "com.op.sqlite"
121121

122122
// Used to override the NDK path/version on internal CI or by allowing
@@ -191,7 +191,8 @@ android {
191191
"-DUSE_LIBSQL=${useLibsql ? 1 : 0}",
192192
"-DUSE_SQLITE_VEC=${useSqliteVec ? 1 : 0}",
193193
"-DUSER_DEFINED_SOURCE_FILES=${sourceFiles}",
194-
"-DUSER_DEFINED_TOKENIZERS_HEADER_PATH='${tokenizersHeaderPath}'"
194+
"-DUSER_DEFINED_TOKENIZERS_HEADER_PATH='${tokenizersHeaderPath}'",
195+
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
195196
}
196197
}
197198

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
OPSQLite_kotlinVersion=1.9.22
1+
OPSQLite_kotlinVersion=2.0.21

example/Gemfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ source 'https://rubygems.org'
22

33
ruby '>= 2.7.6'
44

5-
gem 'cocoapods', '=1.16.2'
5+
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
66
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
7+
gem 'xcodeproj', '< 1.26.0'
8+
gem 'concurrent-ruby', '< 1.3.4'
9+
10+
# Ruby 3.4.0 has removed some libraries from the standard library.
711
gem 'bigdecimal'
12+
gem 'logger'
13+
gem 'benchmark'
814
gem 'mutex_m'

example/Gemfile.lock

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ GEM
1717
json (>= 1.5.1)
1818
atomos (0.1.3)
1919
base64 (0.2.0)
20+
benchmark (0.4.0)
2021
bigdecimal (3.1.5)
2122
claide (1.1.0)
22-
cocoapods (1.16.2)
23+
cocoapods (1.15.2)
2324
addressable (~> 2.8)
2425
claide (>= 1.0.2, < 2.0)
25-
cocoapods-core (= 1.16.2)
26+
cocoapods-core (= 1.15.2)
2627
cocoapods-deintegrate (>= 1.0.3, < 2.0)
2728
cocoapods-downloader (>= 2.1, < 3.0)
2829
cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -36,8 +37,8 @@ GEM
3637
molinillo (~> 0.8.0)
3738
nap (~> 1.0)
3839
ruby-macho (>= 2.3.0, < 3.0)
39-
xcodeproj (>= 1.27.0, < 2.0)
40-
cocoapods-core (1.16.2)
40+
xcodeproj (>= 1.23.0, < 2.0)
41+
cocoapods-core (1.15.2)
4142
activesupport (>= 5.0, < 8)
4243
addressable (~> 2.8)
4344
algoliasearch (~> 1.0)
@@ -69,36 +70,41 @@ GEM
6970
i18n (1.14.4)
7071
concurrent-ruby (~> 1.0)
7172
json (2.9.1)
73+
logger (1.7.0)
7274
minitest (5.22.3)
7375
molinillo (0.8.0)
7476
mutex_m (0.2.0)
75-
nanaimo (0.4.0)
77+
nanaimo (0.3.0)
7678
nap (1.1.0)
7779
netrc (0.11.0)
7880
nkf (0.2.0)
7981
public_suffix (4.0.7)
80-
rexml (3.4.0)
82+
rexml (3.4.1)
8183
ruby-macho (2.5.1)
8284
typhoeus (1.4.1)
8385
ethon (>= 0.9.0)
8486
tzinfo (2.0.6)
8587
concurrent-ruby (~> 1.0)
86-
xcodeproj (1.27.0)
88+
xcodeproj (1.25.1)
8789
CFPropertyList (>= 2.3.3, < 4.0)
8890
atomos (~> 0.1.3)
8991
claide (>= 1.0.2, < 2.0)
9092
colored2 (~> 3.1)
91-
nanaimo (~> 0.4.0)
93+
nanaimo (~> 0.3.0)
9294
rexml (>= 3.3.6, < 4.0)
9395

9496
PLATFORMS
9597
ruby
9698

9799
DEPENDENCIES
98100
activesupport (>= 6.1.7.5, != 7.1.0)
101+
benchmark
99102
bigdecimal
100-
cocoapods (= 1.16.2)
103+
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
104+
concurrent-ruby (< 1.3.4)
105+
logger
101106
mutex_m
107+
xcodeproj (< 1.26.0)
102108

103109
RUBY VERSION
104110
ruby 3.3.1p55

example/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ buildscript {
33
buildToolsVersion = "35.0.0"
44
minSdkVersion = 24
55
compileSdkVersion = 35
6-
targetSdkVersion = 34
7-
ndkVersion = "26.1.10909125"
8-
kotlinVersion = "1.9.24"
6+
targetSdkVersion = 35
7+
ndkVersion = "27.1.12297006"
8+
kotlinVersion = "2.0.21"
99
}
1010
repositories {
1111
google()

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

example/ios/Podfile

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
require_relative '../node_modules/react-native/scripts/react_native_pods'
2-
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
1+
require Pod::Executable.execute_command('node', ['-p',
2+
'require.resolve(
3+
"react-native/scripts/react_native_pods.rb",
4+
{paths: [process.argv[1]]},
5+
)', __dir__]).strip
36

47
platform :ios, min_ios_version_supported
58
prepare_react_native_project!
@@ -20,16 +23,6 @@ target 'OPSQLiteExample' do
2023
:app_path => "#{Pod::Config.instance.installation_root}/.."
2124
)
2225

23-
# pre_install do |installer|
24-
# installer.pod_targets.each do |pod|
25-
# if pod.name.eql?('op-sqlite')
26-
# def pod.build_type
27-
# Pod::BuildType.static_library
28-
# end
29-
# end
30-
# end
31-
# end
32-
3326
post_install do |installer|
3427
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
3528
react_native_post_install(

0 commit comments

Comments
 (0)