Some checks failed
build-apk / build (push) Failing after 10m45s
- .forgejo/workflows/build-apk.yml (Forgejo's location): on v* tag, build signed APK using the Actions secrets and publish via the Forgejo API (curl + auto token), no external action. Best-effort NDK install for the RN version. - Remove the old .gitea workflow to avoid double runs. - Bump app version to 0.1.1. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
28 lines
877 B
TypeScript
28 lines
877 B
TypeScript
import React, { useEffect } from 'react';
|
|
import { StatusBar } from 'expo-status-bar';
|
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
import { AuthProvider } from '@/auth/AuthContext';
|
|
import { ThemeProvider } from '@/theme/ThemeContext';
|
|
import { RootNavigator } from '@/navigation/RootNavigator';
|
|
import { ps } from '@/api/client';
|
|
import { initFileLogging } from '@/features/diagnostics/fileLogger';
|
|
|
|
export default function App() {
|
|
// Restore the file-logging preference; if on, also turn on request logging.
|
|
useEffect(() => {
|
|
void initFileLogging().then((on) => {
|
|
if (on) ps.setLogRequests(true);
|
|
});
|
|
}, []);
|
|
|
|
return (
|
|
<SafeAreaProvider>
|
|
<ThemeProvider>
|
|
<AuthProvider>
|
|
<RootNavigator />
|
|
<StatusBar style="auto" />
|
|
</AuthProvider>
|
|
</ThemeProvider>
|
|
</SafeAreaProvider>
|
|
);
|
|
}
|