@expo/config-plugins
Advanced tools
Comparing version 7.8.4 to 7.9.0
@@ -15,2 +15,3 @@ import * as Bitcode from './Bitcode'; | ||
import * as Permissions from './Permissions'; | ||
import * as PrivacyInfo from './PrivacyInfo'; | ||
import * as ProvisioningProfile from './ProvisioningProfile'; | ||
@@ -27,2 +28,2 @@ import * as RequiresFullScreen from './RequiresFullScreen'; | ||
export { InfoPlist, ExpoPlist, Entitlements, Paths, Permissions, XcodeUtils }; | ||
export { Bitcode, BundleIdentifier, BuildProperties, BuildScheme, DeviceFamily, Google, Maps, Locales, Name, Orientation, ProvisioningProfile, RequiresFullScreen, Scheme, Swift, Target, Updates, UsesNonExemptEncryption, Version, XcodeProjectFile, }; | ||
export { Bitcode, BundleIdentifier, BuildProperties, BuildScheme, DeviceFamily, Google, Maps, Locales, Name, Orientation, ProvisioningProfile, RequiresFullScreen, Scheme, Swift, Target, Updates, UsesNonExemptEncryption, Version, XcodeProjectFile, PrivacyInfo, }; |
@@ -20,3 +20,3 @@ "use strict"; | ||
}); | ||
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; | ||
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; | ||
function Bitcode() { | ||
@@ -198,2 +198,15 @@ const data = _interopRequireWildcard(require("./Bitcode")); | ||
}); | ||
function PrivacyInfo() { | ||
const data = _interopRequireWildcard(require("./PrivacyInfo")); | ||
PrivacyInfo = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
Object.defineProperty(exports, "PrivacyInfo", { | ||
enumerable: true, | ||
get: function () { | ||
return PrivacyInfo(); | ||
} | ||
}); | ||
function ProvisioningProfile() { | ||
@@ -200,0 +213,0 @@ const data = _interopRequireWildcard(require("./ProvisioningProfile")); |
@@ -32,1 +32,12 @@ /// <reference types="xcode" /> | ||
}): XcodeProject; | ||
/** | ||
* Read a source file from the Xcode project | ||
* | ||
* @param nativeProjectRoot absolute path to the native app root `user/app/ios` | ||
* @param filePath path relative to the `nativeProjectRoot` for the file to read `user/app/ios/myapp/foobar.swift` | ||
*/ | ||
export declare function readBuildSourceFile({ project, nativeProjectRoot, filePath, }: { | ||
project: XcodeProject; | ||
nativeProjectRoot: string; | ||
filePath: string; | ||
}): string | null; |
@@ -7,2 +7,3 @@ "use strict"; | ||
exports.createBuildSourceFile = createBuildSourceFile; | ||
exports.readBuildSourceFile = readBuildSourceFile; | ||
exports.withBuildSourceFile = void 0; | ||
@@ -100,2 +101,22 @@ function _fs() { | ||
} | ||
/** | ||
* Read a source file from the Xcode project | ||
* | ||
* @param nativeProjectRoot absolute path to the native app root `user/app/ios` | ||
* @param filePath path relative to the `nativeProjectRoot` for the file to read `user/app/ios/myapp/foobar.swift` | ||
*/ | ||
function readBuildSourceFile({ | ||
project, | ||
nativeProjectRoot, | ||
filePath | ||
}) { | ||
const absoluteFilePath = _path().default.join(nativeProjectRoot, filePath); | ||
if (!_fs().default.existsSync(absoluteFilePath)) { | ||
return null; | ||
} | ||
return _fs().default.readFileSync(absoluteFilePath, { | ||
encoding: 'utf8' | ||
}); | ||
} | ||
//# sourceMappingURL=XcodeProjectFile.js.map |
{ | ||
"name": "@expo/config-plugins", | ||
"version": "7.8.4", | ||
"version": "7.9.0", | ||
"description": "A library for Expo config plugins", | ||
@@ -63,3 +63,3 @@ "main": "build/index.js", | ||
}, | ||
"gitHead": "102899632731658eecba006c0d1c79b98ba8f5f7" | ||
"gitHead": "88a8226609b870c0635c39da43ac8306c4dc7031" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1177019
255
13187