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 committed 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
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.