expo-clipboard 6.0.2 → 6.0.3

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,10 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 6.0.3 — 2024-05-01
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
13
17
  ## 6.0.2 — 2024-04-24
14
18
 
15
19
  ### 💡 Others
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '6.0.2'
4
+ version = '6.0.3'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -14,7 +14,7 @@ android {
14
14
  namespace "expo.modules.clipboard"
15
15
  defaultConfig {
16
16
  versionCode 3
17
- versionName '6.0.2'
17
+ versionName '6.0.3'
18
18
  }
19
19
  }
20
20
 
@@ -81,13 +81,13 @@ class ClipboardFileProvider : ContentProvider() {
81
81
  return "application/octet-stream"
82
82
  }
83
83
 
84
- override fun query(uri: Uri, projection: Array<out String>?, selection: String?, selectionArgs: Array<out String>?, sortOrder: String?): Cursor? {
85
- val projection = projection ?: defaultProjectionColumns
84
+ override fun query(uri: Uri, projection: Array<out String>?, selection: String?, selectionArgs: Array<out String>?, sortOrder: String?): Cursor {
85
+ val finalProjection = projection ?: defaultProjectionColumns
86
86
  val file: File = strategy.getFileForUri(uri)
87
- var columns = arrayOfNulls<String>(projection.size)
88
- var values = arrayOfNulls<Any>(projection.size)
87
+ var columns = arrayOfNulls<String>(finalProjection.size)
88
+ var values = arrayOfNulls<Any>(finalProjection.size)
89
89
  var i = 0
90
- for (column in projection) {
90
+ for (column in finalProjection) {
91
91
  when (column) {
92
92
  OpenableColumns.DISPLAY_NAME -> {
93
93
  columns[i] = OpenableColumns.DISPLAY_NAME
@@ -19,7 +19,6 @@ import java.io.File
19
19
  import java.io.FileOutputStream
20
20
  import java.io.IOException
21
21
  import java.lang.StringBuilder
22
- import java.util.*
23
22
 
24
23
  // region Structs and interfaces
25
24
  data class ImageResult(
@@ -130,6 +129,7 @@ internal suspend fun clipDataFromBase64Image(
130
129
  internal suspend fun bitmapFromContentUriAsync(context: Context, imageUri: Uri): Bitmap =
131
130
  runInterruptible(Dispatchers.IO) {
132
131
  val contentResolver = context.contentResolver
132
+ @Suppress("DEPRECATION")
133
133
  when {
134
134
  Build.VERSION.SDK_INT < 28 -> MediaStore.Images.Media.getBitmap(
135
135
  contentResolver,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-clipboard",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
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": "8b4cb45563b85c2ec91b1b249d136661bf6e8981"
42
+ "gitHead": "87bd0dfa8b784a834191195ca174a00dd30ee5b7"
43
43
  }