@expo/config-plugins 7.8.4 → 7.9.0
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/build/ios/PrivacyInfo.d.ts +20 -0
- package/build/ios/PrivacyInfo.js +113 -0
- package/build/ios/PrivacyInfo.js.map +1 -0
- package/build/ios/XcodeProjectFile.d.ts +11 -0
- package/build/ios/XcodeProjectFile.js +21 -0
- package/build/ios/XcodeProjectFile.js.map +1 -1
- package/build/ios/index.d.ts +2 -1
- package/build/ios/index.js +14 -1
- package/build/ios/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ExpoConfig } from '@expo/config-types';
|
|
2
|
+
import type { XcodeProject } from 'xcode';
|
|
3
|
+
import { ExportedConfigWithProps } from '..';
|
|
4
|
+
export type PrivacyInfo = {
|
|
5
|
+
NSPrivacyAccessedAPITypes: {
|
|
6
|
+
NSPrivacyAccessedAPIType: string;
|
|
7
|
+
NSPrivacyAccessedAPITypeReasons: string[];
|
|
8
|
+
}[];
|
|
9
|
+
NSPrivacyCollectedDataTypes: {
|
|
10
|
+
NSPrivacyCollectedDataType: string;
|
|
11
|
+
NSPrivacyCollectedDataTypeLinked: boolean;
|
|
12
|
+
NSPrivacyCollectedDataTypeTracking: boolean;
|
|
13
|
+
NSPrivacyCollectedDataTypePurposes: string[];
|
|
14
|
+
}[];
|
|
15
|
+
NSPrivacyTracking: boolean;
|
|
16
|
+
NSPrivacyTrackingDomains: string[];
|
|
17
|
+
};
|
|
18
|
+
export declare function withPrivacyInfo(config: ExpoConfig): ExpoConfig;
|
|
19
|
+
export declare function setPrivacyInfo(projectConfig: ExportedConfigWithProps<XcodeProject>, privacyManifests: Partial<PrivacyInfo>): ExportedConfigWithProps<XcodeProject>;
|
|
20
|
+
export declare function mergePrivacyInfo(existing: Partial<PrivacyInfo>, privacyManifests: Partial<PrivacyInfo>): PrivacyInfo;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.mergePrivacyInfo = mergePrivacyInfo;
|
|
7
|
+
exports.setPrivacyInfo = setPrivacyInfo;
|
|
8
|
+
exports.withPrivacyInfo = withPrivacyInfo;
|
|
9
|
+
function _plist() {
|
|
10
|
+
const data = _interopRequireDefault(require("@expo/plist"));
|
|
11
|
+
_plist = function () {
|
|
12
|
+
return data;
|
|
13
|
+
};
|
|
14
|
+
return data;
|
|
15
|
+
}
|
|
16
|
+
function _path() {
|
|
17
|
+
const data = _interopRequireDefault(require("path"));
|
|
18
|
+
_path = function () {
|
|
19
|
+
return data;
|
|
20
|
+
};
|
|
21
|
+
return data;
|
|
22
|
+
}
|
|
23
|
+
function _XcodeProjectFile() {
|
|
24
|
+
const data = require("./XcodeProjectFile");
|
|
25
|
+
_XcodeProjectFile = function () {
|
|
26
|
+
return data;
|
|
27
|
+
};
|
|
28
|
+
return data;
|
|
29
|
+
}
|
|
30
|
+
function _Xcodeproj() {
|
|
31
|
+
const data = require("./utils/Xcodeproj");
|
|
32
|
+
_Xcodeproj = function () {
|
|
33
|
+
return data;
|
|
34
|
+
};
|
|
35
|
+
return data;
|
|
36
|
+
}
|
|
37
|
+
function _() {
|
|
38
|
+
const data = require("..");
|
|
39
|
+
_ = function () {
|
|
40
|
+
return data;
|
|
41
|
+
};
|
|
42
|
+
return data;
|
|
43
|
+
}
|
|
44
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
45
|
+
function withPrivacyInfo(config) {
|
|
46
|
+
var _config$ios;
|
|
47
|
+
const privacyManifests = (_config$ios = config.ios) === null || _config$ios === void 0 ? void 0 : _config$ios.privacyManifests;
|
|
48
|
+
if (!privacyManifests) {
|
|
49
|
+
return config;
|
|
50
|
+
}
|
|
51
|
+
return (0, _().withXcodeProject)(config, projectConfig => {
|
|
52
|
+
return setPrivacyInfo(projectConfig, privacyManifests);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function setPrivacyInfo(projectConfig, privacyManifests) {
|
|
56
|
+
const projectName = (0, _Xcodeproj().getProjectName)(projectConfig.modRequest.projectRoot);
|
|
57
|
+
const existingFileContent = (0, _XcodeProjectFile().readBuildSourceFile)({
|
|
58
|
+
project: projectConfig.modResults,
|
|
59
|
+
nativeProjectRoot: projectConfig.modRequest.platformProjectRoot,
|
|
60
|
+
filePath: _path().default.join(projectName, 'PrivacyInfo.xcprivacy')
|
|
61
|
+
});
|
|
62
|
+
const parsedContent = existingFileContent ? _plist().default.parse(existingFileContent) : {};
|
|
63
|
+
const mergedContent = mergePrivacyInfo(parsedContent, privacyManifests);
|
|
64
|
+
const contents = _plist().default.build(mergedContent);
|
|
65
|
+
projectConfig.modResults = (0, _XcodeProjectFile().createBuildSourceFile)({
|
|
66
|
+
project: projectConfig.modResults,
|
|
67
|
+
nativeProjectRoot: projectConfig.modRequest.platformProjectRoot,
|
|
68
|
+
fileContents: contents,
|
|
69
|
+
filePath: _path().default.join(projectName, 'PrivacyInfo.xcprivacy'),
|
|
70
|
+
overwrite: true
|
|
71
|
+
});
|
|
72
|
+
return projectConfig;
|
|
73
|
+
}
|
|
74
|
+
function mergePrivacyInfo(existing, privacyManifests) {
|
|
75
|
+
var _ref, _privacyManifests$NSP, _privacyManifests$NSP2, _privacyManifests$NSP3, _privacyManifests$NSP4;
|
|
76
|
+
let {
|
|
77
|
+
NSPrivacyAccessedAPITypes = [],
|
|
78
|
+
NSPrivacyCollectedDataTypes = [],
|
|
79
|
+
NSPrivacyTracking = false,
|
|
80
|
+
NSPrivacyTrackingDomains = []
|
|
81
|
+
} = structuredClone(existing);
|
|
82
|
+
// tracking is a boolean, so we can just overwrite it
|
|
83
|
+
NSPrivacyTracking = (_ref = (_privacyManifests$NSP = privacyManifests.NSPrivacyTracking) !== null && _privacyManifests$NSP !== void 0 ? _privacyManifests$NSP : existing.NSPrivacyTracking) !== null && _ref !== void 0 ? _ref : false;
|
|
84
|
+
// merge the api types – for each type ensure the key is in the array, and if it is add the reason if it's not there
|
|
85
|
+
(_privacyManifests$NSP2 = privacyManifests.NSPrivacyAccessedAPITypes) === null || _privacyManifests$NSP2 === void 0 ? void 0 : _privacyManifests$NSP2.forEach(newType => {
|
|
86
|
+
const existingType = NSPrivacyAccessedAPITypes.find(t => t.NSPrivacyAccessedAPIType === newType.NSPrivacyAccessedAPIType);
|
|
87
|
+
if (!existingType) {
|
|
88
|
+
NSPrivacyAccessedAPITypes.push(newType);
|
|
89
|
+
} else {
|
|
90
|
+
var _existingType$NSPriva;
|
|
91
|
+
existingType.NSPrivacyAccessedAPITypeReasons = [...new Set(existingType === null || existingType === void 0 ? void 0 : (_existingType$NSPriva = existingType.NSPrivacyAccessedAPITypeReasons) === null || _existingType$NSPriva === void 0 ? void 0 : _existingType$NSPriva.concat(...newType.NSPrivacyAccessedAPITypeReasons))];
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
// merge the collected data types – for each type ensure the key is in the array, and if it is add the purposes if it's not there
|
|
95
|
+
(_privacyManifests$NSP3 = privacyManifests.NSPrivacyCollectedDataTypes) === null || _privacyManifests$NSP3 === void 0 ? void 0 : _privacyManifests$NSP3.forEach(newType => {
|
|
96
|
+
const existingType = NSPrivacyCollectedDataTypes.find(t => t.NSPrivacyCollectedDataType === newType.NSPrivacyCollectedDataType);
|
|
97
|
+
if (!existingType) {
|
|
98
|
+
NSPrivacyCollectedDataTypes.push(newType);
|
|
99
|
+
} else {
|
|
100
|
+
var _existingType$NSPriva2;
|
|
101
|
+
existingType.NSPrivacyCollectedDataTypePurposes = [...new Set(existingType === null || existingType === void 0 ? void 0 : (_existingType$NSPriva2 = existingType.NSPrivacyCollectedDataTypePurposes) === null || _existingType$NSPriva2 === void 0 ? void 0 : _existingType$NSPriva2.concat(...newType.NSPrivacyCollectedDataTypePurposes))];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
// merge the tracking domains
|
|
105
|
+
NSPrivacyTrackingDomains = [...new Set(NSPrivacyTrackingDomains.concat((_privacyManifests$NSP4 = privacyManifests.NSPrivacyTrackingDomains) !== null && _privacyManifests$NSP4 !== void 0 ? _privacyManifests$NSP4 : []))];
|
|
106
|
+
return {
|
|
107
|
+
NSPrivacyAccessedAPITypes,
|
|
108
|
+
NSPrivacyCollectedDataTypes,
|
|
109
|
+
NSPrivacyTracking,
|
|
110
|
+
NSPrivacyTrackingDomains
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=PrivacyInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrivacyInfo.js","names":["_plist","data","_interopRequireDefault","require","_path","_XcodeProjectFile","_Xcodeproj","_","obj","__esModule","default","withPrivacyInfo","config","_config$ios","privacyManifests","ios","withXcodeProject","projectConfig","setPrivacyInfo","projectName","getProjectName","modRequest","projectRoot","existingFileContent","readBuildSourceFile","project","modResults","nativeProjectRoot","platformProjectRoot","filePath","path","join","parsedContent","plist","parse","mergedContent","mergePrivacyInfo","contents","build","createBuildSourceFile","fileContents","overwrite","existing","_ref","_privacyManifests$NSP","_privacyManifests$NSP2","_privacyManifests$NSP3","_privacyManifests$NSP4","NSPrivacyAccessedAPITypes","NSPrivacyCollectedDataTypes","NSPrivacyTracking","NSPrivacyTrackingDomains","structuredClone","forEach","newType","existingType","find","t","NSPrivacyAccessedAPIType","push","_existingType$NSPriva","NSPrivacyAccessedAPITypeReasons","Set","concat","NSPrivacyCollectedDataType","_existingType$NSPriva2","NSPrivacyCollectedDataTypePurposes"],"sources":["../../src/ios/PrivacyInfo.ts"],"sourcesContent":["import { ExpoConfig } from '@expo/config-types';\nimport plist from '@expo/plist';\nimport path from 'path';\nimport type { XcodeProject } from 'xcode';\n\nimport { createBuildSourceFile, readBuildSourceFile } from './XcodeProjectFile';\nimport { getProjectName } from './utils/Xcodeproj';\nimport { ExportedConfigWithProps, withXcodeProject } from '..';\n\nexport type PrivacyInfo = {\n NSPrivacyAccessedAPITypes: {\n NSPrivacyAccessedAPIType: string;\n NSPrivacyAccessedAPITypeReasons: string[];\n }[];\n NSPrivacyCollectedDataTypes: {\n NSPrivacyCollectedDataType: string;\n NSPrivacyCollectedDataTypeLinked: boolean;\n NSPrivacyCollectedDataTypeTracking: boolean;\n NSPrivacyCollectedDataTypePurposes: string[];\n }[];\n NSPrivacyTracking: boolean;\n NSPrivacyTrackingDomains: string[];\n};\n\nexport function withPrivacyInfo(config: ExpoConfig): ExpoConfig {\n const privacyManifests = config.ios?.privacyManifests;\n if (!privacyManifests) {\n return config;\n }\n\n return withXcodeProject(config, (projectConfig: ExportedConfigWithProps<XcodeProject>) => {\n return setPrivacyInfo(projectConfig, privacyManifests);\n });\n}\n\nexport function setPrivacyInfo(\n projectConfig: ExportedConfigWithProps<XcodeProject>,\n privacyManifests: Partial<PrivacyInfo>\n) {\n const projectName = getProjectName(projectConfig.modRequest.projectRoot);\n\n const existingFileContent = readBuildSourceFile({\n project: projectConfig.modResults,\n nativeProjectRoot: projectConfig.modRequest.platformProjectRoot,\n filePath: path.join(projectName, 'PrivacyInfo.xcprivacy'),\n });\n const parsedContent = existingFileContent ? plist.parse(existingFileContent) : {};\n const mergedContent = mergePrivacyInfo(parsedContent, privacyManifests);\n const contents = plist.build(mergedContent);\n\n projectConfig.modResults = createBuildSourceFile({\n project: projectConfig.modResults,\n nativeProjectRoot: projectConfig.modRequest.platformProjectRoot,\n fileContents: contents,\n filePath: path.join(projectName, 'PrivacyInfo.xcprivacy'),\n overwrite: true,\n });\n\n return projectConfig;\n}\n\nexport function mergePrivacyInfo(\n existing: Partial<PrivacyInfo>,\n privacyManifests: Partial<PrivacyInfo>\n): PrivacyInfo {\n let {\n NSPrivacyAccessedAPITypes = [],\n NSPrivacyCollectedDataTypes = [],\n NSPrivacyTracking = false,\n NSPrivacyTrackingDomains = [],\n } = structuredClone(existing);\n // tracking is a boolean, so we can just overwrite it\n NSPrivacyTracking = privacyManifests.NSPrivacyTracking ?? existing.NSPrivacyTracking ?? false;\n // merge the api types – for each type ensure the key is in the array, and if it is add the reason if it's not there\n privacyManifests.NSPrivacyAccessedAPITypes?.forEach((newType) => {\n const existingType = NSPrivacyAccessedAPITypes.find(\n (t) => t.NSPrivacyAccessedAPIType === newType.NSPrivacyAccessedAPIType\n );\n if (!existingType) {\n NSPrivacyAccessedAPITypes.push(newType);\n } else {\n existingType.NSPrivacyAccessedAPITypeReasons = [\n ...new Set(\n existingType?.NSPrivacyAccessedAPITypeReasons?.concat(\n ...newType.NSPrivacyAccessedAPITypeReasons\n )\n ),\n ];\n }\n });\n // merge the collected data types – for each type ensure the key is in the array, and if it is add the purposes if it's not there\n privacyManifests.NSPrivacyCollectedDataTypes?.forEach((newType) => {\n const existingType = NSPrivacyCollectedDataTypes.find(\n (t) => t.NSPrivacyCollectedDataType === newType.NSPrivacyCollectedDataType\n );\n if (!existingType) {\n NSPrivacyCollectedDataTypes.push(newType);\n } else {\n existingType.NSPrivacyCollectedDataTypePurposes = [\n ...new Set(\n existingType?.NSPrivacyCollectedDataTypePurposes?.concat(\n ...newType.NSPrivacyCollectedDataTypePurposes\n )\n ),\n ];\n }\n });\n // merge the tracking domains\n NSPrivacyTrackingDomains = [\n ...new Set(NSPrivacyTrackingDomains.concat(privacyManifests.NSPrivacyTrackingDomains ?? [])),\n ];\n\n return {\n NSPrivacyAccessedAPITypes,\n NSPrivacyCollectedDataTypes,\n NSPrivacyTracking,\n NSPrivacyTrackingDomains,\n };\n}\n"],"mappings":";;;;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,MAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,O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,OAAO;IACLC,yBAAyB;IACzBC,2BAA2B;IAC3BC,iBAAiB;IACjBC;EACF,CAAC;AACH"}
|
|
@@ -29,3 +29,14 @@ export declare function createBuildSourceFile({ project, nativeProjectRoot, file
|
|
|
29
29
|
fileContents: string;
|
|
30
30
|
overwrite?: boolean;
|
|
31
31
|
}): XcodeProject;
|
|
32
|
+
/**
|
|
33
|
+
* Read a source file from the Xcode project
|
|
34
|
+
*
|
|
35
|
+
* @param nativeProjectRoot absolute path to the native app root `user/app/ios`
|
|
36
|
+
* @param filePath path relative to the `nativeProjectRoot` for the file to read `user/app/ios/myapp/foobar.swift`
|
|
37
|
+
*/
|
|
38
|
+
export declare function readBuildSourceFile({ project, nativeProjectRoot, filePath, }: {
|
|
39
|
+
project: XcodeProject;
|
|
40
|
+
nativeProjectRoot: string;
|
|
41
|
+
filePath: string;
|
|
42
|
+
}): string | null;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createBuildSourceFile = createBuildSourceFile;
|
|
7
|
+
exports.readBuildSourceFile = readBuildSourceFile;
|
|
7
8
|
exports.withBuildSourceFile = void 0;
|
|
8
9
|
function _fs() {
|
|
9
10
|
const data = _interopRequireDefault(require("fs"));
|
|
@@ -96,4 +97,24 @@ function createBuildSourceFile({
|
|
|
96
97
|
}
|
|
97
98
|
return project;
|
|
98
99
|
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Read a source file from the Xcode project
|
|
103
|
+
*
|
|
104
|
+
* @param nativeProjectRoot absolute path to the native app root `user/app/ios`
|
|
105
|
+
* @param filePath path relative to the `nativeProjectRoot` for the file to read `user/app/ios/myapp/foobar.swift`
|
|
106
|
+
*/
|
|
107
|
+
function readBuildSourceFile({
|
|
108
|
+
project,
|
|
109
|
+
nativeProjectRoot,
|
|
110
|
+
filePath
|
|
111
|
+
}) {
|
|
112
|
+
const absoluteFilePath = _path().default.join(nativeProjectRoot, filePath);
|
|
113
|
+
if (!_fs().default.existsSync(absoluteFilePath)) {
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
return _fs().default.readFileSync(absoluteFilePath, {
|
|
117
|
+
encoding: 'utf8'
|
|
118
|
+
});
|
|
119
|
+
}
|
|
99
120
|
//# sourceMappingURL=XcodeProjectFile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XcodeProjectFile.js","names":["_fs","data","_interopRequireDefault","require","_path","_Xcodeproj","_iosPlugins","obj","__esModule","default","withBuildSourceFile","config","filePath","contents","overwrite","withXcodeProject","projectName","getProjectName","modRequest","projectRoot","modResults","createBuildSourceFile","project","nativeProjectRoot","platformProjectRoot","fileContents","path","join","exports","absoluteFilePath","fs","existsSync","writeFileSync","groupName","dirname","hasFile","addBuildSourceFileToGroup","filepath"],"sources":["../../src/ios/XcodeProjectFile.ts"],"sourcesContent":["import fs from 'fs';\nimport path from 'path';\n\nimport { addBuildSourceFileToGroup, getProjectName } from './utils/Xcodeproj';\nimport { ConfigPlugin, XcodeProject } from '../Plugin.types';\nimport { withXcodeProject } from '../plugins/ios-plugins';\n\n/**\n * Create a build source file and link it to Xcode.\n *\n * @param config\n * @param props.filePath relative to the build source folder. ex: `ViewController.swift` would be created in `ios/myapp/ViewController.swift`.\n * @param props.contents file contents to write.\n * @param props.overwrite should the contents overwrite any existing file in the same location on disk.\n * @returns\n */\nexport const withBuildSourceFile: ConfigPlugin<{\n filePath: string;\n contents: string;\n overwrite?: boolean;\n}> = (config, { filePath, contents, overwrite }) => {\n return withXcodeProject(config, (config) => {\n const projectName = getProjectName(config.modRequest.projectRoot);\n\n config.modResults = createBuildSourceFile({\n project: config.modResults,\n nativeProjectRoot: config.modRequest.platformProjectRoot,\n fileContents: contents,\n filePath: path.join(projectName, filePath),\n overwrite,\n });\n return config;\n });\n};\n\n/**\n * Add a source file to the Xcode project and write it to the file system.\n *\n * @param nativeProjectRoot absolute path to the native app root `user/app/ios`\n * @param filePath path relative to the `nativeProjectRoot` for the file to create `user/app/ios/myapp/foobar.swift`\n * @param fileContents string file contents to write to the `filePath`\n * @param overwrite should write file even if one already exists\n */\nexport function createBuildSourceFile({\n project,\n nativeProjectRoot,\n filePath,\n fileContents,\n overwrite,\n}: {\n project: XcodeProject;\n nativeProjectRoot: string;\n filePath: string;\n fileContents: string;\n overwrite?: boolean;\n}): XcodeProject {\n const absoluteFilePath = path.join(nativeProjectRoot, filePath);\n if (overwrite || !fs.existsSync(absoluteFilePath)) {\n // Create the file\n fs.writeFileSync(absoluteFilePath, fileContents, 'utf8');\n }\n\n // `myapp`\n const groupName = path.dirname(filePath);\n\n // Ensure the file is linked with Xcode resource files\n if (!project.hasFile(filePath)) {\n project = addBuildSourceFileToGroup({\n filepath: filePath,\n groupName,\n project,\n });\n }\n return project;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"XcodeProjectFile.js","names":["_fs","data","_interopRequireDefault","require","_path","_Xcodeproj","_iosPlugins","obj","__esModule","default","withBuildSourceFile","config","filePath","contents","overwrite","withXcodeProject","projectName","getProjectName","modRequest","projectRoot","modResults","createBuildSourceFile","project","nativeProjectRoot","platformProjectRoot","fileContents","path","join","exports","absoluteFilePath","fs","existsSync","writeFileSync","groupName","dirname","hasFile","addBuildSourceFileToGroup","filepath","readBuildSourceFile","readFileSync","encoding"],"sources":["../../src/ios/XcodeProjectFile.ts"],"sourcesContent":["import fs from 'fs';\nimport path from 'path';\n\nimport { addBuildSourceFileToGroup, getProjectName } from './utils/Xcodeproj';\nimport { ConfigPlugin, XcodeProject } from '../Plugin.types';\nimport { withXcodeProject } from '../plugins/ios-plugins';\n\n/**\n * Create a build source file and link it to Xcode.\n *\n * @param config\n * @param props.filePath relative to the build source folder. ex: `ViewController.swift` would be created in `ios/myapp/ViewController.swift`.\n * @param props.contents file contents to write.\n * @param props.overwrite should the contents overwrite any existing file in the same location on disk.\n * @returns\n */\nexport const withBuildSourceFile: ConfigPlugin<{\n filePath: string;\n contents: string;\n overwrite?: boolean;\n}> = (config, { filePath, contents, overwrite }) => {\n return withXcodeProject(config, (config) => {\n const projectName = getProjectName(config.modRequest.projectRoot);\n\n config.modResults = createBuildSourceFile({\n project: config.modResults,\n nativeProjectRoot: config.modRequest.platformProjectRoot,\n fileContents: contents,\n filePath: path.join(projectName, filePath),\n overwrite,\n });\n return config;\n });\n};\n\n/**\n * Add a source file to the Xcode project and write it to the file system.\n *\n * @param nativeProjectRoot absolute path to the native app root `user/app/ios`\n * @param filePath path relative to the `nativeProjectRoot` for the file to create `user/app/ios/myapp/foobar.swift`\n * @param fileContents string file contents to write to the `filePath`\n * @param overwrite should write file even if one already exists\n */\nexport function createBuildSourceFile({\n project,\n nativeProjectRoot,\n filePath,\n fileContents,\n overwrite,\n}: {\n project: XcodeProject;\n nativeProjectRoot: string;\n filePath: string;\n fileContents: string;\n overwrite?: boolean;\n}): XcodeProject {\n const absoluteFilePath = path.join(nativeProjectRoot, filePath);\n if (overwrite || !fs.existsSync(absoluteFilePath)) {\n // Create the file\n fs.writeFileSync(absoluteFilePath, fileContents, 'utf8');\n }\n\n // `myapp`\n const groupName = path.dirname(filePath);\n\n // Ensure the file is linked with Xcode resource files\n if (!project.hasFile(filePath)) {\n project = addBuildSourceFileToGroup({\n filepath: filePath,\n groupName,\n project,\n });\n }\n return project;\n}\n\n/**\n * Read a source file from the Xcode project\n *\n * @param nativeProjectRoot absolute path to the native app root `user/app/ios`\n * @param filePath path relative to the `nativeProjectRoot` for the file to read `user/app/ios/myapp/foobar.swift`\n */\nexport function readBuildSourceFile({\n project,\n nativeProjectRoot,\n filePath,\n}: {\n project: XcodeProject;\n nativeProjectRoot: string;\n filePath: string;\n}): string | null {\n const absoluteFilePath = path.join(nativeProjectRoot, filePath);\n if (!fs.existsSync(absoluteFilePath)) {\n return null;\n }\n return fs.readFileSync(absoluteFilePath, { encoding: 'utf8' });\n}\n"],"mappings":";;;;;;;;AAAA,SAAAA,IAAA;EAAA,MAAAC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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPAiB,OAAA,CAAAlB,mBAAA,GAAAA,mBAAA;AAQO,SAASW,qBAAqBA,CAAC;EACpCC,OAAO;EACPC,iBAAiB;EACjBX,QAAQ;EACRa,YAAY;EACZX;AAOF,CAAC,EAAgB;EACf,MAAMe,gBAAgB,GAAGH,eAAI,CAACC,IAAI,CAACJ,iBAAiB,EAAEX,QAAQ,CAAC;EAC/D,IAAIE,SAAS,IAAI,CAACgB,aAAE,CAACC,UAAU,CAACF,gBAAgB,CAAC,EAAE;IACjD;IACAC,aAAE,CAACE,aAAa,CAACH,gBAAgB,EAAEJ,YAAY,EAAE,MAAM,CAAC;EAC1D;;EAEA;EACA,MAAMQ,SAAS,GAAGP,eAAI,CAACQ,OAAO,CAACtB,QAAQ,CAAC;;EAExC;EACA,IAAI,CAACU,OAAO,CAACa,OAAO,CAACvB,QAAQ,CAAC,EAAE;IAC9BU,OAAO,GAAG,IAAAc,sCAAyB,EAAC;MAClCC,QAAQ,EAAEzB,QAAQ;MAClBqB,SAAS;MACTX;IACF,CAAC,CAAC;EACJ;EACA,OAAOA,OAAO;AAChB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAASgB,mBAAmBA,CAAC;EAClChB,OAAO;EACPC,iBAAiB;EACjBX;AAKF,CAAC,EAAiB;EAChB,MAAMiB,gBAAgB,GAAGH,eAAI,CAACC,IAAI,CAACJ,iBAAiB,EAAEX,QAAQ,CAAC;EAC/D,IAAI,CAACkB,aAAE,CAACC,UAAU,CAACF,gBAAgB,CAAC,EAAE;IACpC,OAAO,IAAI;EACb;EACA,OAAOC,aAAE,CAACS,YAAY,CAACV,gBAAgB,EAAE;IAAEW,QAAQ,EAAE;EAAO,CAAC,CAAC;AAChE"}
|
package/build/ios/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import * as Name from './Name';
|
|
|
12
12
|
import * as Orientation from './Orientation';
|
|
13
13
|
import * as Paths from './Paths';
|
|
14
14
|
import * as Permissions from './Permissions';
|
|
15
|
+
import * as PrivacyInfo from './PrivacyInfo';
|
|
15
16
|
import * as ProvisioningProfile from './ProvisioningProfile';
|
|
16
17
|
import * as RequiresFullScreen from './RequiresFullScreen';
|
|
17
18
|
import * as Scheme from './Scheme';
|
|
@@ -23,4 +24,4 @@ import * as Version from './Version';
|
|
|
23
24
|
import * as XcodeProjectFile from './XcodeProjectFile';
|
|
24
25
|
import * as XcodeUtils from './utils/Xcodeproj';
|
|
25
26
|
export { InfoPlist, ExpoPlist, Entitlements, Paths, Permissions, XcodeUtils };
|
|
26
|
-
export { Bitcode, BundleIdentifier, BuildProperties, BuildScheme, DeviceFamily, Google, Maps, Locales, Name, Orientation, ProvisioningProfile, RequiresFullScreen, Scheme, Swift, Target, Updates, UsesNonExemptEncryption, Version, XcodeProjectFile, };
|
|
27
|
+
export { Bitcode, BundleIdentifier, BuildProperties, BuildScheme, DeviceFamily, Google, Maps, Locales, Name, Orientation, ProvisioningProfile, RequiresFullScreen, Scheme, Swift, Target, Updates, UsesNonExemptEncryption, Version, XcodeProjectFile, PrivacyInfo, };
|
package/build/ios/index.js
CHANGED
|
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "InfoPlist", {
|
|
|
17
17
|
return _IosConfig().InfoPlist;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
exports.XcodeUtils = exports.XcodeProjectFile = exports.Version = exports.UsesNonExemptEncryption = exports.Updates = exports.Target = exports.Swift = exports.Scheme = exports.RequiresFullScreen = exports.ProvisioningProfile = exports.Permissions = exports.Paths = exports.Orientation = exports.Name = exports.Maps = exports.Locales = void 0;
|
|
20
|
+
exports.XcodeUtils = exports.XcodeProjectFile = exports.Version = exports.UsesNonExemptEncryption = exports.Updates = exports.Target = exports.Swift = exports.Scheme = exports.RequiresFullScreen = exports.ProvisioningProfile = exports.PrivacyInfo = exports.Permissions = exports.Paths = exports.Orientation = exports.Name = exports.Maps = exports.Locales = void 0;
|
|
21
21
|
function Bitcode() {
|
|
22
22
|
const data = _interopRequireWildcard(require("./Bitcode"));
|
|
23
23
|
Bitcode = function () {
|
|
@@ -194,6 +194,19 @@ Object.defineProperty(exports, "Permissions", {
|
|
|
194
194
|
return Permissions();
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
|
+
function PrivacyInfo() {
|
|
198
|
+
const data = _interopRequireWildcard(require("./PrivacyInfo"));
|
|
199
|
+
PrivacyInfo = function () {
|
|
200
|
+
return data;
|
|
201
|
+
};
|
|
202
|
+
return data;
|
|
203
|
+
}
|
|
204
|
+
Object.defineProperty(exports, "PrivacyInfo", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function () {
|
|
207
|
+
return PrivacyInfo();
|
|
208
|
+
}
|
|
209
|
+
});
|
|
197
210
|
function ProvisioningProfile() {
|
|
198
211
|
const data = _interopRequireWildcard(require("./ProvisioningProfile"));
|
|
199
212
|
ProvisioningProfile = function () {
|
package/build/ios/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Bitcode","data","_interopRequireWildcard","require","Object","defineProperty","exports","enumerable","get","BuildProperties","BuildScheme","BundleIdentifier","DeviceFamily","Entitlements","Google","_IosConfig","Locales","Maps","Name","Orientation","Paths","Permissions","ProvisioningProfile","RequiresFullScreen","Scheme","Swift","Target","Updates","UsesNonExemptEncryption","Version","XcodeProjectFile","XcodeUtils","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sources":["../../src/ios/index.ts"],"sourcesContent":["import * as Bitcode from './Bitcode';\nimport * as BuildProperties from './BuildProperties';\nimport * as BuildScheme from './BuildScheme';\nimport * as BundleIdentifier from './BundleIdentifier';\nimport * as DeviceFamily from './DeviceFamily';\nimport * as Entitlements from './Entitlements';\nimport * as Google from './Google';\nimport { ExpoPlist, InfoPlist } from './IosConfig.types';\nimport * as Locales from './Locales';\nimport * as Maps from './Maps';\nimport * as Name from './Name';\nimport * as Orientation from './Orientation';\nimport * as Paths from './Paths';\nimport * as Permissions from './Permissions';\nimport * as ProvisioningProfile from './ProvisioningProfile';\nimport * as RequiresFullScreen from './RequiresFullScreen';\nimport * as Scheme from './Scheme';\nimport * as Swift from './Swift';\nimport * as Target from './Target';\nimport * as Updates from './Updates';\nimport * as UsesNonExemptEncryption from './UsesNonExemptEncryption';\nimport * as Version from './Version';\nimport * as XcodeProjectFile from './XcodeProjectFile';\nimport * as XcodeUtils from './utils/Xcodeproj';\n\n// We can change this to export * as X with TypeScript 3.8+\n// https://devblogs.microsoft.com/typescript/announcing-typescript-3-8-beta/#export-star-as-namespace-syntax\n// .. but we should wait for this to be the default VSCode version.\nexport { InfoPlist, ExpoPlist, Entitlements, Paths, Permissions, XcodeUtils };\n\nexport {\n Bitcode,\n BundleIdentifier,\n BuildProperties,\n BuildScheme,\n DeviceFamily,\n Google,\n Maps,\n Locales,\n Name,\n Orientation,\n ProvisioningProfile,\n RequiresFullScreen,\n Scheme,\n Swift,\n Target,\n Updates,\n UsesNonExemptEncryption,\n Version,\n XcodeProjectFile,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAH,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAqCG,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAR,OAAA;EAAA;AAAA;AACrC,SAAAS,gBAAA;EAAA,MAAAR,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAM,eAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAqDG,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC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A;IAAA,OAAAW,WAAA;EAAA;AAAA;AAC7C,SAAAC,MAAA;EAAA,MAAAnB,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAiB,KAAA,YAAAA,CAAA;IAAA,OAAAnB,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAiCG,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAY,KAAA;EAAA;AAAA;AACjC,SAAAC,YAAA;EAAA,MAAApB,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAkB,WAAA,YAAAA,CAAA;IAAA,OAAApB,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA6CG,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAa,WAAA;EAAA;AAAA;AAC7C,SAAAC,
|
|
1
|
+
{"version":3,"file":"index.js","names":["Bitcode","data","_interopRequireWildcard","require","Object","defineProperty","exports","enumerable","get","BuildProperties","BuildScheme","BundleIdentifier","DeviceFamily","Entitlements","Google","_IosConfig","Locales","Maps","Name","Orientation","Paths","Permissions","PrivacyInfo","ProvisioningProfile","RequiresFullScreen","Scheme","Swift","Target","Updates","UsesNonExemptEncryption","Version","XcodeProjectFile","XcodeUtils","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sources":["../../src/ios/index.ts"],"sourcesContent":["import * as Bitcode from './Bitcode';\nimport * as BuildProperties from './BuildProperties';\nimport * as BuildScheme from './BuildScheme';\nimport * as BundleIdentifier from './BundleIdentifier';\nimport * as DeviceFamily from './DeviceFamily';\nimport * as Entitlements from './Entitlements';\nimport * as Google from './Google';\nimport { ExpoPlist, InfoPlist } from './IosConfig.types';\nimport * as Locales from './Locales';\nimport * as Maps from './Maps';\nimport * as Name from './Name';\nimport * as Orientation from './Orientation';\nimport * as Paths from './Paths';\nimport * as Permissions from './Permissions';\nimport * as PrivacyInfo from './PrivacyInfo';\nimport * as ProvisioningProfile from './ProvisioningProfile';\nimport * as RequiresFullScreen from './RequiresFullScreen';\nimport * as Scheme from './Scheme';\nimport * as Swift from './Swift';\nimport * as Target from './Target';\nimport * as Updates from './Updates';\nimport * as UsesNonExemptEncryption from './UsesNonExemptEncryption';\nimport * as Version from './Version';\nimport * as XcodeProjectFile from './XcodeProjectFile';\nimport * as XcodeUtils from './utils/Xcodeproj';\n\n// We can change this to export * as X with TypeScript 3.8+\n// https://devblogs.microsoft.com/typescript/announcing-typescript-3-8-beta/#export-star-as-namespace-syntax\n// .. but we should wait for this to be the default VSCode version.\nexport { InfoPlist, ExpoPlist, Entitlements, Paths, Permissions, XcodeUtils };\n\nexport {\n Bitcode,\n BundleIdentifier,\n BuildProperties,\n BuildScheme,\n DeviceFamily,\n Google,\n Maps,\n Locales,\n Name,\n Orientation,\n ProvisioningProfile,\n RequiresFullScreen,\n Scheme,\n Swift,\n Target,\n Updates,\n UsesNonExemptEncryption,\n Version,\n XcodeProjectFile,\n PrivacyInfo,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAH,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAqCG,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAR,OAAA;EAAA;AAAA;AACrC,SAAAS,gBAAA;EAAA,MAAAR,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAM,eAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAqDG,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA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GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAjC,GAAA,CAAA8B,GAAA,SAAAK,MAAA,WAAAC,qBAAA,GAAAxC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAyC,wBAAA,WAAAC,GAAA,IAAAR,GAAA,QAAAQ,GAAA,kBAAA1C,MAAA,CAAA2C,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAX,GAAA,EAAAQ,GAAA,SAAAI,IAAA,GAAAN,qBAAA,GAAAxC,MAAA,CAAAyC,wBAAA,CAAAP,GAAA,EAAAQ,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAA1C,GAAA,IAAA0C,IAAA,CAAAC,GAAA,KAAA/C,MAAA,CAAAC,cAAA,CAAAsC,MAAA,EAAAG,GAAA,EAAAI,IAAA,YAAAP,MAAA,CAAAG,GAAA,IAAAR,GAAA,CAAAQ,GAAA,SAAAH,MAAA,CAAAH,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAU,GAAA,CAAAb,GAAA,EAAAK,MAAA,YAAAA,MAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/config-plugins",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.9.0",
|
|
4
4
|
"description": "A library for Expo config plugins",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "88a8226609b870c0635c39da43ac8306c4dc7031"
|
|
64
64
|
}
|