@bacons/apple-targets 0.0.2 → 0.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/build/index.js +0 -1
- package/build/withWidget.js +5 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -9,7 +9,6 @@ const path_1 = __importDefault(require("path"));
|
|
|
9
9
|
const withWidget_1 = __importDefault(require("./withWidget"));
|
|
10
10
|
const withXcparse_1 = require("./withXcparse");
|
|
11
11
|
const withTargetsDir = (config, { appleTeamId, root = "./targets", match = "*" }) => {
|
|
12
|
-
console.warn("You're using an experimental Config Plugin that is subject to breaking changes and has no E2E tests.");
|
|
13
12
|
const projectRoot = config._internal.projectRoot;
|
|
14
13
|
const targets = (0, glob_1.sync)(`${root}/${match}/expo-target.config.@(json|js)`, {
|
|
15
14
|
// const targets = globSync(`./targets/action/expo-target.config.@(json|js)`, {
|
package/build/withWidget.js
CHANGED
|
@@ -14,6 +14,7 @@ const withIosIcon_1 = require("./icon/withIosIcon");
|
|
|
14
14
|
const target_1 = require("./target");
|
|
15
15
|
const withEasCredentials_1 = require("./withEasCredentials");
|
|
16
16
|
const withXcodeChanges_1 = require("./withXcodeChanges");
|
|
17
|
+
let hasWarned = false;
|
|
17
18
|
function kebabToCamelCase(str) {
|
|
18
19
|
return str.replace(/-([a-z])/g, function (g) {
|
|
19
20
|
return g[1].toUpperCase();
|
|
@@ -65,6 +66,10 @@ const withWidget = (config, props) => {
|
|
|
65
66
|
(0, config_plugins_1.withDangerousMod)(config, [
|
|
66
67
|
"ios",
|
|
67
68
|
async (config) => {
|
|
69
|
+
if (!hasWarned) {
|
|
70
|
+
hasWarned = true;
|
|
71
|
+
console.warn("You're using an experimental Config Plugin that is subject to breaking changes and has no E2E tests.");
|
|
72
|
+
}
|
|
68
73
|
fs_1.default.mkdirSync(widgetFolderAbsolutePath, { recursive: true });
|
|
69
74
|
const files = [
|
|
70
75
|
["Info.plist", (0, target_1.getTargetInfoPlistForType)(props.type)],
|