Skip to content

Commit 3220b2f

Browse files
committed
fix(cordova): always generate resources when adding platforms
Checking whether the dev was authenticated used to be a requirement when `ionic cordova resources` was using Ionic servers. With the default now to use a local tool, `cordova-res`, this is no longer desired behavior. fixes #4026
1 parent cdf2579 commit 3220b2f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/ionic/src/commands/cordova/platform.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ Like running ${input('cordova platform')} directly, but adds default Ionic icons
101101

102102
await this.runCordova(cordovaArgs, {});
103103

104-
const isLoggedIn = this.env.session.isLoggedIn();
105-
106-
if (isLoggedIn && action === 'add' && options['resources'] && ['ios', 'android'].includes(platformName)) {
104+
if (action === 'add' && options['resources'] && ['ios', 'android'].includes(platformName)) {
107105
await runCommand(runinfo, ['cordova', 'resources', platformName, '--force']);
108106
}
109107
}

0 commit comments

Comments
 (0)