Skip to content

Commit

Permalink
Merge pull request #1 from bitflower/Android-build-fix
Browse files Browse the repository at this point in the history
Fix for apla#55, apla#57
  • Loading branch information
Matthias Max committed Nov 9, 2015
2 parents ac0f5ab + f724eaf commit d3018ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/lib/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ module.exports = function (fs, path, ET, cordova_util, ConfigParser) {
.then(function () { return fs.writeFile('platforms/android/res/xml/apppreferences.xml', preferencesDocument.write()); })

// Write localization resource file
.then(function () { return fs.mkdir('platforms/android/res/xml/values'); })
.then(function (prefs) { return fs.writeFile('platforms/android/res/xml/values/apppreferences.xml', preferencesStringDocument.write()); })
.then(function () { return fs.mkdir('platforms/android/res/values'); })
.then(function (prefs) { return fs.writeFile('platforms/android/res/values/apppreferences.xml', preferencesStringDocument.write()); })

// Import preferences into native android project
.then(function () { return fs.readFile(path.resolve(__dirname, '../../src/android/AppPreferencesActivity.template')); })
Expand Down Expand Up @@ -185,7 +185,7 @@ module.exports = function (fs, path, ET, cordova_util, ConfigParser) {
.then(function () { return fs.unlink('platforms/android/res/xml/apppreferences.xml'); })

// Remove localization resource file
.then(function (prefs) { return fs.unlink('platforms/android/res/xml/values/apppreferences.xml'); })
.then(function (prefs) { return fs.unlink('platforms/android/res/values/apppreferences.xml'); })

// Remove preferences from native android project
.then(function (data) {
Expand Down

0 comments on commit d3018ed

Please sign in to comment.