mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Added private Kimera build for UnitTestApp. Added Application module snippets.
This commit is contained in:
@ -85,10 +85,17 @@ var initEvents = function () {
|
||||
return lifecycleCallbacks;
|
||||
}
|
||||
|
||||
var initialized;
|
||||
export var init = function (nativeApp: android.app.Application) {
|
||||
if (initialized) {
|
||||
return;
|
||||
}
|
||||
|
||||
var app = new AndroidApplication(nativeApp);
|
||||
exports.android = app;
|
||||
app.init();
|
||||
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
class AndroidApplication {
|
||||
|
@ -26,11 +26,17 @@ import appModule = require("application/application-common");
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(appModule, exports);
|
||||
|
||||
// TODO: Declarations
|
||||
var initialized;
|
||||
export var init = function (nativeApp: any) {
|
||||
if (initialized) {
|
||||
return;
|
||||
}
|
||||
|
||||
var app = new iOSApplication(nativeApp);
|
||||
exports.ios = app;
|
||||
app.init();
|
||||
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
class iOSApplication {
|
||||
|
Reference in New Issue
Block a user