@react-native-clipboard/clipboard 1.13.2 → 1.14.1
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/RNCClipboard.podspec
CHANGED
|
@@ -16,6 +16,7 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.source = { :git => "https://github.com/react-native-clipboard/clipboard", :tag => "v#{s.version}" }
|
|
17
17
|
s.ios.source_files = "ios/**/*.{h,m,mm}"
|
|
18
18
|
s.osx.source_files = "macos/**/*.{h,m,mm}"
|
|
19
|
+
s.visionos.source_files = "ios/**/*.{h,m,mm}"
|
|
19
20
|
|
|
20
21
|
if fabric_enabled
|
|
21
22
|
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
@@ -24,12 +25,12 @@ Pod::Spec.new do |s|
|
|
|
24
25
|
'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/boost" "$(PODS_ROOT)/boost-for-react-native" "$(PODS_ROOT)/RCT-Folly"',
|
|
25
26
|
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
|
|
26
27
|
}
|
|
27
|
-
s.platforms = { ios: '11.0', tvos: '11.0' }
|
|
28
|
+
s.platforms = { ios: '11.0', tvos: '11.0', :osx => "10.14", :visionos => "1.0" }
|
|
28
29
|
s.compiler_flags = folly_compiler_flags + ' -DRCT_NEW_ARCH_ENABLED'
|
|
29
30
|
|
|
30
31
|
install_modules_dependencies(s)
|
|
31
32
|
else
|
|
32
|
-
s.platforms = { :ios => "9.0", :tvos => "9.0", :osx => "10.14" }
|
|
33
|
+
s.platforms = { :ios => "9.0", :tvos => "9.0", :osx => "10.14", :visionos => "1.0" }
|
|
33
34
|
|
|
34
35
|
s.dependency "React-Core"
|
|
35
36
|
end
|
package/android/src/paper/java/com/reactnativecommunity/clipboard/NativeClipboardModuleSpec.java
CHANGED
|
@@ -17,11 +17,10 @@ import com.facebook.react.bridge.Promise;
|
|
|
17
17
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
18
18
|
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
19
19
|
import com.facebook.react.bridge.ReactMethod;
|
|
20
|
-
import com.facebook.react.bridge.ReactModuleWithSpec;
|
|
21
20
|
import com.facebook.react.bridge.ReadableArray;
|
|
22
21
|
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
|
23
22
|
|
|
24
|
-
public abstract class NativeClipboardModuleSpec extends ReactContextBaseJavaModule implements
|
|
23
|
+
public abstract class NativeClipboardModuleSpec extends ReactContextBaseJavaModule implements TurboModule {
|
|
25
24
|
public NativeClipboardModuleSpec(ReactApplicationContext reactContext) {
|
|
26
25
|
super(reactContext);
|
|
27
26
|
}
|
|
@@ -92,5 +91,5 @@ public abstract class NativeClipboardModuleSpec extends ReactContextBaseJavaModu
|
|
|
92
91
|
|
|
93
92
|
@ReactMethod
|
|
94
93
|
@DoNotStrip
|
|
95
|
-
public abstract void removeListeners(
|
|
94
|
+
public abstract void removeListeners(int count);
|
|
96
95
|
}
|
package/jest/clipboard-mock.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-clipboard/clipboard",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"description": "React Native Clipboard API for macOS, iOS, Android, and Windows",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Clipboard",
|
|
@@ -47,24 +47,31 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@babel/core": "^7.12.9",
|
|
50
|
-
"@react-native-
|
|
51
|
-
"@
|
|
50
|
+
"@callstack/react-native-visionos": "^0.73.0",
|
|
51
|
+
"@react-native/babel-preset": "^0.73.0",
|
|
52
|
+
"@react-native/eslint-config": "^0.73.0",
|
|
53
|
+
"@react-native/metro-config": "^0.73.0",
|
|
54
|
+
"@rnx-kit/align-deps": "^2.4.1",
|
|
55
|
+
"@rnx-kit/metro-config": "^1.3.15",
|
|
56
|
+
"@types/react": "^18.2.0",
|
|
52
57
|
"babel-jest": "^26.1.0",
|
|
53
58
|
"eslint": "^7.32.0",
|
|
54
59
|
"eslint-plugin-prettier": "^3.1.2",
|
|
55
|
-
"jest": "^
|
|
56
|
-
"metro-react-native-babel-preset": "^0.64.0",
|
|
60
|
+
"jest": "^29.2.1",
|
|
57
61
|
"prettier": "^2.4.1",
|
|
58
|
-
"react": "
|
|
59
|
-
"react-native": "0.
|
|
60
|
-
"react-native-macos": "^0.
|
|
61
|
-
"react-native-
|
|
62
|
-
"react-
|
|
62
|
+
"react": "18.2.0",
|
|
63
|
+
"react-native": "^0.73.0",
|
|
64
|
+
"react-native-macos": "^0.73.0",
|
|
65
|
+
"react-native-test-app": "^3.5.3",
|
|
66
|
+
"react-native-windows": "^0.73.0",
|
|
67
|
+
"react-test-renderer": "18.2.0",
|
|
63
68
|
"typescript": "^4.4.3"
|
|
64
69
|
},
|
|
65
70
|
"peerDependencies": {
|
|
66
|
-
"react": "
|
|
67
|
-
"react-native": "
|
|
71
|
+
"react": "16.9.0 || 16.11.0 || 16.13.1 || 17.0.1 || 17.0.2 || 18.0.0 || 18.1.0 || 18.2.0",
|
|
72
|
+
"react-native": "^0.61.5 || ^0.62.3 || ^0.63.2 || ^0.64.2 || ^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.69.0 || ^0.70.0 || ^0.71.0 || ^0.72.0 || ^0.73.0",
|
|
73
|
+
"react-native-macos": "^0.61.0 || ^0.62.0 || ^0.63.0 || ^0.64.0 || ^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.69.0 || ^0.70.0 || ^0.71.0 || ^0.72.0 || ^0.73.0",
|
|
74
|
+
"react-native-windows": "^0.61.0 || ^0.62.0 || ^0.63.0 || ^0.64.0 || ^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.69.0 || ^0.70.0 || ^0.71.0 || ^0.72.0 || ^0.73.0"
|
|
68
75
|
},
|
|
69
76
|
"publishConfig": {
|
|
70
77
|
"access": "public"
|
|
@@ -76,5 +83,9 @@
|
|
|
76
83
|
"android": {
|
|
77
84
|
"javaPackageName": "com.reactnativecommunity.clipboard"
|
|
78
85
|
}
|
|
79
|
-
}
|
|
86
|
+
},
|
|
87
|
+
"packageManager": "yarn@4.1.1",
|
|
88
|
+
"workspaces": [
|
|
89
|
+
"example"
|
|
90
|
+
]
|
|
80
91
|
}
|