expo-document-picker 13.0.3-canary-20250122-166c2cb → 13.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,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 13.0.3 — 2025-02-07
14
+
15
+ ### 🎉 New features
16
+
17
+ - [iOS] Allow setting of the `com.apple.developer.ubiquity-kvstore-identifier` entitlement directly. ([#34338](https://github.com/expo/expo/pull/34338) by [@keith-kurak](https://github.com/keith-kurak))
18
+
19
+ ## 13.0.2 — 2025-01-10
20
+
21
+ _This version does not introduce any user-facing changes._
22
+
13
23
  ## 13.0.1 — 2024-10-22
14
24
 
15
25
  _This version does not introduce any user-facing changes._
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '13.0.1'
4
+ version = '13.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.documentpicker"
15
15
  defaultConfig {
16
16
  versionCode 17
17
- versionName '13.0.1'
17
+ versionName '13.0.3'
18
18
  }
19
19
  }
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-document-picker",
3
- "version": "13.0.3-canary-20250122-166c2cb",
3
+ "version": "13.0.3",
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.0.4-canary-20250122-166c2cb"
38
+ "expo-module-scripts": "^4.0.3"
39
39
  },
40
40
  "peerDependencies": {
41
- "expo": "53.0.0-canary-20250122-166c2cb"
42
- }
41
+ "expo": "*"
42
+ },
43
+ "gitHead": "25a1d2edba56d273db7011ad3b42dd1c8c72722c"
43
44
  }
@@ -8,6 +8,12 @@ export type IosProps = {
8
8
  * Available options: https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_icloud-container-environment
9
9
  */
10
10
  iCloudContainerEnvironment?: 'Development' | 'Production';
11
+ /**
12
+ * By default, the `com.apple.developer.ubiquity-kvstore-identifier` entitlement is set to a concatenation
13
+ * of your Apple Team ID and the bundle identifier. However, this entitlement may need to reflect a previous Team ID if your
14
+ * app was transferred from another team. Use this option to set this entitlement value manually.
15
+ */
16
+ kvStoreIdentifier?: string;
11
17
  };
12
18
  export declare const withDocumentPickerIOS: ConfigPlugin<IosProps>;
13
- export declare function setICloudEntitlements(config: Pick<ExpoConfig, 'ios'>, { iCloudContainerEnvironment }: IosProps, { 'com.apple.developer.icloud-container-environment': _env, ...entitlements }: Record<string, any>): Record<string, any>;
19
+ export declare function setICloudEntitlements(config: Pick<ExpoConfig, 'ios'>, { iCloudContainerEnvironment, kvStoreIdentifier }: IosProps, { 'com.apple.developer.icloud-container-environment': _env, ...entitlements }: Record<string, any>): Record<string, any>;
@@ -2,14 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.setICloudEntitlements = exports.withDocumentPickerIOS = void 0;
4
4
  const config_plugins_1 = require("expo/config-plugins");
5
- const withDocumentPickerIOS = (config, { iCloudContainerEnvironment } = {}) => {
5
+ const withDocumentPickerIOS = (config, { iCloudContainerEnvironment, kvStoreIdentifier } = {}) => {
6
6
  return (0, config_plugins_1.withEntitlementsPlist)(config, (config) => {
7
- config.modResults = setICloudEntitlements(config, { iCloudContainerEnvironment }, config.modResults);
7
+ config.modResults = setICloudEntitlements(config, { iCloudContainerEnvironment, kvStoreIdentifier }, config.modResults);
8
8
  return config;
9
9
  });
10
10
  };
11
11
  exports.withDocumentPickerIOS = withDocumentPickerIOS;
12
- function setICloudEntitlements(config, { iCloudContainerEnvironment }, { 'com.apple.developer.icloud-container-environment': _env, ...entitlements }) {
12
+ function setICloudEntitlements(config, { iCloudContainerEnvironment, kvStoreIdentifier }, { 'com.apple.developer.icloud-container-environment': _env, ...entitlements }) {
13
13
  if (config.ios?.usesIcloudStorage) {
14
14
  // Used for AdHoc iOS builds: https://github.com/expo/eas-cli/issues/693
15
15
  // https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_icloud-container-environment
@@ -21,7 +21,7 @@ function setICloudEntitlements(config, { iCloudContainerEnvironment }, { 'com.ap
21
21
  `iCloud.${config.ios.bundleIdentifier}`,
22
22
  ];
23
23
  entitlements['com.apple.developer.ubiquity-kvstore-identifier'] =
24
- `$(TeamIdentifierPrefix)${config.ios.bundleIdentifier}`;
24
+ kvStoreIdentifier || `$(TeamIdentifierPrefix)${config.ios.bundleIdentifier}`;
25
25
  entitlements['com.apple.developer.icloud-services'] = ['CloudDocuments'];
26
26
  }
27
27
  return entitlements;
@@ -9,16 +9,22 @@ export type IosProps = {
9
9
  * Available options: https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_icloud-container-environment
10
10
  */
11
11
  iCloudContainerEnvironment?: 'Development' | 'Production';
12
+ /**
13
+ * By default, the `com.apple.developer.ubiquity-kvstore-identifier` entitlement is set to a concatenation
14
+ * of your Apple Team ID and the bundle identifier. However, this entitlement may need to reflect a previous Team ID if your
15
+ * app was transferred from another team. Use this option to set this entitlement value manually.
16
+ */
17
+ kvStoreIdentifier?: string;
12
18
  };
13
19
 
14
20
  export const withDocumentPickerIOS: ConfigPlugin<IosProps> = (
15
21
  config,
16
- { iCloudContainerEnvironment } = {}
22
+ { iCloudContainerEnvironment, kvStoreIdentifier } = {}
17
23
  ) => {
18
24
  return withEntitlementsPlist(config, (config) => {
19
25
  config.modResults = setICloudEntitlements(
20
26
  config,
21
- { iCloudContainerEnvironment },
27
+ { iCloudContainerEnvironment, kvStoreIdentifier },
22
28
  config.modResults
23
29
  );
24
30
  return config;
@@ -27,7 +33,7 @@ export const withDocumentPickerIOS: ConfigPlugin<IosProps> = (
27
33
 
28
34
  export function setICloudEntitlements(
29
35
  config: Pick<ExpoConfig, 'ios'>,
30
- { iCloudContainerEnvironment }: IosProps,
36
+ { iCloudContainerEnvironment, kvStoreIdentifier }: IosProps,
31
37
  { 'com.apple.developer.icloud-container-environment': _env, ...entitlements }: Record<string, any>
32
38
  ): Record<string, any> {
33
39
  if (config.ios?.usesIcloudStorage) {
@@ -42,7 +48,7 @@ export function setICloudEntitlements(
42
48
  `iCloud.${config.ios.bundleIdentifier}`,
43
49
  ];
44
50
  entitlements['com.apple.developer.ubiquity-kvstore-identifier'] =
45
- `$(TeamIdentifierPrefix)${config.ios.bundleIdentifier}`;
51
+ kvStoreIdentifier || `$(TeamIdentifierPrefix)${config.ios.bundleIdentifier}`;
46
52
 
47
53
  entitlements['com.apple.developer.icloud-services'] = ['CloudDocuments'];
48
54
  }