Skip to content

Commit 502cd41

Browse files
committed
fixed merge conflicts
2 parents 5327d46 + 0bd25c6 commit 502cd41

10 files changed

Lines changed: 12 additions & 7 deletions

File tree

app.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@
99
"userInterfaceStyle": "light",
1010
"newArchEnabled": true,
1111
"splash": {
12-
"image": "./assets/splash-icon.png",
12+
"image": "./assets/app_icons/splash-icon.png",
1313
"resizeMode": "contain",
1414
"backgroundColor": "#ffffff"
1515
},
1616
"ios": {
17-
"supportsTablet": true
17+
"supportsTablet": true,
18+
"icon": {
19+
"dark": "./assets/app_icons/ios-dark.png",
20+
"light": "./assets/app_icons/ios-light.png"
21+
}
1822
},
1923
"plugins": [
2024
[
@@ -31,8 +35,8 @@
3135
],
3236
"android": {
3337
"adaptiveIcon": {
34-
"foregroundImage": "./assets/adaptive-icon.png",
35-
"backgroundColor": "#ffffff"
38+
"foregroundImage": "./assets/app_icons/adaptive-icon.png",
39+
"backgroundColor": "#1C2435"
3640
},
3741
"edgeToEdgeEnabled": true,
3842
"permissions": [

assets/adaptive-icon.png

-17.1 KB
Binary file not shown.

assets/app_icons/adaptive-icon.png

131 KB
Loading

assets/app_icons/ios-dark.png

389 KB
Loading

assets/app_icons/ios-light.png

396 KB
Loading

assets/app_icons/splash-icon.png

188 KB
Loading

assets/home_icon.png

691 KB
Loading

assets/icon.png

-708 KB
Binary file not shown.

assets/splash-icon.png

-17.1 KB
Binary file not shown.

components/InputComponent.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function InputComponent({ addMessage }) {
3030
} = useAudioRecorder({
3131
logger: console,
3232
})
33-
33+
3434
/**
3535
* Reads the callsign from the filesystem.
3636
* @returns {string} - The callsign read from the file, or an empty string if the callsign has less than 3 characters.
@@ -44,6 +44,7 @@ export default function InputComponent({ addMessage }) {
4444
return callSign.length === 3 ? callSign : "";
4545
} catch (error) {
4646
console.error("Error reading callsign from file:", error);
47+
return "";
4748
}
4849
}
4950

@@ -61,7 +62,7 @@ export default function InputComponent({ addMessage }) {
6162
// This is done to ensure that the callsign is not displayed in the input field.
6263
const callSign = await readCallsignFromFile();
6364
const displayText = encodeText.trim().toUpperCase();
64-
const morseText = callSign.length? "@" + callSign + ": " + encodeText : encodeText
65+
const morseText = callSign.length === 3 ? `@${callSign}: ${encodeText}`: encodeText;
6566
const morse = await textToMorse(morseText);
6667

6768
addMessage(displayText, morse, callSign, null, true, true);
@@ -122,7 +123,7 @@ export default function InputComponent({ addMessage }) {
122123
// If the text starts with a call sign in the format @XXX: , extract the call sign
123124
console.log(`InputComponent:handleStop: Evaluating ${text}`);
124125
if (text.match(/@[A-Z]{3}: /)) {
125-
callSign = text.substring(1,4);
126+
callSign = text.substring(1, 4);
126127
text = text.substring(6);
127128
}
128129
console.log(`Callsign: ${callSign}, Text: ${text}`);

0 commit comments

Comments
 (0)