mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-01 01:12:39 +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() {
|
mounted() {
|
||||||
CapacitorApp.addListener('backButton', ({canGoBack}) => {
|
CapacitorApp.addListener('backButton', ({canGoBack}) => {
|
||||||
|
|
||||||
|
//--- Back Closes Search ---//
|
||||||
|
if (this.search) {
|
||||||
|
this.search = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(!canGoBack){
|
if(!canGoBack){
|
||||||
CapacitorApp.exitApp();
|
CapacitorApp.exitApp();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -10,6 +10,8 @@ android {
|
||||||
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
|
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':capacitor-community-http')
|
implementation project(':capacitor-community-http')
|
||||||
|
implementation project(':capacitor-app')
|
||||||
|
implementation project(':capacitor-browser')
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,5 +2,13 @@
|
||||||
{
|
{
|
||||||
"pkg": "@capacitor-community/http",
|
"pkg": "@capacitor-community/http",
|
||||||
"classpath": "com.getcapacitor.plugin.http.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'
|
include ':capacitor-community-http'
|
||||||
project(':capacitor-community-http').projectDir = new File('../node_modules/@capacitor-community/http/android')
|
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",
|
"appName": "VueTube",
|
||||||
"webDir": "dist",
|
"webDir": "dist",
|
||||||
"bundledWebRuntime": false
|
"bundledWebRuntime": false
|
||||||
|
|
|
@ -10,6 +10,8 @@ def capacitor_pods
|
||||||
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
|
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
|
||||||
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
|
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
|
||||||
pod 'CapacitorCommunityHttp', :path => '..\..\node_modules\@capacitor-community\http'
|
pod 'CapacitorCommunityHttp', :path => '..\..\node_modules\@capacitor-community\http'
|
||||||
|
pod 'CapacitorApp', :path => '..\..\node_modules\@capacitor\app'
|
||||||
|
pod 'CapacitorBrowser', :path => '..\..\node_modules\@capacitor\browser'
|
||||||
end
|
end
|
||||||
|
|
||||||
target 'App' do
|
target 'App' do
|
||||||
|
|
Loading…
Reference in a new issue