Skip to content

Commit b347c9f

Browse files
authored
Update app to the latest NativeScript, due to crashes with the old bits. (#5)
* Update app to the latest NativeScript, due to crashes with the old bits. * *Add package-lock.json to .gitignore *Remove references.d.ts from .gitignore *Update natitescript-dev-typescript version *Delete Introp.d.ts and ios.d.ts as not necessary * Delete tns-core-modules platform declarations
1 parent 96884ad commit b347c9f

File tree

7 files changed

+158
-40857
lines changed

7 files changed

+158
-40857
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ lib/
55
hooks/
66
app/*.js
77
app/*.js.map
8-
/references.d.ts
9-
/tsconfig.json
8+
/tsconfig.json
9+
/package-lock.json

app/Interop.d.ts

Lines changed: 0 additions & 219 deletions
This file was deleted.

app/custom-app-delegate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class CustomAppDelegate extends UIResponder implements UIApplicationDeleg
1919
this.timer = NSTimer.scheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats(2, this, "runOnBackground", null, true);
2020
}
2121

22-
public applicationDidFinishLaunchingWithOptions(application: UIApplication, launchOptions: NSDictionary): boolean {
22+
public applicationDidFinishLaunchingWithOptions(application: UIApplication, launchOptions: NSDictionary<string, any>): boolean {
2323
return true;
2424
}
2525

@@ -29,7 +29,7 @@ export class CustomAppDelegate extends UIResponder implements UIApplicationDeleg
2929
this.timer = null;
3030
}
3131
this.timerCounter = 5;
32-
UIApplication.sharedApplication().endBackgroundTask(this.bgTask);
32+
UIApplication.sharedApplication.endBackgroundTask(this.bgTask);
3333
this.bgTask = UIBackgroundTaskInvalid;
3434
console.log("End of background task.");
3535
}

0 commit comments

Comments
 (0)