Skip to content

Commit

Permalink
Merge pull request #59 from himanshu8443/main
Browse files Browse the repository at this point in the history
update 2.2.2
  • Loading branch information
Zenda-Cross authored Jul 30, 2024
2 parents da2f4c3 + 85e160d commit 3ddd807
Show file tree
Hide file tree
Showing 70 changed files with 1,735 additions and 605 deletions.
6 changes: 3 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ android {
applicationId "com.vega"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 43
versionName "2.2.0"
versionCode 45
versionName "2.2.2"
}
signingConfigs {
release {
Expand Down Expand Up @@ -140,7 +140,7 @@ android {
// on below line we are replacing our previous name with our app name.
newName = newName.replace("app-", "$project.ext.appName-")
// on below line we are replacing -release with our formatted date.
newName = newName.replace("-release", "-release-" + version )
newName = newName.replace("-release", "-v" + version )
// at last we are setting our apk name to it.
output.outputFileName = newName
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
</adaptive-icon>
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
67 changes: 58 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vega",
"version": "2.2.0",
"version": "2.2.2",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand All @@ -11,10 +11,12 @@
},
"dependencies": {
"@8man/react-native-media-console": "^2.2.4",
"@dominicvonk/react-native-apk-installer": "^2.2.2",
"@notifee/react-native": "^7.8.2",
"@react-navigation/bottom-tabs": "^6.5.20",
"@react-navigation/native": "^6.1.17",
"@react-navigation/native-stack": "^6.9.26",
"@shopify/flash-list": "^1.7.0",
"axios": "^1.6.8",
"babel-plugin-module-resolver": "^5.0.2",
"cheerio": "^1.0.0-rc.12",
Expand Down Expand Up @@ -42,7 +44,7 @@
"react-native-screens": "^3.31.1",
"react-native-shared-group-preferences": "^1.1.24",
"react-native-svg": "15.2.0",
"react-native-video": "^6.3.0",
"react-native-video": "^6.4.3",
"react-native-webview": "13.8.6",
"zustand": "^4.5.2"
},
Expand Down
107 changes: 47 additions & 60 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ import 'react-native-gesture-handler';
import WebView from './screens/WebView';
import SearchResults from './screens/SearchResults';
import * as SystemUI from 'expo-system-ui';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import DisableProviders from './screens/settings/DisableProviders';
import {Alert, Linking} from 'react-native';
import pkg from '../package.json';
import About from './screens/settings/About';
import About, {checkForUpdate} from './screens/settings/About';
import {MMKV} from './lib/Mmkv';
import BootSplash from 'react-native-bootsplash';
import {enableFreeze, enableScreens} from 'react-native-screens';

enableScreens(true);
enableFreeze(true);

export type HomeStackParamList = {
Home: undefined;
Expand Down Expand Up @@ -75,9 +76,9 @@ const App = () => {
<HomeStack.Navigator
screenOptions={{
headerShown: false,
headerBlurEffect: 'light',
headerTintColor: 'tomato',
headerStyle: {backgroundColor: '#171717'},
animation: 'ios',
animationDuration: 200,
freezeOnBlur: true,
}}>
<HomeStack.Screen name="Home" component={Home} />
<HomeStack.Screen name="Info" component={Info} />
Expand All @@ -92,9 +93,9 @@ const App = () => {
<SearchStack.Navigator
screenOptions={{
headerShown: false,
headerBlurEffect: 'light',
headerTintColor: 'tomato',
headerStyle: {backgroundColor: '#171717'},
animation: 'ios',
animationDuration: 200,
freezeOnBlur: true,
}}>
<SearchStack.Screen name="Search" component={Search} />
<SearchStack.Screen name="ScrollList" component={ScrollList} />
Expand All @@ -109,9 +110,9 @@ const App = () => {
<WatchListStack.Navigator
screenOptions={{
headerShown: false,
headerBlurEffect: 'light',
headerTintColor: 'tomato',
headerStyle: {backgroundColor: '#171717'},
animation: 'ios',
animationDuration: 200,
freezeOnBlur: true,
}}>
<WatchListStack.Screen name="WatchList" component={WatchList} />
<WatchListStack.Screen name="Info" component={Info} />
Expand All @@ -124,9 +125,9 @@ const App = () => {
<SettingsStack.Navigator
screenOptions={{
headerShown: false,
headerBlurEffect: 'light',
headerTintColor: 'tomato',
headerStyle: {backgroundColor: '#171717'},
animation: 'ios',
animationDuration: 200,
freezeOnBlur: true,
}}>
<SettingsStack.Screen name="Settings" component={Settings} />
<SettingsStack.Screen
Expand Down Expand Up @@ -206,56 +207,42 @@ const App = () => {
}

useEffect(() => {
const checkForUpdate = async () => {
try {
const res = await fetch(
'https://api.github.com/repos/Zenda-Cross/vega-app/releases/latest',
);
const data = await res.json();
if (data.tag_name.replace('v', '') !== pkg.version) {
const url = data.html_url;
Alert.alert('Update', data.body, [
{text: 'Cancel'},
{text: 'Update', onPress: () => Linking.openURL(url)},
]);
console.log('version', data.tag_name.replace('v', ''), pkg.version);
}
} catch (error) {
console.log('Update error', error);
}
};
if (MMKV.getBool('autoCheckUpdate') !== false) {
checkForUpdate();
checkForUpdate(() => {}, MMKV.getBool('autoDownload') || false);
}
}, []);

return (
<SafeAreaProvider>
<NavigationContainer
onReady={() => BootSplash.hide({fade: true})}
theme={{
dark: true,
colors: {
background: 'black',
card: 'black',
primary: 'tomato',
text: 'white',
border: 'black',
notification: 'tomato',
},
<NavigationContainer
onReady={() => BootSplash.hide({fade: true})}
theme={{
dark: true,
colors: {
background: 'black',
card: 'black',
primary: 'tomato',
text: 'white',
border: 'black',
notification: 'tomato',
},
}}>
<Stack.Navigator
screenOptions={{
headerShown: false,
headerBlurEffect: 'light',
headerTintColor: 'tomato',
headerStyle: {backgroundColor: '#171717'},
}}>
<Stack.Navigator
screenOptions={{
headerShown: false,
headerBlurEffect: 'light',
headerTintColor: 'tomato',
headerStyle: {backgroundColor: '#171717'},
}}>
<Stack.Screen name="TabStack" component={TabStack} />
<Stack.Screen name="Player" component={Player} />
</Stack.Navigator>
</NavigationContainer>
</SafeAreaProvider>
<Stack.Screen name="TabStack" component={TabStack} />
<Stack.Screen
options={{
orientation: 'landscape',
}}
name="Player"
component={Player}
/>
</Stack.Navigator>
</NavigationContainer>
);
};

Expand Down
Loading

0 comments on commit 3ddd807

Please sign in to comment.