Skip to content

Commit d09ade3

Browse files
committed
sqlite-example
1 parent 6cbfc54 commit d09ade3

File tree

16 files changed

+1368
-2515
lines changed

16 files changed

+1368
-2515
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@
3232
"packages/api",
3333
"packages/default-storage",
3434
"packages/default-storage/example",
35-
"packages/eslint-config",
3635
"packages/sqlite-storage",
36+
"packages/sqlite-storage/example",
37+
"packages/eslint-config",
3738
"packages/website"
3839
]
3940
}

packages/default-storage/example/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@
3434
"@react-native-community/cli": "15.0.0",
3535
"@react-native-community/cli-platform-android": "15.0.0",
3636
"@react-native-community/cli-platform-ios": "15.0.0",
37-
"@react-native/babel-preset": "0.76.1",
38-
"@react-native/metro-config": "0.76.1",
39-
"@react-native/typescript-config": "0.76.1",
40-
"@rnx-kit/metro-config": "^2.0.0",
37+
"@react-native/babel-preset": "0.76.2",
38+
"@react-native/metro-config": "0.76.2",
4139
"react-native-builder-bob": "^0.33.3",
4240
"react-native-test-app": "^4.0.3"
4341
}

packages/default-storage/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,9 @@
5555
"react-native": "^0.0.0-0 || >=0.65 <1.0"
5656
},
5757
"devDependencies": {
58-
"@babel/core": "^7.20.0",
59-
"@babel/preset-env": "^7.20.0",
60-
"@react-native/babel-preset": "^0.75.0",
61-
"@react-native/metro-config": "^0.75.0",
62-
"@rnx-kit/jest-preset": "^0.1.16",
63-
"@rnx-kit/metro-config": "^2.0.0",
58+
"@babel/core": "^7.25.0",
59+
"@babel/preset-env": "^7.25.0",
60+
"@react-native/babel-preset": "^0.76.2",
6461
"@types/lodash": "^4.14.184",
6562
"@types/mocha": "^10.0.1",
6663
"@types/react": "^18.0.0",

packages/sqlite-storage/example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
#Sun Dec 01 10:44:49 CET 2024
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
45
networkTimeout=10000
56
validateDistributionUrl=true
67
zipStoreBase=GRADLE_USER_HOME

packages/sqlite-storage/example/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pluginManagement {
66
}
77
}
88

9-
rootProject.name = "AsyncStorageSQLiteExample"
9+
rootProject.name = "SQLiteExample"
1010

1111
apply(from: {
1212
def searchDir = rootDir.toPath()
Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,38 @@
11
{
2-
"name": "AsyncStorageSQLiteExample",
3-
"displayName": "AsyncStorageSQLiteExample",
2+
"name": "SQLiteExample",
3+
"displayName": "SQLiteExample",
44
"components": [
55
{
6-
"appKey": "AsyncStorageSQLiteExample",
7-
"displayName": "AsyncStorageSQLiteExample"
6+
"appKey": "SQLiteExample",
7+
"displayName": "SQLiteExample"
88
}
99
],
1010
"resources": {
11-
"android": ["dist/res", "dist/main.android.jsbundle"],
12-
"ios": ["dist/assets", "dist/main.ios.jsbundle"],
13-
"macos": ["dist/assets", "dist/main.macos.jsbundle"],
14-
"windows": ["dist/assets", "dist/main.windows.bundle"]
11+
"android": [
12+
"dist/res",
13+
"dist/main.android.jsbundle"
14+
],
15+
"ios": [
16+
"dist/assets",
17+
"dist/main.ios.jsbundle"
18+
],
19+
"macos": [
20+
"dist/assets",
21+
"dist/main.macos.jsbundle"
22+
],
23+
"visionos": [
24+
"dist/assets",
25+
"dist/main.visionos.jsbundle"
26+
],
27+
"windows": [
28+
"dist/assets",
29+
"dist/main.windows.bundle"
30+
]
31+
},
32+
"android": {
33+
"package": "com.example.asyncstoragesqlite"
34+
},
35+
"ios": {
36+
"bundleIdentifier": "com.example.asyncstoragesqlite"
1537
}
1638
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const path = require('path');
2+
const { getConfig } = require('react-native-builder-bob/babel-config');
3+
const pkg = require('../package.json');
4+
5+
const root = path.resolve(__dirname, '..');
6+
7+
module.exports = getConfig(
8+
{
9+
presets: ['module:@react-native/babel-preset'],
10+
},
11+
{ root, pkg }
12+
);

packages/sqlite-storage/example/ios/AsyncStorageSQLiteExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

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

packages/sqlite-storage/example/ios/Podfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
ENV['RCT_NEW_ARCH_ENABLED'] = '0'
2+
13
ws_dir = Pathname.new(__dir__)
24
ws_dir = ws_dir.parent until
35
File.exist?("#{ws_dir}/node_modules/react-native-test-app/test_app.rb") ||
46
ws_dir.expand_path.to_s == '/'
57
require "#{ws_dir}/node_modules/react-native-test-app/test_app.rb"
68

7-
workspace 'AsyncStorageSQLiteExample.xcworkspace'
9+
workspace 'SQLiteExample.xcworkspace'
810

911
options = {
10-
:fabric_enabled => false,
11-
:hermes_enabled => false
12+
:hermes_enabled => true
1213
}
1314

1415
use_test_app! options do |target|

0 commit comments

Comments
 (0)