File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed
Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ app.init({
1313 return com .tns .NativeScriptActivity .extends ({});
1414 },
1515 onCreate : function () {
16- require (" Application " ).init (this );
16+ require (" application " ).init (this );
1717 require (" Tests" ).runAll ();
1818 }
1919});
Original file line number Diff line number Diff line change 1010
1111*/
1212
13- var Application = require ( "Application " ) ;
13+ var Application = require ( "application " ) ;
1414
1515var runTest = function ( test , testName ) {
1616 test ( ) ;
Original file line number Diff line number Diff line change 11To initialize the module put the following code in the main entry point file (app.js):
22``` js
3- var appModule = require (" Application " );
3+ var appModule = require (" application " );
44 appModule .init ([native app instance]);
55```
Original file line number Diff line number Diff line change 22/*
33Current launch sequence for iOS looks like:
44
5- var app = require("Application /application");
5+ var app = require("application /application");
66
77app.tk.ui.Application.current.onLaunch = function() {
88 log("tk.ui.Application.current.onLaunch");
Original file line number Diff line number Diff line change 11declare var module , require ;
2- module . exports = require ( "Camera /camera" ) ;
2+ module . exports = require ( "camera /camera" ) ;
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export var remove = function (key: string): void {
6868/*
6969these are commented out to be used only if requested by users or otherwise needed
7070
71- import utils_module = require("Utils /utils_android");
71+ import utils_module = require("utils /utils_android");
7272
7373export var getStringArray = function (key: string, defaultValue?: string[]): string[]{
7474 Common.checkKey(key);
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export var remove = function (key: string): void {
6363/*
6464these are commented out to be used only if requested by users or otherwise needed
6565
66- import utils_module = require("Utils /utils_ios");
66+ import utils_module = require("utils /utils_ios");
6767
6868export var getStringArray = function (key: string, defaultValue?: string[]): string[] {
6969 Common.checkKey(key);
Original file line number Diff line number Diff line change 11Initializing location:
22
33```
4- var LocationManager = require("Location ").LocationManager;
4+ var LocationManager = require("location ").LocationManager;
55
66console.log('is location enabled: ' + LocationManager.isLocationEnabled());
77
You can’t perform that action at this time.
0 commit comments