Skip to content

Commit

Permalink
chore: added android to hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed Jan 9, 2017
1 parent 71844ce commit 099d70b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hooks/afterPrepare.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// read the app/config.xml
// read the sdk/package.json
// after prepare hooks based on platform
(function () {
// properties
'use strict'
Expand All @@ -8,20 +7,21 @@
var iosPreferences = require('./lib/ios/xcodePreferences.js')
var iosAssociatedDomains = require('./lib/ios/associatedDomains.js')
var iosDevelopmentTeam = require('./lib/ios/developmentTeam.js')
// var androidManifest = require('.lib/android/androidManifest.js')
var androidManifest = require('./lib/android/androidManifest.js')
var IOS = 'ios'
var ANDROID = 'android'

// entry
module.exports = run

// methods
function run (context) {
var preferences = configPrefrences.read(context)
var platforms = context.opts.platforms

platforms.forEach(function (platform) {
if (platform === ANDROID) {

androidManifest.writePreferences(context, preferences)
}
if (platform === IOS) {
iosPlist.addBranchSettings(preferences)
Expand Down

0 comments on commit 099d70b

Please sign in to comment.