0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-01 01:12:39 +00:00
This commit is contained in:
Front 2022-03-13 14:20:43 -04:00
parent 4ce2654c3f
commit 00f49f22ed
6 changed files with 26 additions and 1 deletions

View file

@ -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 {

View file

@ -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')
} }

View file

@ -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"
} }
] ]

View file

@ -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')

View file

@ -1,5 +1,5 @@
{ {
"appId": "com.Frontesque.youtube", "appId": "com.Frontesque.vuetube",
"appName": "VueTube", "appName": "VueTube",
"webDir": "dist", "webDir": "dist",
"bundledWebRuntime": false "bundledWebRuntime": false

View file

@ -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