File tree 5 files changed +55
-0
lines changed
5 files changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,11 @@ def capacitor_pods
17
17
pod 'CapacitorClipboard' , :path => '../../node_modules/@capacitor/clipboard'
18
18
pod 'CapacitorHaptics' , :path => '../../node_modules/@capacitor/haptics'
19
19
pod 'CapacitorKeyboard' , :path => '../../node_modules/@capacitor/keyboard'
20
+ pod 'CapacitorNetwork' , :path => '../../node_modules/@capacitor/network'
20
21
pod 'CapacitorShare' , :path => '../../node_modules/@capacitor/share'
21
22
pod 'CapacitorSplashScreen' , :path => '../../node_modules/@capacitor/splash-screen'
22
23
pod 'CapacitorStatusBar' , :path => '../../node_modules/@capacitor/status-bar'
24
+ pod 'CordovaPlugins' , :path => '../capacitor-cordova-ios-plugins'
23
25
end
24
26
25
27
target 'App' do
Original file line number Diff line number Diff line change 33
33
"@aeternity/bip39" : " ^0.1.0" ,
34
34
"@aeternity/hd-wallet" : " ^0.2.0" ,
35
35
"@aeternity/json-bigint" : " ^0.3.1" ,
36
+ "@awesome-cordova-plugins/screen-orientation" : " ^6.4.0" ,
36
37
"@bitcoin-js/tiny-secp256k1-asmjs" : " ^2.2.3" ,
37
38
"@capacitor-community/barcode-scanner" : " ^4.0.1" ,
38
39
"@capacitor/android" : " 5.0.4" ,
65
66
"bip32" : " ^4.0.0" ,
66
67
"bitcoinjs-lib" : " ^6.1.3" ,
67
68
"camelcase-keys-deep" : " ^0.1.0" ,
69
+ "cordova-plugin-screen-orientation" : " ^3.0.3" ,
68
70
"dayjs" : " ^1.11.9" ,
69
71
"detect-browser" : " ^5.3.0" ,
70
72
"ecpair" : " ^2.1.0" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import '@/lib/initPolyfills';
2
2
import '@/protocols/registerAdapters' ;
3
3
import { createApp } from 'vue' ;
4
4
import { IonicVue } from '@ionic/vue' ;
5
+ import { IS_MOBILE_APP } from '@/constants' ;
5
6
import store from '../store' ;
6
7
import router from './router' ;
7
8
import { i18n } from '../store/plugins/languages' ;
@@ -12,6 +13,10 @@ import LoaderComponent from './components/Loader.vue';
12
13
13
14
import '../styles/fullscreen-message.scss' ;
14
15
16
+ if ( IS_MOBILE_APP ) {
17
+ window . screen . orientation ?. lock ( 'portrait' ) ;
18
+ }
19
+
15
20
registerModals ( ) ;
16
21
const app = createApp ( App ) ;
17
22
app . use ( IonicVue ) ;
Original file line number Diff line number Diff line change @@ -6,4 +6,7 @@ declare global {
6
6
interface Window {
7
7
popupProps ?: Partial < IPopupConfig >
8
8
}
9
+ interface ScreenOrientation {
10
+ lock : ( orientation : 'portrait' | 'landscape' | 'portrait-primary' | 'portrait-secondary' | 'landscape-primary' | 'landscape-secondary' | 'any' ) => Promise < void >
11
+ }
9
12
}
You can’t perform that action at this time.
0 commit comments