react-native-share 12.0.1 → 12.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/package.json +1 -1
- package/plugin/build/index.js +8 -7
- package/plugin/src/index.ts +3 -4
- package/plugin/tsconfig.json +2 -1
package/package.json
CHANGED
package/plugin/build/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const config_plugins_1 = require("@expo/config-plugins");
|
|
2
4
|
// eslint-disable-next-line import/no-commonjs, @typescript-eslint/no-var-requires
|
|
3
5
|
const pkg = require('../../package.json');
|
|
4
6
|
/**
|
|
@@ -20,7 +22,7 @@ const pkg = require('../../package.json');
|
|
|
20
22
|
* @param {import('@expo/config-plugins').ExportedConfig} config
|
|
21
23
|
*/
|
|
22
24
|
const withAndroidManifestService = (config, props) => {
|
|
23
|
-
return withAndroidManifest(config, (config) => {
|
|
25
|
+
return (0, config_plugins_1.withAndroidManifest)(config, (config) => {
|
|
24
26
|
config.modResults.manifest = {
|
|
25
27
|
...config.modResults.manifest,
|
|
26
28
|
queries: {
|
|
@@ -60,10 +62,9 @@ const withInfoPlist = (config, props) => {
|
|
|
60
62
|
...config.ios,
|
|
61
63
|
infoPlist: {
|
|
62
64
|
...config.ios?.infoPlist,
|
|
63
|
-
LSApplicationQueriesSchemes:
|
|
64
|
-
...config.ios
|
|
65
|
-
|
|
66
|
-
},
|
|
65
|
+
LSApplicationQueriesSchemes: config.ios?.infoPlist?.LSApplicationQueriesSchemes
|
|
66
|
+
? [...config.ios.infoPlist.LSApplicationQueriesSchemes, ...props.ios]
|
|
67
|
+
: props.ios,
|
|
67
68
|
},
|
|
68
69
|
},
|
|
69
70
|
};
|
|
@@ -74,4 +75,4 @@ function withSocialShare(config, props) {
|
|
|
74
75
|
return config;
|
|
75
76
|
}
|
|
76
77
|
// eslint-disable-next-line import/no-commonjs
|
|
77
|
-
module.exports = createRunOncePlugin(withSocialShare, pkg.name, pkg.version);
|
|
78
|
+
module.exports = (0, config_plugins_1.createRunOncePlugin)(withSocialShare, pkg.name, pkg.version);
|
package/plugin/src/index.ts
CHANGED
|
@@ -70,10 +70,9 @@ const withInfoPlist = (config: ExportedConfig, props: WithSocialShareProps) => {
|
|
|
70
70
|
...config.ios,
|
|
71
71
|
infoPlist: {
|
|
72
72
|
...config.ios?.infoPlist,
|
|
73
|
-
LSApplicationQueriesSchemes:
|
|
74
|
-
...config.ios
|
|
75
|
-
|
|
76
|
-
},
|
|
73
|
+
LSApplicationQueriesSchemes: config.ios?.infoPlist?.LSApplicationQueriesSchemes
|
|
74
|
+
? [...config.ios.infoPlist.LSApplicationQueriesSchemes, ...props.ios]
|
|
75
|
+
: props.ios,
|
|
77
76
|
},
|
|
78
77
|
},
|
|
79
78
|
};
|