You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using the run from the @capacitor/assets and it is not working as expected, neither generating image nor updating it to the respective folders.
The text was updated successfully, but these errors were encountered:
We use a simple node script to change different aspects before the app gets build.
One line of that script is execSync('npx @capacitor/assets@latest generate --ios --android', { cwd: mobileAppRoot });
mobileAppRoot is the root of the angular project
${mobileAppDir}/resources contains the images that are needed for @capacitor/assets
I was using
cordova-res
plugin for programatically generating and updating to respective ios/android folders.const cordovaResOptions = { copy: true, skipConfig: true, }
Android -
IOS
cordovaRes.run({ ...cordovaResOptions, platforms: { ios: { icon: { sources: iconSources }, } }, }) cordovaRes.run({ ...cordovaResOptions, // don't use cordova-res to copy splash screen assets to iOS project copy: false, platforms: { ios: { splash: { sources: splashSources } } }, })
I tried using the
run
from the@capacitor/assets
and it is not working as expected, neither generating image nor updating it to the respective folders.The text was updated successfully, but these errors were encountered: