mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix Android lifecycle
This commit is contained in:
18
apps/.vscode/launch.json
vendored
18
apps/.vscode/launch.json
vendored
@@ -11,7 +11,8 @@
|
||||
"diagnosticLogging": false,
|
||||
"emulator": false,
|
||||
"rebuild": false,
|
||||
"syncAllFiles": true
|
||||
"syncAllFiles": true,
|
||||
"stopOnEntry": true
|
||||
},
|
||||
{
|
||||
"name": "Launch on iOS",
|
||||
@@ -22,7 +23,8 @@
|
||||
"sourceMaps": true,
|
||||
"diagnosticLogging": false,
|
||||
"emulator": false,
|
||||
"rebuild": true
|
||||
"rebuild": true,
|
||||
"stopOnEntry": true
|
||||
},
|
||||
{
|
||||
"name": "Attach on iOS",
|
||||
@@ -32,7 +34,8 @@
|
||||
"appRoot": "${workspaceRoot}",
|
||||
"sourceMaps": true,
|
||||
"diagnosticLogging": false,
|
||||
"emulator": false
|
||||
"emulator": false,
|
||||
"stopOnEntry": true
|
||||
},
|
||||
{
|
||||
"name": "Sync on Android",
|
||||
@@ -44,7 +47,8 @@
|
||||
"diagnosticLogging": false,
|
||||
"emulator": false,
|
||||
"rebuild": false,
|
||||
"syncAllFiles": true
|
||||
"syncAllFiles": true,
|
||||
"stopOnEntry": true
|
||||
},
|
||||
{
|
||||
"name": "Launch on Android",
|
||||
@@ -55,7 +59,8 @@
|
||||
"sourceMaps": true,
|
||||
"diagnosticLogging": false,
|
||||
"emulator": false,
|
||||
"rebuild": true
|
||||
"rebuild": true,
|
||||
"stopOnEntry": true
|
||||
},
|
||||
{
|
||||
"name": "Attach on Android",
|
||||
@@ -65,7 +70,8 @@
|
||||
"appRoot": "${workspaceRoot}",
|
||||
"sourceMaps": true,
|
||||
"diagnosticLogging": false,
|
||||
"emulator": false
|
||||
"emulator": false,
|
||||
"stopOnEntry": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -4,7 +4,6 @@ trace.enable();
|
||||
trace.setCategories(trace.categories.concat(
|
||||
trace.categories.NativeLifecycle,
|
||||
trace.categories.Navigation,
|
||||
//trace.categories.Animation,
|
||||
trace.categories.Transition
|
||||
));
|
||||
|
||||
@@ -69,7 +68,7 @@ application.on(application.lowMemoryEvent, function (args: application.Applicati
|
||||
}
|
||||
});
|
||||
|
||||
application.on(application.uncaughtErrorEvent, function (args: application.ApplicationEventData) {
|
||||
application.on(application.uncaughtErrorEvent, function (args: application.UnhandledErrorEventData) {
|
||||
if (args.android) {
|
||||
// For Android applications, args.android is NativeScriptError.
|
||||
console.log("### NativeScriptError: " + args.android);
|
||||
|
||||
Reference in New Issue
Block a user