is-first-run

This commit is contained in:
Geoffrey Goh
2015-11-03 20:49:47 -08:00
parent d53197294f
commit 2ce18b0180
2 changed files with 27 additions and 8 deletions

View File

@@ -61,6 +61,10 @@ function getCurrentPackage() {
})
.then((failedUpdate) => {
localPackage.failedApply = failedUpdate;
return NativeCodePush.isFirstRun(localPackage.packageHash);
})
.then((isFirstRun) => {
localPackage.isFirstRun = isFirstRun;
resolve(localPackage);
})
.catch(reject)