Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions mobile-app/app.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const fs = require('fs');
const path = require('path');

module.exports = ({ config }) => {
let version = config.version;
try {
version = fs
.readFileSync(path.join(__dirname, '..', 'VERSION'), 'utf8')
.trim();
} catch {
// keep app.json's version as a fallback
}
return { ...config, version };
};
1 change: 1 addition & 0 deletions mobile-app/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module.exports = [
'.expo/**',
'dist/**',
'web-build/**',
'app.config.js',
'babel.config.js',
'metro.config.js',
'eslint.config.js',
Expand Down
1 change: 1 addition & 0 deletions mobile-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@shopify/flash-list": "^2.3.1",
"expo": "~54.0.10",
"expo-camera": "~17.0.10",
"expo-constants": "~18.0.9",
"expo-dev-client": "~6.0.12",
"expo-file-system": "~19.0.21",
"expo-haptics": "~15.0.8",
Expand Down
4 changes: 3 additions & 1 deletion mobile-app/src/screens/SettingsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
TextInput,
View,
} from 'react-native';
import Constants from 'expo-constants';
import { Focusable } from '../components/Focusable';
import { SafeAreaView } from 'react-native-safe-area-context';
import GoBridge from '../GoServerBridgeJSI';
Expand Down Expand Up @@ -424,6 +425,7 @@ export function SettingsScreen() {

<Card>
<CardTitle>App</CardTitle>
<Row label="Version" value={Constants.expoConfig?.version ?? 'unknown'} />
<Row label="Platform" value={`${Platform.OS} ${Platform.Version}`} />
<Row label="Package" value="com.siddarthkay.syncup" mono />
</Card>
Expand Down Expand Up @@ -590,7 +592,7 @@ export function SettingsScreen() {
<View style={{ flex: 1, paddingRight: 12 }}>
<Text style={styles.switchLabel}>Continuous background sync</Text>
<Text style={styles.switchHint}>
Off by default. When on, SyncUp keeps syncing while backgrounded instead of only in the brief windows iOS normally allows, closer to how it behaves on Android. Uses noticeably more battery, since the sync engine and network stay awake continuously.
Off by default. When on, SyncUp keeps syncing while backgrounded instead of only in the brief windows iOS normally allows. Uses noticeably more battery.
</Text>
</View>
<Switch
Expand Down
1 change: 1 addition & 0 deletions mobile-app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10444,6 +10444,7 @@ __metadata:
eslint-plugin-unused-imports: "npm:^4.4.1"
expo: "npm:~54.0.10"
expo-camera: "npm:~17.0.10"
expo-constants: "npm:~18.0.9"
expo-dev-client: "npm:~6.0.12"
expo-file-system: "npm:~19.0.21"
expo-haptics: "npm:~15.0.8"
Expand Down
Loading