mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
Add iOS privacy purpose strings and version display
- Add descriptive purpose strings for camera, photo library, and microphone - Display app version and build number on profile screen - Add email redirect URL for sign-up flow - Update Android OAuth client configurations 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
1 parent
1f0201ec5f
commit
314745c6cb
7 files changed
+152
-57
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import React from 'react';
|
||||
import { View, Text, StyleSheet, ScrollView, TouchableOpacity, useWindowDimensions, Platform, Alert } from 'react-native';
|
||||
import { Ionicons } from '@expo/vector-icons';
|
||||
import Constants from 'expo-constants';
|
||||
import Animated, {
|
||||
FadeInDown,
|
||||
useSharedValue,
|
||||
@@ -69,6 +70,15 @@ export function ProfileScreen() {
|
||||
});
|
||||
};
|
||||
|
||||
// Version info
|
||||
const version = Constants.expoConfig?.version ?? '1.0.0';
|
||||
const buildNumber = Platform.select({
|
||||
ios: Constants.expoConfig?.ios?.buildNumber,
|
||||
android: Constants.expoConfig?.android?.versionCode?.toString(),
|
||||
default: undefined,
|
||||
});
|
||||
const versionString = buildNumber ? `v${version} (${buildNumber})` : `v${version}`;
|
||||
|
||||
// Scroll animation
|
||||
const scrollY = useSharedValue(0);
|
||||
const scrollHandler = useAnimatedScrollHandler({
|
||||
@@ -374,7 +384,7 @@ export function ProfileScreen() {
|
||||
>
|
||||
<View style={styles.versionBadge}>
|
||||
<Ionicons name="heart" size={12} color={featureColors.profile.accent} />
|
||||
<Text style={styles.version}>Sauci v1.0.0</Text>
|
||||
<Text style={styles.version}>Sauci {versionString}</Text>
|
||||
</View>
|
||||
</Animated.View>
|
||||
|
||||
|
||||
Reference in new issue
Block a user