expo-document-picker 13.1.1-canary-20250407-10a9b42 → 13.1.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/android/build.gradle +2 -2
  3. package/build/ExpoDocumentPicker.web.d.ts.map +1 -1
  4. package/build/ExpoDocumentPicker.web.js.map +1 -1
  5. package/build/index.js.map +1 -1
  6. package/expo-module.config.json +1 -1
  7. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.module → 13.1.1/expo.modules.documentpicker-13.1.1.module} +7 -7
  8. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1/expo.modules.documentpicker-13.1.1.module.md5 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1/expo.modules.documentpicker-13.1.1.module.sha1 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1/expo.modules.documentpicker-13.1.1.module.sha256 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1/expo.modules.documentpicker-13.1.1.module.sha512 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.pom → 13.1.1/expo.modules.documentpicker-13.1.1.pom} +1 -1
  13. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1/expo.modules.documentpicker-13.1.1.pom.md5 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1/expo.modules.documentpicker-13.1.1.pom.sha1 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1/expo.modules.documentpicker-13.1.1.pom.sha256 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1/expo.modules.documentpicker-13.1.1.pom.sha512 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/maven-metadata.xml +4 -4
  18. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/maven-metadata.xml.md5 +1 -1
  19. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/maven-metadata.xml.sha1 +1 -1
  20. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/maven-metadata.xml.sha256 +1 -1
  21. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/maven-metadata.xml.sha512 +1 -1
  22. package/package.json +5 -4
  23. package/plugin/build/withDocumentPickerIOS.js +2 -2
  24. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.module.md5 +0 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.module.sha1 +0 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.module.sha256 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.module.sha512 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.pom.md5 +0 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.pom.sha1 +0 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.pom.sha256 +0 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.pom.sha512 +0 -1
  32. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42-sources.jar → 13.1.1/expo.modules.documentpicker-13.1.1-sources.jar} +0 -0
  33. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42-sources.jar.md5 → 13.1.1/expo.modules.documentpicker-13.1.1-sources.jar.md5} +0 -0
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42-sources.jar.sha1 → 13.1.1/expo.modules.documentpicker-13.1.1-sources.jar.sha1} +0 -0
  35. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42-sources.jar.sha256 → 13.1.1/expo.modules.documentpicker-13.1.1-sources.jar.sha256} +0 -0
  36. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42-sources.jar.sha512 → 13.1.1/expo.modules.documentpicker-13.1.1-sources.jar.sha512} +0 -0
  37. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.aar → 13.1.1/expo.modules.documentpicker-13.1.1.aar} +0 -0
  38. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.aar.md5 → 13.1.1/expo.modules.documentpicker-13.1.1.aar.md5} +0 -0
  39. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.aar.sha1 → 13.1.1/expo.modules.documentpicker-13.1.1.aar.sha1} +0 -0
  40. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.aar.sha256 → 13.1.1/expo.modules.documentpicker-13.1.1.aar.sha256} +0 -0
  41. /package/local-maven-repo/host/exp/exponent/expo.modules.documentpicker/{13.1.1-canary-20250407-10a9b42/expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.aar.sha512 → 13.1.1/expo.modules.documentpicker-13.1.1.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 13.1.1 — 2025-04-09
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
13
17
  ## 13.1.0 — 2025-04-04
14
18
 
15
19
  ### 💡 Others
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = "host.exp.exponent"
7
- version = "13.1.1-canary-20250407-10a9b42"
7
+ version = "13.1.1"
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.documentpicker"
11
11
  defaultConfig {
12
12
  versionCode 17
13
- versionName '13.1.1-canary-20250407-10a9b42'
13
+ versionName '13.1.1'
14
14
  }
15
15
  }
16
16
 
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoDocumentPicker.web.d.ts","sourceRoot":"","sources":["../src/ExpoDocumentPicker.web.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;;kDAOtF,qBAAqB,GAAG,QAAQ,oBAAoB,CAAC;;AAL1D,wBAkDE"}
1
+ {"version":3,"file":"ExpoDocumentPicker.web.d.ts","sourceRoot":"","sources":["../src/ExpoDocumentPicker.web.ts"],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,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC;QACjC,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,CAAC;gBACN,GAAG,EAAE,UAAU,CAAC,kBAAkB;gBAClC,QAAQ;gBACR,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAE,UAAU;aACjB,CAAC,CAAC;YACH,OAAO;SACR;QACD,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAChC,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE;YACpB,MAAM,CAAC,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC,CAAC;QACvF,CAAC,CAAC;QACF,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;YAC7B,MAAM,GAAG,GAAI,MAAc,CAAC,MAAM,CAAC;YACnC,OAAO,CAAC;gBACN,GAAG;gBACH,QAAQ;gBACR,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAE,UAAU;aACjB,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,6CAA6C;QAC7C,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { Platform } from 'expo-modules-core';\n\nimport { DocumentPickerAsset, DocumentPickerOptions, DocumentPickerResult } from './types';\n\nexport default {\n async getDocumentAsync({\n type = '*/*',\n multiple = false,\n base64 = true,\n }: DocumentPickerOptions): Promise<DocumentPickerResult> {\n // SSR guard\n if (!Platform.isDOMAvailable) {\n return { canceled: true, assets: null };\n }\n\n const input = document.createElement('input');\n input.style.display = 'none';\n input.setAttribute('type', 'file');\n input.setAttribute('accept', Array.isArray(type) ? type.join(',') : type);\n input.setAttribute('id', String(Math.random()));\n if (multiple) {\n input.setAttribute('multiple', 'multiple');\n }\n\n document.body.appendChild(input);\n\n return new Promise((resolve, reject) => {\n input.addEventListener('change', async () => {\n if (input.files) {\n const results: Promise<DocumentPickerAsset>[] = [];\n for (let i = 0; i < input.files.length; i++) {\n results.push(readFileAsync(input.files[i], base64));\n }\n try {\n const assets = await Promise.all(results);\n resolve({ canceled: false, assets, output: input.files });\n } catch (e) {\n reject(e);\n }\n } else {\n resolve({ canceled: true, assets: null });\n }\n\n document.body.removeChild(input);\n });\n\n input.addEventListener('cancel', () => {\n resolve({ canceled: true, assets: null });\n });\n\n const event = new MouseEvent('click');\n input.dispatchEvent(event);\n });\n },\n};\n\nfunction readFileAsync(targetFile: File, base64: boolean = true): Promise<DocumentPickerAsset> {\n return new Promise((resolve, reject) => {\n const mimeType = targetFile.type;\n if (!base64) {\n resolve({\n uri: targetFile.webkitRelativePath,\n mimeType,\n name: targetFile.name,\n lastModified: targetFile.lastModified,\n size: targetFile.size,\n file: targetFile,\n });\n return;\n }\n const reader = new FileReader();\n reader.onerror = () => {\n reject(new Error(`Failed to read the selected media because the operation failed.`));\n };\n reader.onload = ({ target }) => {\n const uri = (target as any).result;\n resolve({\n uri,\n mimeType,\n name: targetFile.name,\n lastModified: targetFile.lastModified,\n size: targetFile.size,\n file: targetFile,\n });\n };\n\n // Read in the image file as a binary string.\n reader.readAsDataURL(targetFile);\n });\n}\n"]}
1
+ {"version":3,"file":"ExpoDocumentPicker.web.js","sourceRoot":"","sources":["../src/ExpoDocumentPicker.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,eAAe;IACb,KAAK,CAAC,gBAAgB,CAAC,EACrB,IAAI,GAAG,KAAK,EACZ,QAAQ,GAAG,KAAK,EAChB,MAAM,GAAG,IAAI,GACS;QACtB,YAAY;QACZ,IAAI,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QACT,CAAC;QACD,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAChC,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE;YACpB,MAAM,CAAC,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC,CAAC;QACvF,CAAC,CAAC;QACF,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;YAC7B,MAAM,GAAG,GAAI,MAAc,CAAC,MAAM,CAAC;YACnC,OAAO,CAAC;gBACN,GAAG;gBACH,QAAQ;gBACR,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAE,UAAU;aACjB,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,6CAA6C;QAC7C,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { Platform } from 'expo-modules-core';\n\nimport { DocumentPickerAsset, DocumentPickerOptions, DocumentPickerResult } from './types';\n\nexport default {\n async getDocumentAsync({\n type = '*/*',\n multiple = false,\n base64 = true,\n }: DocumentPickerOptions): Promise<DocumentPickerResult> {\n // SSR guard\n if (!Platform.isDOMAvailable) {\n return { canceled: true, assets: null };\n }\n\n const input = document.createElement('input');\n input.style.display = 'none';\n input.setAttribute('type', 'file');\n input.setAttribute('accept', Array.isArray(type) ? type.join(',') : type);\n input.setAttribute('id', String(Math.random()));\n if (multiple) {\n input.setAttribute('multiple', 'multiple');\n }\n\n document.body.appendChild(input);\n\n return new Promise((resolve, reject) => {\n input.addEventListener('change', async () => {\n if (input.files) {\n const results: Promise<DocumentPickerAsset>[] = [];\n for (let i = 0; i < input.files.length; i++) {\n results.push(readFileAsync(input.files[i], base64));\n }\n try {\n const assets = await Promise.all(results);\n resolve({ canceled: false, assets, output: input.files });\n } catch (e) {\n reject(e);\n }\n } else {\n resolve({ canceled: true, assets: null });\n }\n\n document.body.removeChild(input);\n });\n\n input.addEventListener('cancel', () => {\n resolve({ canceled: true, assets: null });\n });\n\n const event = new MouseEvent('click');\n input.dispatchEvent(event);\n });\n },\n};\n\nfunction readFileAsync(targetFile: File, base64: boolean = true): Promise<DocumentPickerAsset> {\n return new Promise((resolve, reject) => {\n const mimeType = targetFile.type;\n if (!base64) {\n resolve({\n uri: targetFile.webkitRelativePath,\n mimeType,\n name: targetFile.name,\n lastModified: targetFile.lastModified,\n size: targetFile.size,\n file: targetFile,\n });\n return;\n }\n const reader = new FileReader();\n reader.onerror = () => {\n reject(new Error(`Failed to read the selected media because the operation failed.`));\n };\n reader.onload = ({ target }) => {\n const uri = (target as any).result;\n resolve({\n uri,\n mimeType,\n name: targetFile.name,\n lastModified: targetFile.lastModified,\n size: targetFile.size,\n file: targetFile,\n });\n };\n\n // Read in the image file as a binary string.\n reader.readAsDataURL(targetFile);\n });\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAGtD,cAAc;AACd;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,EACrC,IAAI,GAAG,KAAK,EACZ,oBAAoB,GAAG,IAAI,EAC3B,QAAQ,GAAG,KAAK,EAChB,MAAM,GAAG,IAAI,MACY,EAAE;IAC3B,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,IAAI,GAAG,CAAC,IAAI,CAAa,CAAC;KAC3B;IACD,OAAO,MAAM,kBAAkB,CAAC,gBAAgB,CAAC;QAC/C,IAAI;QACJ,oBAAoB;QACpB,QAAQ;QACR,MAAM;KACP,CAAC,CAAC;AACL,CAAC;AAED,cAAc,SAAS,CAAC","sourcesContent":["import ExpoDocumentPicker from './ExpoDocumentPicker';\nimport { DocumentPickerOptions, DocumentPickerResult } from './types';\n\n// @needsAudit\n/**\n * Display the system UI for choosing a document. By default, the chosen file is copied to [the app's internal cache directory](filesystem/#filesystemcachedirectory).\n * > **Notes for Web:** The system UI can only be shown after user activation (e.g. a `Button` press).\n * > Therefore, calling `getDocumentAsync` in `componentDidMount`, for example, will **not** work as\n * > intended. The `cancel` event will not be returned in the browser due to platform restrictions and\n * > inconsistencies across browsers.\n *\n * @return On success returns a promise that fulfils with [`DocumentPickerResult`](#documentpickerresult) object.\n *\n * If the user cancelled the document picking, the promise resolves to `{ type: 'cancel' }`.\n */\nexport async function getDocumentAsync({\n type = '*/*',\n copyToCacheDirectory = true,\n multiple = false,\n base64 = true,\n}: DocumentPickerOptions = {}): Promise<DocumentPickerResult> {\n if (typeof type === 'string') {\n type = [type] as string[];\n }\n return await ExpoDocumentPicker.getDocumentAsync({\n type,\n copyToCacheDirectory,\n multiple,\n base64,\n });\n}\n\nexport * from './types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAGtD,cAAc;AACd;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,EACrC,IAAI,GAAG,KAAK,EACZ,oBAAoB,GAAG,IAAI,EAC3B,QAAQ,GAAG,KAAK,EAChB,MAAM,GAAG,IAAI,MACY,EAAE;IAC3B,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,IAAI,GAAG,CAAC,IAAI,CAAa,CAAC;IAC5B,CAAC;IACD,OAAO,MAAM,kBAAkB,CAAC,gBAAgB,CAAC;QAC/C,IAAI;QACJ,oBAAoB;QACpB,QAAQ;QACR,MAAM;KACP,CAAC,CAAC;AACL,CAAC;AAED,cAAc,SAAS,CAAC","sourcesContent":["import ExpoDocumentPicker from './ExpoDocumentPicker';\nimport { DocumentPickerOptions, DocumentPickerResult } from './types';\n\n// @needsAudit\n/**\n * Display the system UI for choosing a document. By default, the chosen file is copied to [the app's internal cache directory](filesystem/#filesystemcachedirectory).\n * > **Notes for Web:** The system UI can only be shown after user activation (e.g. a `Button` press).\n * > Therefore, calling `getDocumentAsync` in `componentDidMount`, for example, will **not** work as\n * > intended. The `cancel` event will not be returned in the browser due to platform restrictions and\n * > inconsistencies across browsers.\n *\n * @return On success returns a promise that fulfils with [`DocumentPickerResult`](#documentpickerresult) object.\n *\n * If the user cancelled the document picking, the promise resolves to `{ type: 'cancel' }`.\n */\nexport async function getDocumentAsync({\n type = '*/*',\n copyToCacheDirectory = true,\n multiple = false,\n base64 = true,\n}: DocumentPickerOptions = {}): Promise<DocumentPickerResult> {\n if (typeof type === 'string') {\n type = [type] as string[];\n }\n return await ExpoDocumentPicker.getDocumentAsync({\n type,\n copyToCacheDirectory,\n multiple,\n base64,\n });\n}\n\nexport * from './types';\n"]}
@@ -8,7 +8,7 @@
8
8
  "publication": {
9
9
  "groupId": "host.exp.exponent",
10
10
  "artifactId": "expo.modules.documentpicker",
11
- "version": "13.1.1-canary-20250407-10a9b42",
11
+ "version": "13.1.1",
12
12
  "repository": "local-maven-repo"
13
13
  }
14
14
  }
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.documentpicker",
6
- "version": "13.1.1-canary-20250407-10a9b42",
6
+ "version": "13.1.1",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -40,8 +40,8 @@
40
40
  ],
41
41
  "files": [
42
42
  {
43
- "name": "expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.aar",
44
- "url": "expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.aar",
43
+ "name": "expo.modules.documentpicker-13.1.1.aar",
44
+ "url": "expo.modules.documentpicker-13.1.1.aar",
45
45
  "size": 23096,
46
46
  "sha512": "36b8d75dbfdb143ff85bc341d09d1561a93b040831a943f715814a1c9ebe900dbc196cfc8f25d79347611da9f023bcdb318e5293c9a88a82c08aeb3dfb16e5bb",
47
47
  "sha256": "26cfce5fd95b2eb787aa9b9d2c377db5d0caa58e85c4c083f2089ae5a69d7ed9",
@@ -83,8 +83,8 @@
83
83
  ],
84
84
  "files": [
85
85
  {
86
- "name": "expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.aar",
87
- "url": "expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42.aar",
86
+ "name": "expo.modules.documentpicker-13.1.1.aar",
87
+ "url": "expo.modules.documentpicker-13.1.1.aar",
88
88
  "size": 23096,
89
89
  "sha512": "36b8d75dbfdb143ff85bc341d09d1561a93b040831a943f715814a1c9ebe900dbc196cfc8f25d79347611da9f023bcdb318e5293c9a88a82c08aeb3dfb16e5bb",
90
90
  "sha256": "26cfce5fd95b2eb787aa9b9d2c377db5d0caa58e85c4c083f2089ae5a69d7ed9",
@@ -103,8 +103,8 @@
103
103
  },
104
104
  "files": [
105
105
  {
106
- "name": "expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42-sources.jar",
107
- "url": "expo.modules.documentpicker-13.1.1-canary-20250407-10a9b42-sources.jar",
106
+ "name": "expo.modules.documentpicker-13.1.1-sources.jar",
107
+ "url": "expo.modules.documentpicker-13.1.1-sources.jar",
108
108
  "size": 4266,
109
109
  "sha512": "14b62b5104c5815e444717fbb22c806eb8a1428d6cb2a7bd522d89c22ecd15cbc66476e521eb5e1037fe3d529fc2602640f1c7d30e72fdcfc597e370e5b782fa",
110
110
  "sha256": "ebd5dbf8dacee77954127a989e57e14955f510ff606242156ed0b587b5c116aa",
@@ -0,0 +1 @@
1
+ 12ab72caecac5a9db476c483647e2376d5e3246a17e0c58d213b1cc4cfcb1c8f
@@ -0,0 +1 @@
1
+ 8a50a58f8d9ed49c50d5d83eec42374ff9c3153ac8d1349060b8152b07553c4bad559ee9737d26f2ebab005904e7e36b6ba44f160391363c2feefeeed69778d9
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.documentpicker</artifactId>
12
- <version>13.1.1-canary-20250407-10a9b42</version>
12
+ <version>13.1.1</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.documentpicker</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ a41913de8a35ffd3157bb4faa762782f51e9f60ae95550a591f4655c30432f16
@@ -0,0 +1 @@
1
+ f172eceb4eaf42352effaf1b26210758f8070960a5a24cba5d3f72de1ad692ff9320b0e80f42c73d6c5dd6eb4c68b8af860cca886755bbe2166e2f2f3ff6ddb4
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.documentpicker</artifactId>
5
5
  <versioning>
6
- <latest>13.1.1-canary-20250407-10a9b42</latest>
7
- <release>13.1.1-canary-20250407-10a9b42</release>
6
+ <latest>13.1.1</latest>
7
+ <release>13.1.1</release>
8
8
  <versions>
9
- <version>13.1.1-canary-20250407-10a9b42</version>
9
+ <version>13.1.1</version>
10
10
  </versions>
11
- <lastUpdated>20250407111713</lastUpdated>
11
+ <lastUpdated>20250409202812</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- a918c4ef28aaa96b136e9910e131d4a1
1
+ a5d3381b2d1c108822947ffcb40e9814
@@ -1 +1 @@
1
- 1848bada5d7d017d2cb9ef9ce5dfb8a870870099
1
+ 64b1540af77c3f8a10bb34ea449e71f8e08e4607
@@ -1 +1 @@
1
- 37fe7937686191199d432c159e6cb58dfdb64656cbb57bab3d2d787ab1dfff6d
1
+ 2842b3bcb831e60e2fcf2cb5a8a7f73f43770296550733c4d3661e4c216471ed
@@ -1 +1 @@
1
- 2a2f1aa2ec35ec820d07066eb4dad1108d650d8320dc889525c250a47223d1c56d6b4f297199df2b532481a6f068c8dd1216ea0c72259f264bb4c844108560f7
1
+ 08a7c977133b25813a76645032cc5f94a05de6385cac060476ba28becb3ece346eb6954908887e61e660fa56ffd0b6514d9bbe025071c91b03b76936c510dab6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-document-picker",
3
- "version": "13.1.1-canary-20250407-10a9b42",
3
+ "version": "13.1.1",
4
4
  "description": "Provides access to the system's UI for selecting documents from the available providers on the user's device.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -35,9 +35,10 @@
35
35
  "preset": "expo-module-scripts"
36
36
  },
37
37
  "devDependencies": {
38
- "expo-module-scripts": "4.1.1-canary-20250407-10a9b42"
38
+ "expo-module-scripts": "^4.1.1"
39
39
  },
40
40
  "peerDependencies": {
41
- "expo": "53.0.0-canary-20250407-10a9b42"
42
- }
41
+ "expo": "*"
42
+ },
43
+ "gitHead": "1914bb35d23af23078da37e70988261844436505"
43
44
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setICloudEntitlements = exports.withDocumentPickerIOS = void 0;
3
+ exports.withDocumentPickerIOS = void 0;
4
+ exports.setICloudEntitlements = setICloudEntitlements;
4
5
  const config_plugins_1 = require("expo/config-plugins");
5
6
  const withDocumentPickerIOS = (config, { iCloudContainerEnvironment, kvStoreIdentifier } = {}) => {
6
7
  return (0, config_plugins_1.withEntitlementsPlist)(config, (config) => {
@@ -26,4 +27,3 @@ function setICloudEntitlements(config, { iCloudContainerEnvironment, kvStoreIden
26
27
  }
27
28
  return entitlements;
28
29
  }
29
- exports.setICloudEntitlements = setICloudEntitlements;
@@ -1 +0,0 @@
1
- c17e2bc78bf4f332a3256a43b815c0cb13461301954169f427b7618576c1691bdd6983dc27a154e36581af41f0062005ac74275e2c5e754cb0cb0fd267c652de
@@ -1 +0,0 @@
1
- ee259a1374010455340904055fe13befdf20af4f0c3a8740c07309b64753c3d26f7cc95de7a81396dbcd638dcc770a8195edac6a5aa28a8bd1e435d5f3e59cdd