|
1 | | -import { AndroidSolidIcon, CodeSolidIcon, GithubSolidIcon } from '@assets/icons/icons' |
| 1 | +import { AndroidSolidIcon, GithubSolidIcon } from '@assets/icons/icons' |
2 | 2 | import BackHeader from '@components/BackHeader' |
3 | 3 | import Btn from '@components/Button' |
4 | 4 | import { Gap12 } from '@components/Gap' |
5 | 5 | import RoundedIcon from '@components/RoundedIcon' |
6 | 6 | import { SettGroup, SettOption, SettText, SettWrapper } from '@components/Settings' |
7 | 7 | import type { RouteProp } from '@react-navigation/native' |
8 | | -import { GITHUB_LATEST_RELEASE, GITHUB_REPO, LATEST_APK_FILE } from '@utils/constants' |
| 8 | +import { GITHUB_LATEST_RELEASE, GITHUB_REPO } from '@utils/constants' |
9 | 9 | import type { StackNav } from '@utils/types' |
10 | 10 | import React, { useEffect } from 'react' |
11 | 11 | import { BackHandler, Linking, ToastAndroid, View } from 'react-native' |
@@ -69,27 +69,21 @@ export default function ForceUpdate({ |
69 | 69 | <UpdateAvailableUI version={version} size={size} whatsNew={whatsNew} /> |
70 | 70 | </View> |
71 | 71 | <View className='mt-2 px-10'> |
72 | | - <Btn title='Download Update' onPress={() => Linking.openURL(LATEST_APK_FILE)} /> |
| 72 | + <Btn title='Download Update' onPress={() => Linking.openURL(GITHUB_LATEST_RELEASE)} /> |
73 | 73 | </View> |
74 | 74 | <SettGroup title='Download Options' className='mt-3'> |
75 | 75 | <SettOption |
76 | 76 | title='Download From Github' |
77 | | - Icon={<RoundedIcon Icon={GithubSolidIcon} className='bg-black' />} |
| 77 | + Icon={<RoundedIcon Icon={AndroidSolidIcon} className='bg-green-500' />} |
78 | 78 | arrow |
79 | 79 | onPress={() => Linking.openURL(GITHUB_LATEST_RELEASE)} |
80 | 80 | /> |
81 | 81 | <SettOption |
82 | 82 | title='Source on Github' |
83 | | - Icon={<RoundedIcon Icon={CodeSolidIcon} className='bg-accent' />} |
| 83 | + Icon={<RoundedIcon Icon={GithubSolidIcon} className='bg-black' />} |
84 | 84 | onPress={() => Linking.openURL(GITHUB_REPO)} |
85 | 85 | arrow |
86 | 86 | /> |
87 | | - <SettOption |
88 | | - title='Download APK' |
89 | | - Icon={<RoundedIcon Icon={AndroidSolidIcon} className='bg-green-500' />} |
90 | | - arrow |
91 | | - onPress={() => Linking.openURL(LATEST_APK_FILE)} |
92 | | - /> |
93 | 87 | </SettGroup> |
94 | 88 | <SettText> |
95 | 89 | Download size may vary. The Download Now button will redirect you to the GitHub and you can download the |
|
0 commit comments