File tree Expand file tree Collapse file tree 5 files changed +28
-5
lines changed
App_Resources/Android/src/main Expand file tree Collapse file tree 5 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
- package=" org.exarhteam.iitc_prime "
3
+ package=" org.exarhteam.iitcprime "
4
4
android:versionCode=" 10000"
5
5
android:versionName=" 1.0" >
6
6
Original file line number Diff line number Diff line change @@ -106,7 +106,14 @@ export default {
106
106
if (this .transport ) {
107
107
const transport = this .transport .obj ;
108
108
transport? .setWebView (webview .android );
109
- this .transport .sendToTarget ();
109
+
110
+ try {
111
+ if (transport && transport .getWebView ()) {
112
+ this .transport .sendToTarget ();
113
+ }
114
+ } catch (error) {
115
+ console .error (' Error sending transport message:' , error);
116
+ }
110
117
}
111
118
}
112
119
}
Original file line number Diff line number Diff line change
1
+ import { isAndroid } from "@nativescript/core" ;
2
+
1
3
/**
2
4
* WebView chrome client implementation
3
5
*/
4
- export const BaseWebChromeClient = android . webkit . WebChromeClient . extend ( {
6
+ export const BaseWebChromeClient = isAndroid ? android . webkit . WebChromeClient . extend ( {
5
7
init : function ( ) { } ,
6
8
7
9
initWithComponent : function ( component ) {
@@ -50,4 +52,14 @@ export const BaseWebChromeClient = android.webkit.WebChromeClient.extend({
50
52
cleanup : function ( ) {
51
53
this . component = null ;
52
54
}
53
- } ) ;
55
+ } ) : class BaseWebChromeClient {
56
+ init ( ) { }
57
+
58
+ initWithComponent ( component ) {
59
+ this . component = component ;
60
+ }
61
+
62
+ cleanup ( ) {
63
+ this . component = null ;
64
+ }
65
+ } ;
Original file line number Diff line number Diff line change 1
1
import { NativeScriptConfig } from '@nativescript/core' ;
2
2
3
3
export default {
4
- id : 'org.exarhteam.iitc_prime ' ,
4
+ id : 'org.exarhteam.iitcprime ' ,
5
5
appPath : 'app' ,
6
6
appResourcesPath : 'App_Resources' ,
7
7
android : {
8
8
v8Flags : '--expose_gc' ,
9
9
markingMode : 'none'
10
+ } ,
11
+ ios : {
12
+ deploymentTarget : '13.0'
10
13
}
11
14
} as NativeScriptConfig ;
Original file line number Diff line number Diff line change 42
42
},
43
43
"devDependencies" : {
44
44
"@nativescript/android" : " ^8.8.5" ,
45
+ "@nativescript/ios" : " 8.9.2" ,
45
46
"@nativescript/webpack" : " ~5.0.22" ,
46
47
"@triniwiz/nativescript-socketio" : " ^4.0.1" ,
47
48
"nativescript-vue-template-compiler" : " ^2.9.3" ,
You can’t perform that action at this time.
0 commit comments