Skip to content

Commit

Permalink
Merge pull request #122 from himanshu8443/feature
Browse files Browse the repository at this point in the history
enable long press download and bump version 2.4.6
  • Loading branch information
Zenda-Cross authored Sep 25, 2024
2 parents 9f2a1d1 + f9199af commit 193415b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 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 58
versionName "2.4.5"
versionCode 59
versionName "2.4.6"
}
signingConfigs {
release {
Expand Down
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
]
],
"slug": "vega",
"version": "2.4.5",
"version": "2.4.6",
"sdkVersion": "51.0.0",
"android": {
"minSdkVersion": 24,
"package": "com.vega",
"versionCode": 58
"versionCode": 59
},
"platforms": ["ios", "android"]
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vega",
"version": "2.4.5",
"version": "2.4.6",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand Down
13 changes: 8 additions & 5 deletions src/components/Downloader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ const DownloadComponent = ({
}, [downloadModal, longPressModal]);

// on holdPress external downloader
const longPressDownload = async (link: string) => {
const longPressDownload = async (link: string, type?: string) => {
try {
await IntentLauncher.startActivityAsync('android.intent.action.VIEW', {
data: link,
type: 'video/*',
type: type || 'video/*',
});
} catch (error) {
console.log(error);
Expand Down Expand Up @@ -226,16 +226,19 @@ const DownloadComponent = ({
}}
/>
{/* long press modal */}
{/* <DownloadBottomSheet
<DownloadBottomSheet
setModal={setLongPressModal}
showModal={longPressModal}
data={servers}
loading={serverLoading}
title="Select Server To Open"
onPress={(server: Stream) => {
onPressVideo={(server: Stream) => {
longPressDownload(server.link);
}}
/> */}
onPressSubs={(sub: {link: string; type: string; title: string}) => {
longPressDownload(sub.link, 'text/vtt');
}}
/>
</View>
{cancelModal && downloadId && (
<Pressable
Expand Down

0 comments on commit 193415b

Please sign in to comment.