Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var settings = {};
settings.CONFIG_FILE = argv.config || 'config.xml';
settings.SPLASH_FILE = argv.splash || 'splash.png';
settings.OLD_XCODE_PATH = argv['xcode-old'] || false;
settings.OLD_ANDROID_PATH = argv['android-old'] || false;

/**
* Check which platforms are added to the project and return their splash screen names and sizes
Expand Down Expand Up @@ -55,7 +56,7 @@ var getPlatforms = function (projectName) {
platforms.push({
name : 'android',
isAdded : fs.existsSync('platforms/android'),
splashPath : 'platforms/android/app/src/main/res/',
splashPath : settings.OLD_ANDROID_PATH ? 'platforms/android/res/' : 'platforms/android/app/src/main/res/',
splash : [
// Landscape
{ name: 'drawable-land-ldpi/screen.png', width: 320, height: 200 },
Expand Down Expand Up @@ -131,6 +132,9 @@ var getProjectName = function () {
deferred.reject(err);
}
var projectName = result.widget.name[0];
if (typeof projectName == "object") {
projectName = projectName._.trim()
}
deferred.resolve(projectName);
});
});
Expand Down