Skip to content

Commit 322c03a

Browse files
committed
comments
1 parent 86eb94f commit 322c03a

File tree

8 files changed

+78
-465
lines changed

8 files changed

+78
-465
lines changed

Diff for: packages/default-storage/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.build.json",
2+
"extends": "../../.config/tsconfig.base.json",
33
"compilerOptions": {
44
"noEmit": true,
55
"types": [

Diff for: packages/sqlite-storage/.gitignore

-78
This file was deleted.

Diff for: packages/sqlite-storage/RNAsyncStorageSQLite.podspec

+17-17
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
44
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
55

66
Pod::Spec.new do |s|
7-
s.name = "RNAsyncStorageSQLite"
7+
s.name = File.basename(__FILE__, '.podspec')
88
s.version = package["version"]
99
s.summary = package["description"]
1010
s.homepage = package["homepage"]
@@ -21,21 +21,21 @@ Pod::Spec.new do |s|
2121
if respond_to?(:install_modules_dependencies, true)
2222
install_modules_dependencies(s)
2323
else
24-
s.dependency "React-Core"
24+
s.dependency "React-Core"
2525

26-
# Don't install the dependencies when we run `pod install` in the old architecture.
27-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
28-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
29-
s.pod_target_xcconfig = {
30-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
31-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
32-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
33-
}
34-
s.dependency "React-Codegen"
35-
s.dependency "RCT-Folly"
36-
s.dependency "RCTRequired"
37-
s.dependency "RCTTypeSafety"
38-
s.dependency "ReactCommon/turbomodule/core"
39-
end
40-
end
26+
# Don't install the dependencies when we run `pod install` in the old architecture.
27+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
28+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
29+
s.pod_target_xcconfig = {
30+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
31+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
32+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
33+
}
34+
s.dependency "React-Codegen"
35+
s.dependency "RCT-Folly"
36+
s.dependency "RCTRequired"
37+
s.dependency "RCTTypeSafety"
38+
s.dependency "ReactCommon/turbomodule/core"
39+
end
40+
end
4141
end

Diff for: packages/sqlite-storage/example/android/build.gradle

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
buildscript {
2-
def androidTestAppDir = "../../node_modules/react-native-test-app/android"
3-
apply(from: "${androidTestAppDir}/dependencies.gradle")
2+
apply(from: {
3+
def searchDir = rootDir.toPath()
4+
do {
5+
def p = searchDir.resolve("node_modules/react-native-test-app/android/dependencies.gradle")
6+
if (p.toFile().exists()) {
7+
return p.toRealPath().toString()
8+
}
9+
} while (searchDir = searchDir.getParent())
10+
throw new GradleException("Could not find `react-native-test-app`");
11+
}())
412

513
repositories {
614
mavenCentral()

Diff for: packages/sqlite-storage/example/android/settings.gradle

+10-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,14 @@ pluginManagement {
88

99
rootProject.name = "AsyncStorageSQLiteExample"
1010

11-
apply(from: "../../node_modules/react-native-test-app/test-app.gradle")
11+
apply(from: {
12+
def searchDir = rootDir.toPath()
13+
do {
14+
def p = searchDir.resolve("node_modules/react-native-test-app/test-app.gradle")
15+
if (p.toFile().exists()) {
16+
return p.toRealPath().toString()
17+
}
18+
} while (searchDir = searchDir.getParent())
19+
throw new GradleException("Could not find `react-native-test-app`");
20+
}())
1221
applyTestAppSettings(settings)

Diff for: packages/sqlite-storage/example/ios/Podfile

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
require_relative '../../node_modules/react-native-test-app/test_app'
1+
ws_dir = Pathname.new(__dir__)
2+
ws_dir = ws_dir.parent until
3+
File.exist?("#{ws_dir}/node_modules/react-native-test-app/test_app.rb") ||
4+
ws_dir.expand_path.to_s == '/'
5+
require "#{ws_dir}/node_modules/react-native-test-app/test_app.rb"
26

37
workspace 'AsyncStorageSQLiteExample.xcworkspace'
48

59
options = {
610
:fabric_enabled => false,
7-
:hermes_enabled => false,
8-
:turbomodule_enabled => false,
11+
:hermes_enabled => false
912
}
1013

1114
use_test_app! options do |target|

Diff for: packages/sqlite-storage/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.build.json",
2+
"extends": "../../.config/tsconfig.base.json",
33
"compilerOptions": {
44
"noEmit": true,
55
"paths": {

0 commit comments

Comments
 (0)