Skip to content

Commit

Permalink
Merge pull request #656 from SUI-Components/feat/sui-app-minor-ajustm…
Browse files Browse the repository at this point in the history
…ents

feat(components/tool/app): Always install capacitor 5 related plugins
  • Loading branch information
oegea authored Apr 24, 2024
2 parents c145a96 + ed77370 commit 217d083
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/tool/app/bin/commands/addLiveUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ module.exports = () => {
reportError(`\n\nThis project has not been initialized. sui-app cannot configure live updates\n\n`)
}

if (!hasDependency('@capgo/capacitor-updater')) installDependency('@capgo/capacitor-updater')
if (!hasDependency('@capgo/capacitor-updater')) installDependency('@capgo/capacitor-updater@5')
else reportError(`\n\nLive updates were already installed\n\n`)
}
8 changes: 4 additions & 4 deletions components/tool/app/bin/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ module.exports = async () => {
installDependency(PACKAGE_NAME)
}

if (!hasDependency('@capgo/capacitor-native-biometric')) installDependency('@capgo/capacitor-native-biometric')
if (!hasDependency('@capgo/capacitor-native-biometric')) installDependency('@capgo/capacitor-native-biometric@5')

if (!hasDependency('@capacitor/local-notifications')) installDependency('@capacitor/local-notifications')
if (!hasDependency('@capacitor/local-notifications')) installDependency('@capacitor/local-notifications@5')

if (!hasDependency('@capgo/capacitor-updater')) installDependency('@capgo/capacitor-updater')
if (!hasDependency('@capgo/capacitor-updater')) installDependency('@capgo/capacitor-updater@5')

if (!hasDependency('@capacitor/app')) installDependency('@capacitor/app')
if (!hasDependency('@capacitor/app')) installDependency('@capacitor/app@5')

// If app has already been initialized
if (hasCapacitorConfig()) {
Expand Down

0 comments on commit 217d083

Please sign in to comment.