Skip to content

Commit f4855ee

Browse files
fix: parse platform version
1 parent 3ba0a1c commit f4855ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ns-capabilities.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class NsCapabilities implements INsCapabilities {
120120

121121
tryGetAndroidApiLevel() {
122122
try {
123-
return parseInt(this.appiumCaps["platformVersion"]);
123+
return parseFloat(this.appiumCaps["platformVersion"]);
124124
} catch (error) {
125125
}
126126
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"chai-as-promised": "^7.1.0",
3131
"frame-comparer": "^1.0.3",
3232
"glob": "7.1.0",
33-
"mobile-devices-controller": "^2.4.0",
33+
"mobile-devices-controller": "^2.5.0",
3434
"mocha": "^5.1.0",
3535
"mocha-junit-reporter": "^1.17.0",
3636
"mocha-multi": "^1.0.0",

0 commit comments

Comments
 (0)