Skip to content

Commit 1168071

Browse files
committed
update demo deps
1 parent 9dbebc4 commit 1168071

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

demo/app/main-view-model.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const ANDROID_WAVE_KEYPATHS = [
99
];
1010

1111
export class DemoViewModel extends Observable {
12-
1312
public animationIndex: number = 0;
1413
public animations: string[] = [
1514
'Mobilo/B.json',
@@ -95,15 +94,17 @@ export class DemoViewModel extends Observable {
9594

9695
public setTheme = value => () => {
9796
const color = new Color(value);
98-
ANDROID_WAVE_KEYPATHS.forEach((keyPath) => {
97+
ANDROID_WAVE_KEYPATHS.forEach(keyPath => {
9998
this._lottieViewTwo.setColorValueDelegateForKeyPath(color, [...keyPath]);
10099
});
101100
};
102101

103102
public setSecondLottieRandomOpacity() {
104103
const opacity = getRandomWithPrecision(2);
105-
ANDROID_WAVE_KEYPATHS.forEach((keyPath) => {
106-
this._lottieViewTwo.setOpacityValueDelegateForKeyPath(opacity, [...keyPath]);
104+
ANDROID_WAVE_KEYPATHS.forEach(keyPath => {
105+
this._lottieViewTwo.setOpacityValueDelegateForKeyPath(opacity, [
106+
...keyPath
107+
]);
107108
});
108109
}
109110

@@ -120,7 +121,9 @@ export class DemoViewModel extends Observable {
120121

121122
public setFourthLottieToLoadedState() {
122123
this._lottieViewFour.completionBlock = (animationFinished: boolean) => {
123-
console.log(`lottieViewFour completionBlock animationFinished: ${animationFinished}`);
124+
console.log(
125+
`lottieViewFour completionBlock animationFinished: ${animationFinished}`
126+
);
124127

125128
this._lottieViewFour.playAnimationFromProgressToProgress(0.5, 0.85);
126129
this._lottieViewFour.completionBlock = null;
@@ -129,7 +132,6 @@ export class DemoViewModel extends Observable {
129132
// Trigger the completion block by disabling looping and allowing the final loop to lapse.
130133
this._lottieViewFour.loop = false;
131134
}
132-
133135
}
134136

135137
function getRandomWithPrecision(precision?: number): number {

demo/package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@
66
"nativescript": {
77
"id": "org.nativescript.demo",
88
"tns-android": {
9-
"version": "5.0.0"
10-
},
11-
"tns-ios": {
12-
"version": "5.0.0"
9+
"version": "5.1.0"
1310
}
1411
},
1512
"dependencies": {
1613
"nativescript-lottie": "file:../src",
1714
"nativescript-theme-core": "~1.0.4",
18-
"tns-core-modules": "^5.1.0"
15+
"tns-core-modules": "^5.1.2"
1916
},
2017
"devDependencies": {
2118
"babel-traverse": "6.4.5",
@@ -24,7 +21,7 @@
2421
"lazy": "1.0.11",
2522
"nativescript-dev-android-snapshot": "^0.*.*",
2623
"nativescript-dev-typescript": "~0.7.8",
27-
"tns-platform-declarations": "^5.1.0",
24+
"tns-platform-declarations": "^5.1.2",
2825
"typescript": "^2.8.2"
2926
}
30-
}
27+
}

0 commit comments

Comments
 (0)