Skip to content

Commit

Permalink
add compatibily Cordova-android < 7
Browse files Browse the repository at this point in the history
  • Loading branch information
david-spaeth authored Mar 9, 2018
1 parent 0c2fbab commit 814615f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 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

0 comments on commit 814615f

Please sign in to comment.