mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +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 {
|
||||
|
||||
Reference in New Issue
Block a user