expo-clipboard 4.5.0 → 4.6.0
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/CHANGELOG.md +4 -0
- package/README.md +14 -1
- package/android/build.gradle +2 -2
- package/ios/Tests/ClipboardModuleSpec.swift +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -13,12 +13,25 @@
|
|
|
13
13
|
|
|
14
14
|
Please refer to the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/clipboard/).
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
## Installation in bare React Native projects
|
|
18
|
+
|
|
19
|
+
For bare React Native projects, ensure you've [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/).
|
|
20
|
+
|
|
21
|
+
### Add the package to your npm dependencies
|
|
17
22
|
|
|
18
23
|
```
|
|
19
24
|
npx expo install expo-clipboard
|
|
20
25
|
```
|
|
21
26
|
|
|
27
|
+
### Configure for iOS
|
|
28
|
+
|
|
29
|
+
Run `npx pod-install` after installing the library.
|
|
30
|
+
|
|
31
|
+
### Configure for Android
|
|
32
|
+
|
|
33
|
+
No additional set up necessary.
|
|
34
|
+
|
|
22
35
|
## Contributing
|
|
23
36
|
|
|
24
37
|
Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing).
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '4.
|
|
6
|
+
version = '4.6.0'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -70,7 +70,7 @@ android {
|
|
|
70
70
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
71
71
|
targetSdkVersion safeExtGet("targetSdkVersion", 33)
|
|
72
72
|
versionCode 3
|
|
73
|
-
versionName '4.
|
|
73
|
+
versionName '4.6.0'
|
|
74
74
|
}
|
|
75
75
|
lintOptions {
|
|
76
76
|
abortOnError false
|
|
@@ -11,7 +11,7 @@ class ClipboardModuleSpec: ExpoSpec {
|
|
|
11
11
|
let holder = ModuleHolder(appContext: appContext, module: ClipboardModule(appContext: appContext))
|
|
12
12
|
|
|
13
13
|
func testModuleFunction<T>(_ functionName: String, args: [Any], _ block: @escaping (T?) -> Void) {
|
|
14
|
-
waitUntil(timeout: .seconds(
|
|
14
|
+
waitUntil(timeout: .seconds(3)) { done in
|
|
15
15
|
holder.call(function: functionName, args: args) { result in
|
|
16
16
|
let value = try! result.get()
|
|
17
17
|
expect(value).to(beAKindOf(T?.self))
|
|
@@ -22,7 +22,7 @@ class ClipboardModuleSpec: ExpoSpec {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
func expectModuleFunctionThrows<T>(_ functionName: String, args: [Any], exception: T.Type) where T: Exception {
|
|
25
|
-
waitUntil(timeout: .seconds(
|
|
25
|
+
waitUntil(timeout: .seconds(3)) { done in
|
|
26
26
|
holder.call(function: functionName, args: args) { result in
|
|
27
27
|
expect(result).to(beFailure(exception: exception))
|
|
28
28
|
done()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-clipboard",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "ExpoClipboard standalone module",
|
|
5
5
|
"main": "build/Clipboard.js",
|
|
6
6
|
"types": "build/Clipboard.d.ts",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"jest": {
|
|
40
40
|
"preset": "expo-module-scripts/universal"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "ee2c866ba3c7fbc35ff2a3e896041cf15d3bd7c5"
|
|
43
43
|
}
|