Skip to content

Commit

Permalink
upgrade: upgrade to expo sdk 52 add pip in app and adapt style of mul…
Browse files Browse the repository at this point in the history
…tiple screen with more local account features (#36)
  • Loading branch information
Duell10111 authored Jan 9, 2025
1 parent 2cbf046 commit d3ed9c5
Show file tree
Hide file tree
Showing 102 changed files with 10,476 additions and 9,631 deletions.
56 changes: 30 additions & 26 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import React from "react";
import {StatusBar, useColorScheme} from "react-native";
import FlashMessage from "react-native-flash-message";
import {GestureHandlerRootView} from "react-native-gesture-handler";
import {PaperProvider} from "react-native-paper";
import {btoa, atob} from "react-native-quick-base64";
import {SafeAreaProvider} from "react-native-safe-area-context";
import {enableFreeze} from "react-native-screens";

import AccountContextProvider from "./src/context/AccountContext";
import AppDataContextProvider from "./src/context/AppDataContext";
Expand All @@ -17,6 +16,7 @@ import YoutubeContextProvider from "./src/context/YoutubeContext";
import Navigation from "./src/navigation/Navigation";
import BackgroundWrapper from "./src/utils/BackgroundWrapper";

import {VideoProvider} from "@/components/corner-video/VideoProvider";
import {DownloaderContext} from "@/context/DownloaderContext";
import {MusicPlayerContext} from "@/context/MusicPlayerContext";
import {PlaylistManagerContext} from "@/context/PlaylistManagerContext";
Expand All @@ -37,30 +37,34 @@ const App = () => {

return (
<GestureHandlerRootView style={{flex: 1}}>
<AppStyleProvider>
<BackgroundWrapper>
<AppDataContextProvider>
<YoutubeContextProvider>
<AccountContextProvider>
<DownloaderContext>
<PlaylistManagerContext>
<MusicPlayerContext>
<StatusBar
// TODO: Currently only dark-mode exists
barStyle={
isDarkMode ? "light-content" : "light-content"
}
/>
<Navigation />
<FlashMessage position={"top"} />
</MusicPlayerContext>
</PlaylistManagerContext>
</DownloaderContext>
</AccountContextProvider>
</YoutubeContextProvider>
</AppDataContextProvider>
</BackgroundWrapper>
</AppStyleProvider>
<PaperProvider>
<AppStyleProvider>
<BackgroundWrapper>
<AppDataContextProvider>
<YoutubeContextProvider>
<AccountContextProvider>
<DownloaderContext>
<PlaylistManagerContext>
<MusicPlayerContext>
<StatusBar
// TODO: Currently only dark-mode exists
barStyle={
isDarkMode ? "light-content" : "light-content"
}
/>
<VideoProvider>
<Navigation />
</VideoProvider>
<FlashMessage position={"top"} />
</MusicPlayerContext>
</PlaylistManagerContext>
</DownloaderContext>
</AccountContextProvider>
</YoutubeContextProvider>
</AppDataContextProvider>
</BackgroundWrapper>
</AppStyleProvider>
</PaperProvider>
</GestureHandlerRootView>
);
};
Expand Down
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,22 @@ This project uses the [Youtube.js](https://github.com/LuanRT/YouTube.js) library

## Features

| Feature | Available |
|-------------------------------------------------|-------------------------------|
| Basic UI (including Channel and Playlist Views) ||
| Video Playback up until 720p ||
| 1080p playback up to 4K | ✅ (using HLS toggle) |
| Youtube Login via QR Code ||
| History Page ||
| Subscription Page ||
| Social Interactions (Like, Subscribe etc.) | ⏳(Partial support) |
| Chapter-Information | ✅ (works with non VLC Player) |
| Youtube Music Support ||
| Basic Mobile Support ||
| Apple Watch Variant (Alpha) | ⏳(Working on it) |
| Android TV Support | ❌ (UI mostly broken) |
| Feature | Available |
|-------------------------------------------------|----------------------------------------------------------|
| Basic UI (including Channel and Playlist Views) ||
| Video Playback up until 720p ||
| 1080p playback up to 4K | ✅ (using HLS toggle) |
| Youtube Login via QR Code | ❌ (Login broken because of backend changed from Youtube) |
| History Page ||
| Subscription Page ||
| Social Interactions (Like, Subscribe etc.) | ⏳(Partial support) |
| Chapter-Information | ✅ (works with non VLC Player) |
| Youtube Music Support ||
| Basic Mobile Support ||
| Apple Watch Variant (Alpha) | ⏳(Working on it) |
| Local Database Storage without login ||
| Download videos for offline usage | ⏳(Working on it) |
| Android TV Support | ❌ (UI mostly broken) |

### Building

Expand Down
14 changes: 12 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
{
"isTV": true,
"showVerboseWarnings": false,
"tvosDeploymentTarget": "13.4",
"tvosDeploymentTarget": "15.1",
"removeFlipperOnAndroid": false,
"androidTVBanner": "./assets/images/tv/tv_banner.png",
"androidTVIcon": "assets/images/tv/app_store_icon.png",
"appleTVImages": {
"icon": "./assets/images/tv/app_store_icon.png",
"iconSmall": "./assets/images/tv/app_store_icon_400.png",
Expand All @@ -50,7 +51,16 @@
"appleTeamId": "XXXXXXXXXX",
"isTV": true
}
]
],
[
"expo-splash-screen",
{
"backgroundColor": "#000000",
"image": "./assets/images/ios_icon.png",
"imageWidth": 200
}
],
"expo-sqlite"
],
"name": "reacttube",
"slug": "reacttube",
Expand Down
Loading

0 comments on commit d3ed9c5

Please sign in to comment.