Skip to content

Commit

Permalink
fix: no injections resolution to empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
aurimasmi committed Jun 19, 2024
1 parent 70c7fd3 commit ddb26af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/sdk-android/src/gradleParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,23 +107,23 @@ export const parseBuildGradleSync = () => {
},
{
pattern: '{{INJECT_BUILDSCRIPT_EXT}}',
override: buildscript?.ext?.join('\n'),
override: buildscript?.ext?.join('\n') ?? '',
},
{
pattern: '{{INJECT_BUILDSCRIPT_REPOSITORIES}}',
override: buildscript?.repositories?.join('\n'),
override: buildscript?.repositories?.join('\n') ?? '',
},
{
pattern: '{{INJECT_BUILDSCRIPT_CUSTOM}}',
override: buildscript?.custom?.join('\n'),
override: buildscript?.custom?.join('\n') ?? '',
},
{
pattern: '{{INJECT_BUILDSCRIPT_DEPENDENCIES}}',
override: buildscript?.dependencies?.join('\n'),
override: buildscript?.dependencies?.join('\n') ?? '',
},
{
pattern: '{{INJECT_GRADLE_AFTER_ALL}}',
override: templateAndroid?.build_gradle?.injectAfterAll?.join('\n'),
override: templateAndroid?.build_gradle?.injectAfterAll?.join('\n') ?? '',
},
];

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-apple/src/objectiveCParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export const parseAppDelegate = (
},
{
pattern: '{{APPDELEGATE_H_METHODS}}',
override: c.payload.pluginConfigiOS.pluginAppDelegateHMethods,
override: c.payload.pluginConfigiOS.pluginAppDelegateHMethods ?? '',
},
{
pattern: '{{APPDELEGATE_H_EXTENSIONS}}',
Expand Down

0 comments on commit ddb26af

Please sign in to comment.