Skip to content

Commit b8c85d0

Browse files
committed
chore: Update app configuration and deployment settings
- Change splash and adaptive icon background color to brand blue (#2E3192) - Update iOS and Android app identifiers - Add GitHub repository URL - Set app privacy to public - Increment version and build numbers - Configure background modes for iOS
1 parent 86fdeab commit b8c85d0

File tree

8 files changed

+95
-9
lines changed

8 files changed

+95
-9
lines changed

app.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,31 @@
1010
"splash": {
1111
"image": "./assets/splash.png",
1212
"resizeMode": "contain",
13-
"backgroundColor": "#ffffff"
13+
"backgroundColor": "#2E3192"
1414
},
1515
"assetBundlePatterns": [
1616
"**/*"
1717
],
1818
"ios": {
1919
"supportsTablet": true,
20+
"bundleIdentifier": "com.yourcompany.emfradiationdetector",
21+
"buildNumber": "3",
2022
"infoPlist": {
2123
"NSMagnetometerUsageDescription": "This app uses the magnetometer to detect EMF radiation levels in your environment.",
24+
"UIBackgroundModes": [
25+
"fetch",
26+
"fetch"
27+
],
2228
"ITSAppUsesNonExemptEncryption": false
23-
},
24-
"bundleIdentifier": "com.retainr.io.emfradiationdetectorapp"
29+
}
2530
},
2631
"android": {
2732
"adaptiveIcon": {
2833
"foregroundImage": "./assets/adaptive-icon.png",
29-
"backgroundColor": "#ffffff"
34+
"backgroundColor": "#2E3192"
3035
},
36+
"package": "com.yourcompany.emfradiationdetector",
37+
"versionCode": 3,
3138
"permissions": [
3239
"android.permission.VIBRATE"
3340
]
@@ -51,6 +58,8 @@
5158
]
5259
],
5360
"description": "An app to detect and monitor EMF radiation in your environment.",
61+
"privacy": "public",
62+
"githubUrl": "https://github.com/pH-7/WaveGuard-EMF-Radiation-Detector-App",
5463
"extra": {
5564
"eas": {
5665
"projectId": "27414b8e-d50e-4afe-bb7c-08e6de2aa227"

assets/adaptive-icon.png

85.5 KB
Loading

assets/favicon.png

-914 Bytes
Loading

assets/icon.png

80.8 KB
Loading

assets/notification-icon.png

562 Bytes
Loading

assets/splash.png

222 KB
Loading

eas.json

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,36 @@
11
{
22
"cli": {
3-
"version": ">= 15.0.14",
3+
"version": ">= 3.8.1",
44
"appVersionSource": "remote"
55
},
66
"build": {
77
"development": {
88
"developmentClient": true,
9-
"distribution": "internal"
9+
"distribution": "internal",
10+
"ios": {
11+
"resourceClass": "m-medium"
12+
}
1013
},
1114
"preview": {
12-
"distribution": "internal"
15+
"distribution": "internal",
16+
"ios": {
17+
"resourceClass": "m-medium"
18+
}
1319
},
1420
"production": {
15-
"autoIncrement": true
21+
"autoIncrement": true,
22+
"ios": {
23+
"resourceClass": "m-medium"
24+
}
1625
}
1726
},
1827
"submit": {
19-
"production": {}
28+
"production": {
29+
"ios": {
30+
"appleId": "YOUR_APPLE_ID_HERE",
31+
"ascAppId": "YOUR_APP_STORE_CONNECT_APP_ID_HERE",
32+
"appleTeamId": "YOUR_APPLE_TEAM_ID_HERE"
33+
}
34+
}
2035
}
2136
}

generate-splash.sh

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#!/bin/bash
2+
3+
# Script to generate a beautiful splash screen for the EMF Radiation Detector app
4+
echo "Generating splash screen for EMF Radiation Detector app..."
5+
6+
# Make sure the assets directory exists
7+
mkdir -p assets
8+
9+
# Check if ImageMagick is installed
10+
if ! command -v convert &> /dev/null; then
11+
echo "Error: ImageMagick is required but not installed."
12+
echo "Please install ImageMagick and try again."
13+
echo "On macOS: brew install imagemagick"
14+
echo "On Ubuntu: sudo apt-get install imagemagick"
15+
exit 1
16+
fi
17+
18+
# Ensure the logo.svg exists
19+
if [ ! -f "src/assets/logo.svg" ]; then
20+
echo "Error: Logo file not found at src/assets/logo.svg"
21+
exit 1
22+
fi
23+
24+
echo "Creating splash screen background..."
25+
# Create a gradient background (blue to light blue, matches the logo)
26+
convert -size 2048x2048 gradient:"#2E3192-#1BFFFF" assets/splash_bg.png
27+
28+
echo "Processing logo for splash screen..."
29+
# Convert the SVG logo to PNG with transparency
30+
convert -background none -size 1024x1024 src/assets/logo.svg assets/logo_for_splash.png
31+
32+
echo "Combining background and logo..."
33+
# Overlay the logo on the background
34+
convert assets/splash_bg.png -gravity center assets/logo_for_splash.png -composite assets/splash.png
35+
36+
# Clean up temporary files
37+
rm assets/splash_bg.png assets/logo_for_splash.png
38+
39+
echo "Splash screen created successfully at assets/splash.png!"
40+
echo "Size: $(identify -format '%wx%h' assets/splash.png) pixels"
41+
42+
# Also generate icon while we're at it
43+
echo "Generating app icon..."
44+
convert -background none -size 1024x1024 src/assets/logo.svg assets/icon.png
45+
echo "App icon created successfully at assets/icon.png!"
46+
47+
# Generate adaptive icon for Android
48+
echo "Generating adaptive icon for Android..."
49+
convert -background none -size 1024x1024 src/assets/logo.svg assets/adaptive-icon.png
50+
echo "Adaptive icon created successfully at assets/adaptive-icon.png!"
51+
52+
# Generate favicon
53+
echo "Generating favicon..."
54+
convert -background none -size 64x64 src/assets/logo.svg assets/favicon.png
55+
echo "Favicon created successfully at assets/favicon.png!"
56+
57+
# Generate notification icon
58+
echo "Generating notification icon..."
59+
convert -background none -size 96x96 src/assets/logo.svg assets/notification-icon.png
60+
echo "Notification icon created successfully at assets/notification-icon.png!"
61+
62+
echo "All app assets have been generated successfully!"

0 commit comments

Comments
 (0)