Skip to content

Commit

Permalink
fix(cli): Revert some splash migration errors (#5806)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jul 28, 2022
1 parent 25b82a8 commit 471feed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cli/src/tasks/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -902,5 +902,16 @@ async function addNewSplashScreen(config: Config) {
`parent="AppTheme.NoActionBar"`,
`parent="Theme.SplashScreen"`,
);

// revert wrong replaces
stylesXml = stylesXml.replace(
`name="Theme.SplashScreen"`,
`name="AppTheme.NoActionBar"`,
);
stylesXml = stylesXml.replace(
`name="Theme.SplashScreenLaunch"`,
`name="AppTheme.NoActionBarLaunch"`,
);

writeFileSync(stylePath, stylesXml);
}

0 comments on commit 471feed

Please sign in to comment.