mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-10-31 17:02:38 +00:00
Fix Issue #4
This commit is contained in:
parent
4ce2654c3f
commit
00f49f22ed
6 changed files with 26 additions and 1 deletions
|
@ -106,6 +106,13 @@ export default {
|
|||
}),
|
||||
mounted() {
|
||||
CapacitorApp.addListener('backButton', ({canGoBack}) => {
|
||||
|
||||
//--- Back Closes Search ---//
|
||||
if (this.search) {
|
||||
this.search = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if(!canGoBack){
|
||||
CapacitorApp.exitApp();
|
||||
} else {
|
||||
|
|
|
@ -10,6 +10,8 @@ android {
|
|||
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
|
||||
dependencies {
|
||||
implementation project(':capacitor-community-http')
|
||||
implementation project(':capacitor-app')
|
||||
implementation project(':capacitor-browser')
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -2,5 +2,13 @@
|
|||
{
|
||||
"pkg": "@capacitor-community/http",
|
||||
"classpath": "com.getcapacitor.plugin.http.Http"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/app",
|
||||
"classpath": "com.capacitorjs.plugins.app.AppPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/browser",
|
||||
"classpath": "com.capacitorjs.plugins.browser.BrowserPlugin"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -4,3 +4,9 @@ project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/
|
|||
|
||||
include ':capacitor-community-http'
|
||||
project(':capacitor-community-http').projectDir = new File('../node_modules/@capacitor-community/http/android')
|
||||
|
||||
include ':capacitor-app'
|
||||
project(':capacitor-app').projectDir = new File('../node_modules/@capacitor/app/android')
|
||||
|
||||
include ':capacitor-browser'
|
||||
project(':capacitor-browser').projectDir = new File('../node_modules/@capacitor/browser/android')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"appId": "com.Frontesque.youtube",
|
||||
"appId": "com.Frontesque.vuetube",
|
||||
"appName": "VueTube",
|
||||
"webDir": "dist",
|
||||
"bundledWebRuntime": false
|
||||
|
|
|
@ -10,6 +10,8 @@ def capacitor_pods
|
|||
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
|
||||
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
|
||||
pod 'CapacitorCommunityHttp', :path => '..\..\node_modules\@capacitor-community\http'
|
||||
pod 'CapacitorApp', :path => '..\..\node_modules\@capacitor\app'
|
||||
pod 'CapacitorBrowser', :path => '..\..\node_modules\@capacitor\browser'
|
||||
end
|
||||
|
||||
target 'App' do
|
||||
|
|
Loading…
Reference in a new issue