Skip to content

Commit 5748c8d

Browse files
authored
Merge pull request #9 from openSVM/copilot/fix-8
Comprehensive React 19 upgrade with MUI v7 compatibility, dynamic theming, production deployment fixes, and Android build compatibility
2 parents a865120 + 855f1ba commit 5748c8d

File tree

212 files changed

+23347
-37846
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+23347
-37846
lines changed

.env.netlify

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Netlify environment configuration
2+
# This file defines environment variables and build settings for Netlify deployment
3+
4+
# Build configuration
5+
NODE_VERSION=20.18.0
6+
YARN_VERSION=1.22.22
7+
8+
# React build configuration
9+
GENERATE_SOURCEMAP=false
10+
INLINE_RUNTIME_CHUNK=true
11+
12+
# Wallet application configuration
13+
REACT_APP_NETWORK=mainnet-beta
14+
REACT_APP_CLUSTER=mainnet-beta
15+
16+
# API endpoints (can be overridden in Netlify dashboard)
17+
REACT_APP_SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
18+
REACT_APP_SOLANA_WS_URL=wss://api.mainnet-beta.solana.com
19+
20+
# Feature flags
21+
REACT_APP_ENABLE_AI_CHAT=true
22+
REACT_APP_ENABLE_EXPLORER=true
23+
REACT_APP_ENABLE_EXTENSIONS=false
24+
25+
# Performance optimizations
26+
REACT_APP_ENABLE_SERVICE_WORKER=true
27+
REACT_APP_ENABLE_PWA=true
28+
29+
# Build optimizations for Netlify
30+
CI=false
31+
NODE_OPTIONS=--max-old-space-size=4096
32+
33+
# Security settings
34+
REACT_APP_ENABLE_ANALYTICS=false
35+
REACT_APP_ENABLE_ERROR_REPORTING=true
36+
37+
# Build environment
38+
PUBLIC_URL=/
39+
40+
# Netlify-specific optimizations
41+
NETLIFY_SKIP_CLEANUP=true

.env.production

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Production environment configuration for SVMSeek Wallet
2+
3+
# React build configuration
4+
GENERATE_SOURCEMAP=false
5+
INLINE_RUNTIME_CHUNK=true
6+
7+
# Application configuration
8+
REACT_APP_NETWORK=mainnet-beta
9+
REACT_APP_CLUSTER=mainnet-beta
10+
11+
# API endpoints
12+
REACT_APP_SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
13+
REACT_APP_SOLANA_WS_URL=wss://api.mainnet-beta.solana.com
14+
15+
# Feature flags
16+
REACT_APP_ENABLE_AI_CHAT=true
17+
REACT_APP_ENABLE_EXPLORER=true
18+
REACT_APP_ENABLE_EXTENSIONS=false
19+
20+
# Performance settings
21+
REACT_APP_ENABLE_SERVICE_WORKER=true
22+
REACT_APP_ENABLE_PWA=true
23+
24+
# Security settings
25+
REACT_APP_ENABLE_ANALYTICS=false
26+
REACT_APP_ENABLE_ERROR_REPORTING=true
27+
28+
# Build environment
29+
PUBLIC_URL=/

.github/workflows/build-all-platforms.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
uses: actions/setup-java@v4
8686
with:
8787
distribution: 'temurin'
88-
java-version: '17'
88+
java-version: '21'
8989

9090
- name: Install dependencies
9191
run: |
@@ -228,7 +228,7 @@ jobs:
228228
uses: actions/setup-java@v4
229229
with:
230230
distribution: 'temurin'
231-
java-version: '17'
231+
java-version: '21'
232232

233233
- name: Install dependencies
234234
run: |

.github/workflows/build-android.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ jobs:
4242
for i in 1 2 3; do
4343
yarn install --frozen-lockfile && break || sleep 10
4444
done
45-
45+
46+
- name: Verify craco installation
47+
run: |
48+
echo "Checking craco installation..."
49+
yarn list @craco/craco
50+
echo "Checking if craco command is available..."
51+
npx craco --version || echo "Craco not found via npx"
52+
4653
- name: Build web application
4754
run: yarn build
4855

@@ -74,13 +81,13 @@ jobs:
7481
uses: actions/setup-java@v4
7582
with:
7683
distribution: 'temurin'
77-
java-version: '17'
84+
java-version: '21'
7885

7986
- name: Setup Android SDK
8087
uses: android-actions/setup-android@v3
8188
with:
82-
api-level: 34
83-
build-tools: 34.0.0
89+
api-level: 35
90+
build-tools: 35.0.0
8491

8592
- name: Cache Gradle packages
8693
uses: actions/cache@v4

0 commit comments

Comments
 (0)