Skip to content

Commit 3ebd6dd

Browse files
committed
Revert "Add hidden admin section: upload, edit, delete apps directly from Android app"
This reverts commit 3923dc5.
1 parent 3923dc5 commit 3ebd6dd

7 files changed

Lines changed: 6 additions & 675 deletions

File tree

AndroidApp/App.tsx

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ import {
1010
Dimensions,
1111
Animated,
1212
Easing,
13-
TouchableOpacity,
1413
} from 'react-native';
1514
import { fetchApps, AppModel } from './src/config/supabase';
1615
import { AppCard } from './src/components/AppCard';
1716
import { AppDetailsPopup } from './src/components/AppDetailsPopup';
18-
import { AdminScreen } from './src/components/AdminScreen';
1917
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
2018

2119
const { width, height } = Dimensions.get('window');
@@ -87,7 +85,6 @@ function App(): React.JSX.Element {
8785
const [refreshing, setRefreshing] = useState(false);
8886
const [selectedApp, setSelectedApp] = useState<AppModel | null>(null);
8987
const [popupVisible, setPopupVisible] = useState(false);
90-
const [adminVisible, setAdminVisible] = useState(false);
9188

9289
const loadApps = async () => {
9390
try {
@@ -130,13 +127,9 @@ function App(): React.JSX.Element {
130127
</View>
131128
<Text style={styles.title}>Zeeshan Hub</Text>
132129
</View>
133-
<TouchableOpacity
134-
style={styles.avatar}
135-
onLongPress={() => setAdminVisible(true)}
136-
delayLongPress={3000}
137-
activeOpacity={0.8}>
130+
<View style={styles.avatar}>
138131
<Text style={styles.avatarLetter}>Z</Text>
139-
</TouchableOpacity>
132+
</View>
140133
</View>
141134

142135
<View style={styles.sectionRow}>
@@ -196,12 +189,6 @@ function App(): React.JSX.Element {
196189
visible={popupVisible}
197190
onClose={closePopup}
198191
/>
199-
200-
<AdminScreen
201-
visible={adminVisible}
202-
onClose={() => setAdminVisible(false)}
203-
onRefresh={() => { onRefresh(); }}
204-
/>
205192
</View>
206193
);
207194
}

AndroidApp/package-lock.json

Lines changed: 3 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidApp/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"@supabase/supabase-js": "^2.98.0",
1616
"react": "19.2.3",
1717
"react-native": "0.84.0",
18-
"react-native-document-picker": "^9.3.1",
1918
"react-native-file-viewer": "^2.1.5",
2019
"react-native-fs": "^2.20.0",
2120
"react-native-intent-launcher": "^0.2.1",
@@ -35,7 +34,6 @@
3534
"@react-native/metro-config": "0.84.0",
3635
"@react-native/typescript-config": "0.84.0",
3736
"@types/jest": "^29.5.13",
38-
"@types/node": "^25.5.0",
3937
"@types/react": "^19.2.0",
4038
"@types/react-native-vector-icons": "^6.4.18",
4139
"@types/react-test-renderer": "^19.1.0",

0 commit comments

Comments
 (0)