expo-clipboard 4.1.1 → 4.1.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/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 4.1.2 — 2023-03-03
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- Fixed crash in clipboard listener on Android SDK <26 ([#21383](https://github.com/expo/expo/pull/21383) by [@frw](https://github.com/frw))
|
|
18
|
+
|
|
13
19
|
## 4.1.1 — 2023-02-09
|
|
14
20
|
|
|
15
21
|
_This version does not introduce any user-facing changes._
|
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.1.
|
|
6
|
+
version = '4.1.2'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -74,7 +74,7 @@ android {
|
|
|
74
74
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
75
75
|
targetSdkVersion safeExtGet("targetSdkVersion", 33)
|
|
76
76
|
versionCode 3
|
|
77
|
-
versionName '4.1.
|
|
77
|
+
versionName '4.1.2'
|
|
78
78
|
}
|
|
79
79
|
lintOptions {
|
|
80
80
|
abortOnError false
|
|
@@ -170,10 +170,12 @@ class ClipboardModule : Module() {
|
|
|
170
170
|
maybeClipboardManager.takeIf { isListening }
|
|
171
171
|
?.primaryClipDescription
|
|
172
172
|
?.let { clip ->
|
|
173
|
-
if (
|
|
174
|
-
|
|
173
|
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
174
|
+
if (timestamp == clip.timestamp) {
|
|
175
|
+
return@OnPrimaryClipChangedListener
|
|
176
|
+
}
|
|
177
|
+
timestamp = clip.timestamp
|
|
175
178
|
}
|
|
176
|
-
timestamp = clip.timestamp
|
|
177
179
|
|
|
178
180
|
this@ClipboardModule.sendEvent(
|
|
179
181
|
CLIPBOARD_CHANGED_EVENT_NAME,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-clipboard",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
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": "129986cd78fd83642786df331e8ba9e1451c5ee0"
|
|
43
43
|
}
|