@@ -16,33 +16,33 @@ import { extractTemplate } from '../util/template';
1616
1717// eslint-disable-next-line prefer-const
1818let allDependencies : { [ key : string ] : any } = { } ;
19- const libs = [ '@capacitor/core' , '@capacitor/cli' , '@capacitor/ios' , '@capacitor/android' ] ;
19+ const libs = [ '@capacitor-plus /core' , '@capacitor-plus /cli' , '@capacitor-plus /ios' , '@capacitor-plus /android' ] ;
2020const plugins = [
21- '@capacitor/action-sheet' ,
22- '@capacitor/app' ,
23- '@capacitor/app-launcher' ,
24- '@capacitor/browser' ,
25- '@capacitor/camera' ,
26- '@capacitor/clipboard' ,
27- '@capacitor/device' ,
28- '@capacitor/dialog' ,
29- '@capacitor/filesystem' ,
30- '@capacitor/geolocation' ,
31- '@capacitor/google-maps' ,
32- '@capacitor/haptics' ,
33- '@capacitor/keyboard' ,
34- '@capacitor/local-notifications' ,
35- '@capacitor/motion' ,
36- '@capacitor/network' ,
37- '@capacitor/preferences' ,
38- '@capacitor/push-notifications' ,
39- '@capacitor/screen-orientation' ,
40- '@capacitor/screen-reader' ,
41- '@capacitor/share' ,
42- '@capacitor/splash-screen' ,
43- '@capacitor/status-bar' ,
44- '@capacitor/text-zoom' ,
45- '@capacitor/toast' ,
21+ '@capacitor-plus /action-sheet' ,
22+ '@capacitor-plus /app' ,
23+ '@capacitor-plus /app-launcher' ,
24+ '@capacitor-plus /browser' ,
25+ '@capacitor-plus /camera' ,
26+ '@capacitor-plus /clipboard' ,
27+ '@capacitor-plus /device' ,
28+ '@capacitor-plus /dialog' ,
29+ '@capacitor-plus /filesystem' ,
30+ '@capacitor-plus /geolocation' ,
31+ '@capacitor-plus /google-maps' ,
32+ '@capacitor-plus /haptics' ,
33+ '@capacitor-plus /keyboard' ,
34+ '@capacitor-plus /local-notifications' ,
35+ '@capacitor-plus /motion' ,
36+ '@capacitor-plus /network' ,
37+ '@capacitor-plus /preferences' ,
38+ '@capacitor-plus /push-notifications' ,
39+ '@capacitor-plus /screen-orientation' ,
40+ '@capacitor-plus /screen-reader' ,
41+ '@capacitor-plus /share' ,
42+ '@capacitor-plus /splash-screen' ,
43+ '@capacitor-plus /status-bar' ,
44+ '@capacitor-plus /text-zoom' ,
45+ '@capacitor-plus /toast' ,
4646] ;
4747const coreVersion = '^8.0.0' ;
4848const pluginVersion = '^8.0.0' ;
@@ -147,7 +147,7 @@ export async function migrateCommand(config: Config, noprompt: boolean, packagem
147147 }
148148
149149 // Update iOS Projects
150- if ( allDependencies [ '@capacitor/ios' ] && existsSync ( config . ios . platformDirAbs ) ) {
150+ if ( allDependencies [ '@capacitor-plus /ios' ] && existsSync ( config . ios . platformDirAbs ) ) {
151151 const currentiOSVersion = getMajoriOSVersion ( config ) ;
152152 if ( parseInt ( currentiOSVersion ) < parseInt ( iOSVersion ) ) {
153153 // ios template changes
@@ -186,7 +186,7 @@ export async function migrateCommand(config: Config, noprompt: boolean, packagem
186186 logger . warn ( 'Skipped Running cap sync.' ) ;
187187 }
188188
189- if ( allDependencies [ '@capacitor/android' ] && existsSync ( config . android . platformDirAbs ) ) {
189+ if ( allDependencies [ '@capacitor-plus /android' ] && existsSync ( config . android . platformDirAbs ) ) {
190190 // AndroidManifest.xml add "density"
191191 await runTask ( `Migrating AndroidManifest.xml by adding density to Activity configChanges.` , ( ) => {
192192 return updateAndroidManifest ( join ( config . android . srcMainDirAbs , 'AndroidManifest.xml' ) ) ;
@@ -354,7 +354,7 @@ async function installLatestLibs(dependencyManager: string, runInstall: boolean,
354354 } ) ;
355355
356356 if ( runInstall ) {
357- rimraf . sync ( join ( config . app . rootDir , 'node_modules/@capacitor/!(cli)' ) ) ;
357+ rimraf . sync ( join ( config . app . rootDir , 'node_modules/@capacitor-plus /!(cli)' ) ) ;
358358 await runCommand ( dependencyManager , [ 'install' ] ) ;
359359 if ( dependencyManager == 'yarn' ) {
360360 await runCommand ( dependencyManager , [ 'upgrade' ] ) ;
@@ -368,16 +368,16 @@ async function installLatestLibs(dependencyManager: string, runInstall: boolean,
368368
369369async function writeBreakingChanges ( ) {
370370 const breaking = [
371- '@capacitor/action-sheet' ,
372- '@capacitor/barcode-scanner' ,
373- '@capacitor/browser' ,
374- '@capacitor/camera' ,
375- '@capacitor/geolocation' ,
376- '@capacitor/google-maps' ,
377- '@capacitor/push-notifications' ,
378- '@capacitor/screen-orientation' ,
379- '@capacitor/splash-screen' ,
380- '@capacitor/status-bar' ,
371+ '@capacitor-plus /action-sheet' ,
372+ '@capacitor-plus /barcode-scanner' ,
373+ '@capacitor-plus /browser' ,
374+ '@capacitor-plus /camera' ,
375+ '@capacitor-plus /geolocation' ,
376+ '@capacitor-plus /google-maps' ,
377+ '@capacitor-plus /push-notifications' ,
378+ '@capacitor-plus /screen-orientation' ,
379+ '@capacitor-plus /splash-screen' ,
380+ '@capacitor-plus /status-bar' ,
381381 ] ;
382382 const broken = [ ] ;
383383 for ( const lib of breaking ) {
0 commit comments