-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch: android configurations (#765)
- Fix hooks added in PR #755 - Store script added in package - Build process updates Co-authored-by: Shpingalet007 <22795961+shpingalet007@users.noreply.github.com>
- Loading branch information
1 parent
42ea33b
commit 3e61edd
Showing
7 changed files
with
82 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const { execSync } = require('child_process'); | ||
|
||
function androidAfterBuild() { | ||
console.log('Running Android after build hook...'); | ||
|
||
console.log('Removing "cordova-plugin-apkupdater@4.0.0" needed by Android app'); | ||
execSync('cordova plugin remove cordova-plugin-apkupdater'); | ||
} | ||
|
||
module.exports = function(context) { | ||
switch (context.opts.platforms[0]) { | ||
case 'android': return androidAfterBuild(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
const { execSync } = require('child_process'); | ||
|
||
function androidPrebuild() { | ||
console.log('Running Android prebuild hook...'); | ||
function androidBeforeBuild() { | ||
console.log('Running Android before build hook...'); | ||
|
||
console.log('Installing "cordova-plugin-apkupdater@4.0.0" needed by Android app'); | ||
execSync('npm install cordova-plugin-apkupdater@4.0.0 --no-save'); | ||
execSync('cordova plugin add cordova-plugin-apkupdater@4.0.0'); | ||
} | ||
|
||
function iosPrebuild() { | ||
console.log('Running iOS prebuild hook...'); | ||
function iosBeforeBuild() { | ||
console.log('Running iOS before build hook...'); | ||
|
||
console.log('Removing "cordova-plugin-apkupdater@4.0.0" needed by Android app'); | ||
execSync('npm remove cordova-plugin-apkupdater@4.0.0 --no-save'); | ||
execSync('cordova plugin remove cordova-plugin-apkupdater@4.0.0'); | ||
} | ||
|
||
module.exports = function(context) { | ||
switch (context.opts.platforms[0]) { | ||
case 'android': return androidPrebuild(); | ||
case 'ios': return iosPrebuild(); | ||
case 'android': return androidBeforeBuild(); | ||
case 'ios': return iosBeforeBuild(); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters