Skip to content

Commit

Permalink
EMBR-4337 fix debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmunz committed Aug 12, 2024
1 parent 5619466 commit e748f53
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 40 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//

35 changes: 0 additions & 35 deletions packages/core/scripts/setup/ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,38 +195,3 @@ import EmbraceIO
}
`;
};

export const addBridgingHeader = async (projectName: string) => {
const project = await xcodePatchable({name: projectName});

// TODO check project to see if SWIFT_OBJC_BRIDGING_HEADER is already set
// if it is just return
// otherwise... add the bridging header file
const filename = `${projectName}-Bridging-Header.h`;
const p = path.join("ios", projectName);
if (fs.existsSync(p)) {
logger.warn("bridging header already exists");
return true;
}

fs.writeFileSync(p, getBridgingHeaderContents());

const nameWithCaseSensitive = findNameWithCaseSensitiveFromPath(
project.path,
projectName,
);
project.addFile(
nameWithCaseSensitive,
`${nameWithCaseSensitive}/${filename}`,
);
project.patch();

// TODO SWIFT_OBJC_BRIDGING_HEADER = "${filename}";
};

const getBridgingHeaderContents = () => {
return `//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
`;
};
3 changes: 0 additions & 3 deletions packages/core/scripts/setup/uninstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ export const removeEmbraceImportAndStartFromFile = (
const textToAdd = getText(item);
const toDelete = Array.isArray(textToAdd) ? textToAdd : [textToAdd];

console.log(item.textToAdd);

toDelete.forEach(line => {
logger.log(`Deleting ${line} from ${fileName}`);

Expand Down Expand Up @@ -236,7 +234,6 @@ export const removeEmbraceFromXcode = () => {
resolve(project.writeSync());
})
.catch(r => {
console.log(r);
logger.error(
"Could not find bundle phase, Please refer to the docs at https://embrace.io/docs/react-native/integration/upload-symbol-files/",
);
Expand Down
2 changes: 1 addition & 1 deletion packages/core/scripts/util/ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ const getBridgingHeaderContents = () => {
return `//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
`;
`;
};

export const findNameWithCaseSensitiveFromPath = (
Expand Down

0 comments on commit e748f53

Please sign in to comment.