expo-document-picker 13.0.3-canary-20250124-42fe332 → 13.1.0-canary-20250131-5c4e588
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
|
@@ -6,13 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
### 🎉 New features
|
|
8
8
|
|
|
9
|
+
- [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))
|
|
10
|
+
|
|
9
11
|
### 🐛 Bug fixes
|
|
10
12
|
|
|
11
13
|
### 💡 Others
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
_This version does not introduce any user-facing changes._
|
|
15
|
+
- [Android] Started using expo modules gradle plugin. ([#34176](https://github.com/expo/expo/pull/34176) by [@lukmccall](https://github.com/lukmccall))
|
|
16
|
+
- [apple] Migrate remaining `expo-module.config.json` to unified platform syntax. ([#34445](https://github.com/expo/expo/pull/34445) by [@reichhartd](https://github.com/reichhartd))
|
|
16
17
|
|
|
17
18
|
## 13.0.1 — 2024-10-22
|
|
18
19
|
|
package/android/build.gradle
CHANGED
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
def useLegacyExpoModulesCorePlugin = {
|
|
4
|
+
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
5
|
+
apply from: expoModulesCorePlugin
|
|
6
|
+
applyKotlinExpoModulesCorePlugin()
|
|
7
|
+
useCoreDependencies()
|
|
8
|
+
useDefaultAndroidSdkVersions()
|
|
9
|
+
useExpoPublishing()
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
try {
|
|
13
|
+
apply plugin: 'expo-module-gradle-plugin'
|
|
14
|
+
} catch (e) {
|
|
15
|
+
if (!e instanceof UnknownPluginException) {
|
|
16
|
+
throw e
|
|
17
|
+
}
|
|
5
18
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
useDefaultAndroidSdkVersions()
|
|
11
|
-
useExpoPublishing()
|
|
19
|
+
useLegacyExpoModulesCorePlugin()
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
group = 'host.exp.exponent'
|
|
12
23
|
|
|
13
24
|
android {
|
|
14
25
|
namespace "expo.modules.documentpicker"
|
|
15
26
|
defaultConfig {
|
|
16
27
|
versionCode 17
|
|
17
|
-
versionName '13.0.
|
|
28
|
+
versionName '13.0.1'
|
|
18
29
|
}
|
|
19
30
|
}
|
|
20
31
|
|
package/expo-module.config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-document-picker",
|
|
3
|
-
"version": "13.0
|
|
3
|
+
"version": "13.1.0-canary-20250131-5c4e588",
|
|
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,10 +35,9 @@
|
|
|
35
35
|
"preset": "expo-module-scripts"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"expo-module-scripts": "4.0.4-canary-
|
|
38
|
+
"expo-module-scripts": "4.0.4-canary-20250131-5c4e588"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"expo": "53.0.0-canary-
|
|
42
|
-
}
|
|
43
|
-
"gitHead": "42fe3321395867f7bacba1ea4dc90db1692f119e"
|
|
41
|
+
"expo": "53.0.0-canary-20250131-5c4e588"
|
|
42
|
+
}
|
|
44
43
|
}
|
|
@@ -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
|
}
|