Skip to content

Commit 0a4a187

Browse files
authored
Merge pull request #69 from Resgrid/develop
CU-868cu9311 Build update
2 parents ee313c3 + 70fee0f commit 0a4a187

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

.github/workflows/react-native-cicd.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -168,38 +168,6 @@ jobs:
168168
exit 1
169169
fi
170170
171-
- name: 📋 Update metro.config.js for SVG support
172-
run: |
173-
if [ -f ./metro.config.js ]; then
174-
echo "Creating backup of metro.config.js"
175-
cp ./metro.config.js ./metro.config.js.backup
176-
echo "Updating metro.config.js to CommonJS format"
177-
cat > ./metro.config.js << 'EOFMARKER'
178-
/* eslint-disable @typescript-eslint/no-var-requires */
179-
const { getDefaultConfig } = require('expo/metro-config');
180-
181-
const config = getDefaultConfig(__dirname);
182-
183-
const { transformer, resolver } = config;
184-
185-
config.transformer = {
186-
...transformer,
187-
babelTransformerPath: require.resolve('react-native-svg-transformer/expo'),
188-
};
189-
190-
config.resolver = {
191-
...resolver,
192-
assetExts: resolver.assetExts.filter(ext => ext !== 'svg'),
193-
sourceExts: [...resolver.sourceExts, 'svg'],
194-
};
195-
196-
module.exports = config;
197-
EOFMARKER
198-
echo "metro.config.js updated to CommonJS format"
199-
else
200-
echo "metro.config.js not found"
201-
fi
202-
203171
- name: 📱 Build Development APK
204172
if: github.event.inputs.buildType == 'all' || github.event.inputs.buildType == 'dev' || github.event_name == 'push' && (matrix.platform == 'android' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'android')
205173
run: |

0 commit comments

Comments
 (0)