Mobile Project Setup
Initial Verification
-
Consult Felipe to check the template status and ensure all libraries are updated.
-
Replace all occurrences of
workspace:*
in thepackage.json
with the latest versions from the template.
Theme Configuration
-
Request the necessary files from the design team:
BaseColors/GlobalColors.json
ContextColors.json
Measures.json
-
Replace these files in the
theme
folder and updatecodeleapcli.config.json
if necessary. -
Run the command:
bun codeleap configure-theme
-
Some changes may occur in the
styles
folder, especially in themeasures.ts
, such as changes in variable names or values, review the components that use these variables. -
Review the colors, as some may have changed. Perform a quick check to identify visual differences in the project.
Splash Screen Configuration
-
Obtain the required files:
- App logo:
1195 x 400
- Splash background:
2048 x 2048
- App logo:
-
Edit
package.json
and update the script arguments forsplash:generate
with the correct logo file path and splash background color. -
Run the commands:
When running these commands, check the project's iOS folder, a new BootSplashLogo.imageset file will possibly be generated, just remove the old one if this is the case.
bun run splash:generate
bun codeleap configure-splash -
Adjust the colors on Android:
- In
android/app/src/main/res/values/styles.xml
, update thecolorControlActivated
variable to the correct color. - In
android/app/src/main/res/values/colors.xml
, adjust the colors as needed.
- In
App Icon Configuration
-
Generate the icons using the tool:
-
Replace the generated files in the respective iOS and Android folders. The file names are already correct, so just copy and paste them.
Android Notification Icon Configuration
-
Generate the notification icons using the tool:
-
Replace the generated files in the Android folders.
Removing Unnecessary Files
- Access the
assets/images
folder and remove all unused images to reduce the project's bundle size.
Expo Project Configuration
...