react-native-webview-bootpay 13.6.1 → 13.8.2
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/android/build.gradle +35 -10
- package/android/gradle.properties +42 -0
- package/android/src/main/java/kr/co/bootpay/webview/BPCWebChromeClient.java +16 -3
- package/android/src/main/java/kr/co/bootpay/webview/BPCWebviewWrapper.kt +39 -0
- package/apple/BPCWebView.h +6 -0
- package/apple/BPCWebView.mm +36 -27
- package/apple/BPCWebViewImpl.h +1 -0
- package/apple/BPCWebViewImpl.m +25 -0
- package/apple/BPCWebViewManager.mm +1 -0
- package/lib/BPCWebViewNativeComponent.d.ts +13 -12
- package/lib/BPCWebViewNativeComponent.d.ts.map +1 -1
- package/lib/BPCWebViewNativeComponent.js +1 -6
- package/lib/NativeBPCWebView.d.ts +1 -0
- package/lib/NativeBPCWebView.d.ts.map +1 -1
- package/lib/NativeBPCWebView.js +1 -2
- package/lib/WebView.android.js +1 -136
- package/lib/WebView.d.ts +1 -1
- package/lib/WebView.d.ts.map +1 -1
- package/lib/WebView.ios.js +1 -170
- package/lib/WebView.js +1 -11
- package/lib/WebView.macos.js +1 -132
- package/lib/WebView.styles.js +1 -33
- package/lib/WebView.windows.js +1 -140
- package/lib/WebViewNativeComponent.macos.js +1 -3
- package/lib/WebViewNativeComponent.windows.js +1 -3
- package/lib/WebViewShared.d.ts +3 -3
- package/lib/WebViewShared.d.ts.map +1 -1
- package/lib/WebViewShared.js +1 -150
- package/lib/WebViewTypes.d.ts +28 -28
- package/lib/WebViewTypes.d.ts.map +1 -1
- package/lib/WebViewTypes.js +1 -33
- package/lib/index.js +1 -3
- package/package.json +28 -30
- package/react-native-webview-bootpay.podspec +26 -18
- package/react-native.config.js +9 -12
package/package.json
CHANGED
|
@@ -3,32 +3,32 @@
|
|
|
3
3
|
"description": "React Native WebView 를 포크떠서 만든 Bootpay WebView for iOS, Android, macOS, and Windows",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"main-internal": "src/index.ts",
|
|
6
|
+
"react-native": "src/index.ts",
|
|
6
7
|
"typings": "index.d.ts",
|
|
7
|
-
"author": "
|
|
8
|
+
"author": "ehowlsla <ehowlsla@bootpay.co.kr>",
|
|
8
9
|
"contributors": [
|
|
10
|
+
"Jamon Holmgren <jamon@infinite.red>",
|
|
9
11
|
"Thibault Malbranche <malbranche.thibault@gmail.com>"
|
|
10
12
|
],
|
|
11
13
|
"license": "MIT",
|
|
12
|
-
"version": "13.
|
|
14
|
+
"version": "13.8.2",
|
|
13
15
|
"homepage": "https://github.com/bootpay/react-native-webview-bootpay",
|
|
14
16
|
"scripts": {
|
|
15
17
|
"android": "react-native run-android",
|
|
16
18
|
"ios": "react-native run-ios",
|
|
17
|
-
"build:ios": "react-native bundle --entry-file='./index.js' --bundle-output='./example/ios/main.jsbundle' --dev=false --platform='ios'",
|
|
18
|
-
|
|
19
19
|
"macos": "react-native run-macos --scheme WebviewExample --project-path example/macos",
|
|
20
20
|
"start": "cd example && react-native start",
|
|
21
21
|
"windows": "install-windows-test-app --project-directory example/windows && react-native run-windows --root example --arch x64",
|
|
22
22
|
"ci": "CI=true && yarn lint",
|
|
23
23
|
"ci:publish": "yarn semantic-release",
|
|
24
|
-
"lint": "yarn tsc --noEmit && yarn eslint ./src --ext .ts,.tsx",
|
|
25
|
-
"build": "
|
|
24
|
+
"lint": "yarn tsc --noEmit && yarn eslint ./src --ext .ts,.tsx,.js,.jsx",
|
|
25
|
+
"build": "babel --extensions \".ts,.tsx\" --out-dir lib src",
|
|
26
26
|
"prepare": "yarn build",
|
|
27
27
|
"appium": "appium",
|
|
28
28
|
"test:windows": "yarn jest --setupFiles=./jest-setups/jest.setup.js",
|
|
29
|
-
"add:macos": "yarn add react-native-macos@0.
|
|
29
|
+
"add:macos": "yarn add react-native-macos@0.73.17"
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
"rn-docs": {
|
|
33
33
|
"title": "Webview",
|
|
34
34
|
"type": "Component"
|
|
@@ -42,35 +42,32 @@
|
|
|
42
42
|
"invariant": "2.2.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@babel/
|
|
46
|
-
"@babel/
|
|
45
|
+
"@babel/cli": "^7.20.0",
|
|
46
|
+
"@babel/core": "^7.20.0",
|
|
47
|
+
"@babel/runtime": "^7.20.0",
|
|
48
|
+
"@react-native/babel-preset": "0.73.21",
|
|
49
|
+
"@react-native/eslint-config": "0.73.2",
|
|
50
|
+
"@react-native/metro-config": "0.73.5",
|
|
51
|
+
"@react-native/typescript-config": "0.73.1",
|
|
52
|
+
"@rnx-kit/metro-config": "1.3.14",
|
|
47
53
|
"@semantic-release/git": "7.0.16",
|
|
48
54
|
"@types/invariant": "^2.2.30",
|
|
49
|
-
"@types/jest": "^29.
|
|
50
|
-
"@types/react": "18.
|
|
55
|
+
"@types/jest": "^29.5.12",
|
|
56
|
+
"@types/react": "18.2.61",
|
|
51
57
|
"@types/selenium-webdriver": "4.0.9",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "2.1.0",
|
|
53
|
-
"@typescript-eslint/parser": "2.1.0",
|
|
54
58
|
"appium": "1.17.0",
|
|
55
|
-
"eslint": "
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"eslint-plugin-import": "2.18.2",
|
|
59
|
-
"eslint-plugin-jsx-a11y": "6.2.3",
|
|
60
|
-
"eslint-plugin-react": "7.14.3",
|
|
61
|
-
"eslint-plugin-react-hooks": "^4.5.0",
|
|
62
|
-
"eslint-plugin-react-native": "3.7.0",
|
|
63
|
-
"jest": "^29.4.1",
|
|
64
|
-
"metro-react-native-babel-preset": "0.73.7",
|
|
59
|
+
"eslint": "8.57.0",
|
|
60
|
+
"jest": "^29.6.3",
|
|
61
|
+
"prettier": "2.8.8",
|
|
65
62
|
"react": "18.2.0",
|
|
66
|
-
"react-native": "0.
|
|
67
|
-
"react-native-macos": "0.
|
|
68
|
-
"react-native-test-app": "2.
|
|
69
|
-
"react-native-windows": "0.
|
|
63
|
+
"react-native": "0.73.5",
|
|
64
|
+
"react-native-macos": "0.73.17",
|
|
65
|
+
"react-native-test-app": "3.2.16",
|
|
66
|
+
"react-native-windows": "0.73.8",
|
|
70
67
|
"selenium-appium": "1.0.2",
|
|
71
68
|
"selenium-webdriver": "4.0.0-alpha.7",
|
|
72
69
|
"semantic-release": "15.13.24",
|
|
73
|
-
"typescript": "
|
|
70
|
+
"typescript": "5.1.3",
|
|
74
71
|
"winappdriver": "^0.0.7"
|
|
75
72
|
},
|
|
76
73
|
"repository": {
|
|
@@ -104,5 +101,6 @@
|
|
|
104
101
|
"android": {
|
|
105
102
|
"javaPackageName": "kr.co.bootpay.webview"
|
|
106
103
|
}
|
|
107
|
-
}
|
|
104
|
+
},
|
|
105
|
+
"packageManager": "yarn@1.22.19"
|
|
108
106
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
require 'json'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
|
|
4
|
+
ios_platform = new_arch_enabled ? '11.0' : '9.0'
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
6
7
|
|
|
7
8
|
Pod::Spec.new do |s|
|
|
8
9
|
s.name = package['name']
|
|
@@ -18,21 +19,28 @@ Pod::Spec.new do |s|
|
|
|
18
19
|
|
|
19
20
|
s.source_files = "apple/**/*.{h,m,mm,swift}"
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
if defined?(install_modules_dependencies()) != nil
|
|
23
|
+
install_modules_dependencies(s);
|
|
24
|
+
else
|
|
25
|
+
if new_arch_enabled
|
|
26
|
+
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
27
|
+
|
|
28
|
+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
29
|
+
|
|
30
|
+
s.pod_target_xcconfig = {
|
|
31
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
32
|
+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
33
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
s.dependency "React-RCTFabric"
|
|
37
|
+
s.dependency "React-Codegen"
|
|
38
|
+
s.dependency "RCT-Folly"
|
|
39
|
+
s.dependency "RCTRequired"
|
|
40
|
+
s.dependency "RCTTypeSafety"
|
|
41
|
+
s.dependency "ReactCommon/turbomodule/core"
|
|
42
|
+
else
|
|
43
|
+
s.dependency "React-Core"
|
|
44
|
+
end
|
|
37
45
|
end
|
|
38
46
|
end
|
package/react-native.config.js
CHANGED
|
@@ -2,27 +2,24 @@ const project = (() => {
|
|
|
2
2
|
const fs = require('fs');
|
|
3
3
|
const path = require('path');
|
|
4
4
|
try {
|
|
5
|
-
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} = require('react-native-test-app');
|
|
9
|
-
return {
|
|
5
|
+
const { configureProjects } = require('react-native-test-app');
|
|
6
|
+
|
|
7
|
+
return configureProjects({
|
|
10
8
|
android: {
|
|
11
9
|
sourceDir: path.join('example', 'android'),
|
|
12
|
-
manifestPath:
|
|
13
|
-
path.join(__dirname, 'example', 'android'),
|
|
14
|
-
),
|
|
10
|
+
manifestPath: path.join(__dirname, 'example', 'android'),
|
|
15
11
|
},
|
|
16
12
|
ios: {
|
|
17
13
|
sourceDir: 'example/ios',
|
|
18
14
|
},
|
|
19
15
|
windows: fs.existsSync('example/windows/WebviewExample.sln') && {
|
|
20
16
|
sourceDir: path.join('example', 'windows'),
|
|
21
|
-
solutionFile: 'WebviewExample.sln',
|
|
22
|
-
project:
|
|
17
|
+
solutionFile: path.join('example', 'windows', 'WebviewExample.sln'),
|
|
18
|
+
project: path.join(__dirname, 'example', 'windows'),
|
|
23
19
|
},
|
|
24
|
-
};
|
|
25
|
-
} catch (
|
|
20
|
+
});
|
|
21
|
+
} catch (e) {
|
|
22
|
+
console.log('Hello?', e);
|
|
26
23
|
return undefined;
|
|
27
24
|
}
|
|
28
25
|
})();
|