Skip to content

Commit

Permalink
update privacy screen
Browse files Browse the repository at this point in the history
  • Loading branch information
tangimds committed Jan 24, 2025
1 parent f35d14d commit f452699
Show file tree
Hide file tree
Showing 4 changed files with 196 additions and 267 deletions.
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,4 @@ buck-out/

# google services
**/android/app/google-services.json
dist
9 changes: 5 additions & 4 deletions app/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"expo": {
"name": "Jardin Mental",
"slug": "monsuivipsy",
"version": "1.41.0",
"version": "1.41.1",
"orientation": "portrait",
"icon": "./assets/imgs/playstore-icon.png",
"scheme": "monsuivipsy",
"ios": {
"supportsTablet": true,
"bundleIdentifier": "org.reactjs.native.example.monsuivipsy",
"buildNumber": "205"
"buildNumber": "207"
},
"android": {
"versionCode": 205,
"versionCode": 206,
"adaptiveIcon": {
"foregroundImage": "./assets/imgs/logo2.png",
"backgroundColor": "#ffffff"
Expand Down Expand Up @@ -67,7 +67,8 @@
"policy": "appVersion"
},
"updates": {
"url": "https://u.expo.dev/6567f752-92f9-4452-9841-71f6dd09842f"
"url": "https://u.expo.dev/6567f752-92f9-4452-9841-71f6dd09842f",
"fallbackToCacheTimeout": 10000
}
}
}
14 changes: 9 additions & 5 deletions app/src/components/drawer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import DrawerItem from './drawer-item';
import LegalItem from './legal-item';
import localStorage from '../../utils/localStorage';
import {getBadgeNotesVersion} from '../../scenes/news';
import pck from '../../../package.json';
import Text from '../../components/MyText';
import {colors} from '../../utils/colors';
import NeedUpdateContext from '../../context/needUpdate';
import {HOST} from '../../config';
import {HOST, HMAC_SECRET} from '../../config';
import {recommendApp} from '../../utils/share';
import app from '../../../app.json';

export default ({navigation, visible, onClick}) => {
const [isVisible, setIsVisible] = useState();
Expand Down Expand Up @@ -88,10 +88,14 @@ export default ({navigation, visible, onClick}) => {
<TouchableWithoutFeedback onPress={() => setDevModeCount(p => p + 1)}>
<View style={styles.versionContainer}>
<Text style={styles.versionLabel}>
version {pck.version}
<Text style={styles.buildNumberLabel}>+{pck.buildNumber}</Text>
{Platform.OS === 'ios' ? `${app.expo.version} (${app.expo.ios.buildNumber})` : `${app.expo.version} (${app.expo.android.versionCode})`}
</Text>
{devModeCount % 5 === 0 ? <Text style={styles.versionLabel}>{HOST}</Text> : null}
{devModeCount % 5 === 0 ? (
<View>
<Text style={styles.versionLabel}>{HOST}</Text>
<Text style={styles.versionLabel}>{HMAC_SECRET ? HMAC_SECRET?.slice(-5) : 'empty'}</Text>
</View>
) : null}
</View>
</TouchableWithoutFeedback>
</ScrollView>
Expand Down
Loading

0 comments on commit f452699

Please sign in to comment.