Skip to content

Commit 326f5ec

Browse files
author
Mihail Slavchev
committed
use os.EOL for splitting text into lines
1 parent ff5df83 commit 326f5ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/services/android-project-service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import constants = require("../constants");
99
import hostInfo = require("../common/host-info");
1010
import helpers = require("../common/helpers");
1111
import fs = require("fs");
12+
import os = require("os");
1213

1314
class AndroidProjectService implements IPlatformProjectService {
1415
private SUPPORTED_TARGETS = ["android-17", "android-18", "android-19", "android-21"];
@@ -174,7 +175,7 @@ class AndroidProjectService implements IPlatformProjectService {
174175
return;
175176
}
176177

177-
var lines = fs.readFileSync(projProp, { encoding: "utf-8" }).split("\n");
178+
var lines = fs.readFileSync(projProp, { encoding: "utf-8" }).split(os.EOL);
178179
var thiz = this;
179180

180181
lines.forEach((elem, idx, arr) => {

0 commit comments

Comments
 (0)