Skip to content

Commit 3531e75

Browse files
Copilot0xrinegade
andcommitted
Fix Android build workflow: reorder Gradle caching and fix compilation errors
Co-authored-by: 0xrinegade <[email protected]>
1 parent 89a00c0 commit 3531e75

File tree

7 files changed

+19
-28
lines changed

7 files changed

+19
-28
lines changed

.github/workflows/build-android.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,6 @@ jobs:
5050
restore-keys: |
5151
${{ runner.os }}-yarn-
5252
53-
- name: Cache Gradle packages
54-
uses: actions/cache@v4
55-
with:
56-
path: |
57-
~/.gradle/caches
58-
~/.gradle/wrapper
59-
android/.gradle
60-
android/app/.gradle
61-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
62-
restore-keys: |
63-
${{ runner.os }}-gradle-
64-
6553
- name: Install dependencies
6654
run: yarn install --frozen-lockfile
6755

@@ -70,7 +58,7 @@ jobs:
7058

7159
- name: Initialize Capacitor (if not exists)
7260
run: |
73-
if [ ! -d "android" ]; then
61+
if [ ! -d "android" ] && [ ! -f "capacitor.config.ts" ]; then
7462
npx cap init "SVMSeek Wallet" "com.svmseek.wallet" --web-dir=build
7563
fi
7664
@@ -80,6 +68,18 @@ jobs:
8068
npx cap add android
8169
fi
8270
71+
- name: Cache Gradle packages
72+
uses: actions/cache@v4
73+
with:
74+
path: |
75+
~/.gradle/caches
76+
~/.gradle/wrapper
77+
android/.gradle
78+
android/app/.gradle
79+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
80+
restore-keys: |
81+
${{ runner.os }}-gradle-
82+
8383
- name: Sync Capacitor
8484
run: npx cap sync android
8585

src/components/AEANetwork/components/PaginationControls.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import {
1212
useTheme,
1313
} from '@mui/material';
1414
import {
15-
ChevronLeft,
16-
ChevronRight,
1715
FirstPage,
1816
LastPage,
1917
} from '@mui/icons-material';

src/components/AEANetwork/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useEffect, useCallback } from 'react';
1+
import React, { useState, useEffect } from 'react';
22
import styled from 'styled-components';
33
import {
44
Box,
@@ -20,15 +20,12 @@ import {
2020
Add as AddIcon,
2121
} from '@mui/icons-material';
2222
import { PublicKey } from '@solana/web3.js';
23-
import { useWallet } from '../../utils/wallet';
2423
import { useConnection } from '../../utils/connection';
2524
import { GlassContainer } from '../GlassContainer';
2625
import {
2726
SolanaAIRegistriesClient,
2827
Agent,
2928
MCPServer,
30-
AgentBuilder,
31-
MCPServerBuilder
3229
} from '../../integration/aeamcp-simple';
3330

3431
// Import new subcomponents
@@ -85,8 +82,7 @@ export const AEANetworkInterface: React.FC<AEANetworkInterfaceProps> = ({ isActi
8582
const [dialogType, setDialogType] = useState<'agent' | 'mcp'>('agent');
8683
const [selectedItem, setSelectedItem] = useState<Agent | MCPServer | null>(null);
8784

88-
const { wallet } = useWallet();
89-
const { connection } = useConnection();
85+
const connection = useConnection();
9086

9187
// Filter items based on search query
9288
const filteredAgents = agents.filter(agent =>

src/components/WebBrowser/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useRef, useEffect, useCallback } from 'react';
1+
import React, { useState, useRef, useEffect } from 'react';
22
import styled from 'styled-components';
33
import {
44
IconButton,
@@ -26,7 +26,6 @@ import { GlassContainer } from '../GlassContainer';
2626
import { useWallet } from '../../utils/wallet';
2727
import ErrorBoundary, { NetworkErrorBoundary } from '../ErrorBoundary';
2828
import { WalletInjectionService } from '../../services/WalletInjectionService';
29-
import { createInputProps, ValidationPresets } from '../../utils/inputValidation';
3029

3130
const BrowserContainer = styled(GlassContainer)`
3231
height: 100%;
@@ -310,8 +309,6 @@ export const WebBrowser: React.FC<WebBrowserProps> = ({ isActive = true }) => {
310309
}
311310
};
312311

313-
};
314-
315312
const handleKeyPress = (event: React.KeyboardEvent) => {
316313
if (event.key === 'Enter') {
317314
navigateToUrl(inputUrl);

src/services/SolanaRPCService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Real Solana RPC service for fetching live blockchain data
33
*/
4-
import { Connection, PublicKey, ParsedAccountData, ConfirmedSignatureInfo } from '@solana/web3.js';
4+
import { Connection, PublicKey, ParsedAccountData } from '@solana/web3.js';
55

66
export interface NetworkStats {
77
blocksProcessed: number;

src/utils/encryption.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { pbkdf2 } from 'crypto-browserify';
22
import { randomBytes, secretbox } from 'tweetnacl';
33
import bs58 from 'bs58';
4-
import scrypt from 'scrypt-js';
4+
import { scrypt } from 'scrypt-js';
55
import argon2 from 'argon2-browser';
66

77
/**

src/utils/urlSanitizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function isPrivateIP(hostname: string): boolean {
103103
const match = hostname.match(ipv4Pattern);
104104

105105
if (match) {
106-
const [, a, b, c, d] = match.map(Number);
106+
const [, a, b] = match.map(Number);
107107

108108
// 10.0.0.0/8
109109
if (a === 10) return true;

0 commit comments

Comments
 (0)