mirror of
https://github.com/expo/config-plugins.git
synced 2026-11-13 20:28:07 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37d11f1867 | ||
|
|
7ecaaf5bd9 |
No files matched your search
@@ -1,3 +1,10 @@
|
|||||||
|
### @config-plugins/react-native-callkeep [1.0.2](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-22)
|
||||||
|
|
||||||
|
|
||||||
|
### Other chores
|
||||||
|
|
||||||
|
* git ignore build folders ([#59](https://github.com/expo/config-plugins/issues/59)) ([d6050be](https://github.com/expo/config-plugins/commit/d6050beb2a5c68dc59287c27ec388c2002ec7904))
|
||||||
|
|
||||||
### @config-plugins/react-native-callkeep [1.0.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
### @config-plugins/react-native-callkeep [1.0.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
import { XcodeProject } from "@expo/config-plugins";
|
||||||
|
export declare function ensureHeaderSearchPath(project: XcodeProject, file: string): void;
|
||||||
+33
@@ -0,0 +1,33 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.ensureHeaderSearchPath = void 0;
|
||||||
|
const COMMENT_KEY = /_comment$/;
|
||||||
|
function unquote(str) {
|
||||||
|
if (str)
|
||||||
|
return str.replace(/^"(.*)"$/, "$1");
|
||||||
|
}
|
||||||
|
function nonComments(obj) {
|
||||||
|
var keys = Object.keys(obj), newObj = {}, i = 0;
|
||||||
|
for (i; i < keys.length; i++) {
|
||||||
|
if (!COMMENT_KEY.test(keys[i])) {
|
||||||
|
newObj[keys[i]] = obj[keys[i]];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return newObj;
|
||||||
|
}
|
||||||
|
function ensureHeaderSearchPath(project, file) {
|
||||||
|
const configurations = nonComments(project.pbxXCBuildConfigurationSection());
|
||||||
|
const INHERITED = '"$(inherited)"';
|
||||||
|
for (const config in configurations) {
|
||||||
|
const buildSettings = configurations[config].buildSettings;
|
||||||
|
if (unquote(buildSettings["PRODUCT_NAME"]) != project.productName)
|
||||||
|
continue;
|
||||||
|
if (!buildSettings["HEADER_SEARCH_PATHS"]) {
|
||||||
|
buildSettings["HEADER_SEARCH_PATHS"] = [INHERITED];
|
||||||
|
}
|
||||||
|
if (!buildSettings.HEADER_SEARCH_PATHS.includes(file)) {
|
||||||
|
buildSettings["HEADER_SEARCH_PATHS"].push(file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.ensureHeaderSearchPath = ensureHeaderSearchPath;
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
import { ConfigPlugin } from "@expo/config-plugins";
|
||||||
|
declare const withCallkeep: ConfigPlugin;
|
||||||
|
export declare const withXcodeLinkBinaryWithLibraries: ConfigPlugin<{
|
||||||
|
library: string;
|
||||||
|
status?: string;
|
||||||
|
}>;
|
||||||
|
export default withCallkeep;
|
||||||
+110
@@ -0,0 +1,110 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.withXcodeLinkBinaryWithLibraries = void 0;
|
||||||
|
const config_plugins_1 = require("@expo/config-plugins");
|
||||||
|
const ensureHeaderSearchPath_1 = require("./ensureHeaderSearchPath");
|
||||||
|
const withCallkeepHeaderSearchPath = (config) => {
|
||||||
|
const headerSearchPath = `"$(SRCROOT)/../node_modules/react-native-callkeep/ios/RNCallKeep"`;
|
||||||
|
return config_plugins_1.withXcodeProject(config, (config) => {
|
||||||
|
ensureHeaderSearchPath_1.ensureHeaderSearchPath(config.modResults, headerSearchPath);
|
||||||
|
return config;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const withAndroidManifestService = (config) => {
|
||||||
|
return config_plugins_1.withAndroidManifest(config, (config) => {
|
||||||
|
// <service
|
||||||
|
// android:name="io.wazo.callkeep.VoiceConnectionService"
|
||||||
|
// android:label="Wazo"
|
||||||
|
// android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"
|
||||||
|
// // Use this to target android >= 11
|
||||||
|
// android:foregroundServiceType="camera|microphone"
|
||||||
|
// // For android < 11
|
||||||
|
// android:foregroundServiceType="phoneCall"
|
||||||
|
// >
|
||||||
|
// <intent-filter>
|
||||||
|
// <action android:name="android.telecom.ConnectionService" />
|
||||||
|
// </intent-filter>
|
||||||
|
// </service>;
|
||||||
|
const app = config_plugins_1.AndroidConfig.Manifest.getMainApplicationOrThrow(config.modResults);
|
||||||
|
if (!Array.isArray(app.service))
|
||||||
|
app.service = [];
|
||||||
|
if (!app.service.find((item) => item.$["android:name"] ===
|
||||||
|
"io.wazo.callkeep.RNCallKeepBackgroundMessagingService")) {
|
||||||
|
app.service.push({
|
||||||
|
$: {
|
||||||
|
"android:name": "io.wazo.callkeep.RNCallKeepBackgroundMessagingService",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// TODO: Update item
|
||||||
|
if (!app.service.find((item) => item.$["android:name"] === "io.wazo.callkeep.VoiceConnectionService")) {
|
||||||
|
app.service.push({
|
||||||
|
$: {
|
||||||
|
"android:name": "io.wazo.callkeep.VoiceConnectionService",
|
||||||
|
// @ts-ignore
|
||||||
|
"android:label": "Wazo",
|
||||||
|
"android:permission": "android.permission.BIND_TELECOM_CONNECTION_SERVICE",
|
||||||
|
// Use this to target android >= 11
|
||||||
|
// "android:foregroundServiceType": "camera|microphone",
|
||||||
|
// For android < 11
|
||||||
|
"android:foregroundServiceType": "phoneCall",
|
||||||
|
},
|
||||||
|
"intent-filter": [
|
||||||
|
{
|
||||||
|
action: [
|
||||||
|
{
|
||||||
|
$: {
|
||||||
|
"android:name": "android.telecom.ConnectionService",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return config;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const withCallkeep = (config) => {
|
||||||
|
config = config_plugins_1.withInfoPlist(config, (config) => {
|
||||||
|
if (!Array.isArray(config.modResults.UIBackgroundModes)) {
|
||||||
|
config.modResults.UIBackgroundModes = [];
|
||||||
|
}
|
||||||
|
if (!config.modResults.UIBackgroundModes.includes("voip")) {
|
||||||
|
config.modResults.UIBackgroundModes.push("voip");
|
||||||
|
}
|
||||||
|
return config;
|
||||||
|
});
|
||||||
|
config = withCallkeepHeaderSearchPath(config);
|
||||||
|
config = exports.withXcodeLinkBinaryWithLibraries(config, {
|
||||||
|
library: "Intents.framework",
|
||||||
|
status: "optional",
|
||||||
|
});
|
||||||
|
config = exports.withXcodeLinkBinaryWithLibraries(config, {
|
||||||
|
library: "CallKit.framework",
|
||||||
|
});
|
||||||
|
config = config_plugins_1.AndroidConfig.Permissions.withPermissions(config, [
|
||||||
|
"android.permission.BIND_TELECOM_CONNECTION_SERVICE",
|
||||||
|
"android.permission.FOREGROUND_SERVICE",
|
||||||
|
"android.permission.READ_PHONE_STATE",
|
||||||
|
"android.permission.CALL_PHONE",
|
||||||
|
]);
|
||||||
|
config = withAndroidManifestService(config);
|
||||||
|
return config;
|
||||||
|
};
|
||||||
|
const withXcodeLinkBinaryWithLibraries = (config, { library, status }) => {
|
||||||
|
return config_plugins_1.withXcodeProject(config, (config) => {
|
||||||
|
const options = status === "optional" ? { weak: true } : {};
|
||||||
|
const target = config_plugins_1.IOSConfig.XcodeUtils.getApplicationNativeTarget({
|
||||||
|
project: config.modResults,
|
||||||
|
projectName: config.modRequest.projectName,
|
||||||
|
});
|
||||||
|
config.modResults.addFramework(library, {
|
||||||
|
target: target.uuid,
|
||||||
|
...options,
|
||||||
|
});
|
||||||
|
return config;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
exports.withXcodeLinkBinaryWithLibraries = withXcodeLinkBinaryWithLibraries;
|
||||||
|
exports.default = withCallkeep;
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@config-plugins/react-native-callkeep",
|
"name": "@config-plugins/react-native-callkeep",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "Config plugin to auto configure callkeep on prebuild",
|
"description": "Config plugin to auto configure callkeep on prebuild",
|
||||||
"main": "build/withCallkeep.js",
|
"main": "build/withCallkeep.js",
|
||||||
"types": "build/withCallkeep.d.ts",
|
"types": "build/withCallkeep.d.ts",
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
### @config-plugins/react-native-dynamic-app-icon [1.0.2](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-22)
|
||||||
|
|
||||||
|
|
||||||
|
### Other chores
|
||||||
|
|
||||||
|
* git ignore build folders ([#59](https://github.com/expo/config-plugins/issues/59)) ([d6050be](https://github.com/expo/config-plugins/commit/d6050beb2a5c68dc59287c27ec388c2002ec7904))
|
||||||
|
|
||||||
### @config-plugins/react-native-dynamic-app-icon [1.0.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
### @config-plugins/react-native-dynamic-app-icon [1.0.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
import { ConfigPlugin } from "@expo/config-plugins";
|
||||||
|
declare type IconSet = Record<string, {
|
||||||
|
image: string;
|
||||||
|
prerendered?: boolean;
|
||||||
|
}>;
|
||||||
|
declare const withDynamicIcon: ConfigPlugin<string[] | IconSet | void>;
|
||||||
|
export default withDynamicIcon;
|
||||||
+175
@@ -0,0 +1,175 @@
|
|||||||
|
"use strict";
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
const config_plugins_1 = require("@expo/config-plugins");
|
||||||
|
const image_utils_1 = require("@expo/image-utils");
|
||||||
|
const fs_1 = __importDefault(require("fs"));
|
||||||
|
const path_1 = __importDefault(require("path"));
|
||||||
|
const folderName = "DynamicAppIcons";
|
||||||
|
const size = 60;
|
||||||
|
const scales = [2, 3];
|
||||||
|
function arrayToImages(images) {
|
||||||
|
return images.reduce((prev, curr, i) => ({ ...prev, [i]: { image: curr } }), {});
|
||||||
|
}
|
||||||
|
const withDynamicIcon = (config, props = {}) => {
|
||||||
|
const _props = props || {};
|
||||||
|
let prepped = {};
|
||||||
|
if (Array.isArray(_props)) {
|
||||||
|
prepped = arrayToImages(_props);
|
||||||
|
}
|
||||||
|
else if (_props) {
|
||||||
|
prepped = _props;
|
||||||
|
}
|
||||||
|
config = withIconXcodeProject(config, { icons: prepped });
|
||||||
|
config = withIconInfoPlist(config, { icons: prepped });
|
||||||
|
config = withIconImages(config, { icons: prepped });
|
||||||
|
return config;
|
||||||
|
};
|
||||||
|
function getIconName(name, size, scale) {
|
||||||
|
const fileName = `${name}-Icon-${size}x${size}`;
|
||||||
|
if (scale != null) {
|
||||||
|
return `${fileName}@${scale}x.png`;
|
||||||
|
}
|
||||||
|
return fileName;
|
||||||
|
}
|
||||||
|
// @ts-ignore
|
||||||
|
const pbxFile_1 = __importDefault(require("xcode/lib/pbxFile"));
|
||||||
|
const withIconXcodeProject = (config, { icons }) => {
|
||||||
|
return config_plugins_1.withXcodeProject(config, async (config) => {
|
||||||
|
const groupPath = `${config.modRequest.projectName}/${folderName}`;
|
||||||
|
const group = config_plugins_1.IOSConfig.XcodeUtils.ensureGroupRecursively(config.modResults, groupPath);
|
||||||
|
const project = config.modResults;
|
||||||
|
const opt = {};
|
||||||
|
// Unlink old assets
|
||||||
|
const groupId = Object.keys(project.hash.project.objects["PBXGroup"]).find((id) => {
|
||||||
|
const _group = project.hash.project.objects["PBXGroup"][id];
|
||||||
|
return _group.name === group.name;
|
||||||
|
});
|
||||||
|
if (!project.hash.project.objects["PBXVariantGroup"]) {
|
||||||
|
project.hash.project.objects["PBXVariantGroup"] = {};
|
||||||
|
}
|
||||||
|
const variantGroupId = Object.keys(project.hash.project.objects["PBXVariantGroup"]).find((id) => {
|
||||||
|
const _group = project.hash.project.objects["PBXVariantGroup"][id];
|
||||||
|
return _group.name === group.name;
|
||||||
|
});
|
||||||
|
const children = [...(group.children || [])];
|
||||||
|
for (const child of children) {
|
||||||
|
const file = new pbxFile_1.default(path_1.default.join(group.name, child.comment), opt);
|
||||||
|
file.target = opt ? opt.target : undefined;
|
||||||
|
project.removeFromPbxBuildFileSection(file); // PBXBuildFile
|
||||||
|
project.removeFromPbxFileReferenceSection(file); // PBXFileReference
|
||||||
|
if (group) {
|
||||||
|
if (groupId) {
|
||||||
|
project.removeFromPbxGroup(file, groupId); //Group other than Resources (i.e. 'splash')
|
||||||
|
}
|
||||||
|
else if (variantGroupId) {
|
||||||
|
project.removeFromPbxVariantGroup(file, variantGroupId); // PBXVariantGroup
|
||||||
|
}
|
||||||
|
}
|
||||||
|
project.removeFromPbxResourcesBuildPhase(file); // PBXResourcesBuildPhase
|
||||||
|
}
|
||||||
|
// Link new assets
|
||||||
|
await iterateIconsAsync({ icons }, async (key, icon, index) => {
|
||||||
|
for (const scale of scales) {
|
||||||
|
const iconFileName = getIconName(key, size, scale);
|
||||||
|
if (!(group === null || group === void 0 ? void 0 : group.children.some(({ comment }) => comment === iconFileName))) {
|
||||||
|
// Only write the file if it doesn't already exist.
|
||||||
|
config.modResults = config_plugins_1.IOSConfig.XcodeUtils.addResourceFileToGroup({
|
||||||
|
filepath: path_1.default.join(groupPath, iconFileName),
|
||||||
|
groupName: groupPath,
|
||||||
|
project: config.modResults,
|
||||||
|
isBuildFile: true,
|
||||||
|
verbose: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
console.log("Skipping duplicate: ", iconFileName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return config;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const withIconInfoPlist = (config, { icons }) => {
|
||||||
|
return config_plugins_1.withInfoPlist(config, async (config) => {
|
||||||
|
const altIcons = {};
|
||||||
|
await iterateIconsAsync({ icons }, async (key, icon) => {
|
||||||
|
altIcons[key] = {
|
||||||
|
CFBundleIconFiles: [
|
||||||
|
// Must be a file path relative to the source root (not a icon set it seems).
|
||||||
|
// i.e. `Bacon-Icon-60x60` when the image is `ios/somn/appIcons/[email protected]`
|
||||||
|
getIconName(key, size),
|
||||||
|
],
|
||||||
|
UIPrerenderedIcon: !!icon.prerendered,
|
||||||
|
};
|
||||||
|
});
|
||||||
|
function applyToPlist(key) {
|
||||||
|
if (typeof config.modResults[key] !== "object" ||
|
||||||
|
Array.isArray(config.modResults[key]) ||
|
||||||
|
!config.modResults[key]) {
|
||||||
|
config.modResults[key] = {};
|
||||||
|
}
|
||||||
|
// @ts-expect-error
|
||||||
|
config.modResults[key].CFBundleAlternateIcons = altIcons;
|
||||||
|
// @ts-expect-error
|
||||||
|
config.modResults[key].CFBundlePrimaryIcon = {
|
||||||
|
CFBundleIconFiles: ["AppIcon"],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
// Apply for both tablet and phone support
|
||||||
|
applyToPlist("CFBundleIcons");
|
||||||
|
applyToPlist("CFBundleIcons~ipad");
|
||||||
|
return config;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const withIconImages = (config, props) => {
|
||||||
|
return config_plugins_1.withDangerousMod(config, [
|
||||||
|
"ios",
|
||||||
|
async (config) => {
|
||||||
|
await createIconsAsync(config, props);
|
||||||
|
return config;
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
async function createIconsAsync(config, { icons }) {
|
||||||
|
const iosRoot = path_1.default.join(config.modRequest.platformProjectRoot, config.modRequest.projectName);
|
||||||
|
// Delete all existing assets
|
||||||
|
await fs_1.default.promises
|
||||||
|
.rmdir(path_1.default.join(iosRoot, folderName), { recursive: true })
|
||||||
|
.catch(() => null);
|
||||||
|
// Ensure directory exists
|
||||||
|
await fs_1.default.promises.mkdir(path_1.default.join(iosRoot, folderName), { recursive: true });
|
||||||
|
// Generate new assets
|
||||||
|
await iterateIconsAsync({ icons }, async (key, icon) => {
|
||||||
|
for (const scale of scales) {
|
||||||
|
const iconFileName = getIconName(key, size, scale);
|
||||||
|
const fileName = path_1.default.join(folderName, iconFileName);
|
||||||
|
const outputPath = path_1.default.join(iosRoot, fileName);
|
||||||
|
const scaledSize = scale * size;
|
||||||
|
const { source } = await image_utils_1.generateImageAsync({
|
||||||
|
projectRoot: config.modRequest.projectRoot,
|
||||||
|
cacheType: "react-native-dynamic-app-icon",
|
||||||
|
}, {
|
||||||
|
name: iconFileName,
|
||||||
|
src: icon.image,
|
||||||
|
removeTransparency: true,
|
||||||
|
backgroundColor: "#ffffff",
|
||||||
|
resizeMode: "cover",
|
||||||
|
width: scaledSize,
|
||||||
|
height: scaledSize,
|
||||||
|
});
|
||||||
|
await fs_1.default.promises.writeFile(outputPath, source);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
async function iterateIconsAsync({ icons }, callback) {
|
||||||
|
const entries = Object.entries(icons);
|
||||||
|
for (let i = 0; i < entries.length; i++) {
|
||||||
|
const [key, val] = entries[i];
|
||||||
|
await callback(key, val, i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.default = withDynamicIcon;
|
||||||
|
//# sourceMappingURL=index.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,yDAO8B;AAC9B,mDAAuD;AACvD,4CAAoB;AACpB,gDAAwB;AAExB,MAAM,UAAU,GAAG,iBAAiB,CAAC;AACrC,MAAM,IAAI,GAAG,EAAE,CAAC;AAChB,MAAM,MAAM,GAAG,CAAC,CAAC,EAAE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ACA,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;aAC7B;YAED,mBAAmB;YACnB,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,sBAAsB,GAAG,QAAQ,CAAC;YAEzD,mBAAmB;YACnB,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,mBAAmB,GAAG;gBAC3C,iBAAiB,EAAE,CAAC,SAAS,CAAC;aAC/B,CAAC;QACJ,CAAC;QAED,0CAA0C;QAC1C,YAAY,CAAC,eAAe,CAAC,CAAC;QAC9B,YAAY,CAAC,oBAAoB,CAAC,CAAC;QAEnC,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,cAAc,GAAwB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;IAC5D,OAAO,iCAAgB,CAAC,MAAM,EAAE;QAC9B,KAAK;QACL,KAAK,EAAE,MAAM,EAAE,EAAE;YACf,MAAM,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;YACtC,OAAO,MAAM,CAAC;QAChLine truncated
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@config-plugins/react-native-dynamic-app-icon",
|
"name": "@config-plugins/react-native-dynamic-app-icon",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "Config plugin to auto configure react-native-dynamic-app-icon",
|
"description": "Config plugin to auto configure react-native-dynamic-app-icon",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"types": "build/index.d.ts",
|
"types": "build/index.d.ts",
|
||||||
|
|||||||
Reference in new issue
Block a user