Getting Leanplum app ID and key from outside the repo.

This commit is contained in:
Brendon Duncan 2018-09-13 12:02:25 +12:00
commit ff01933151
4 changed files with 58 additions and 6 deletions

View file

@ -1207,7 +1207,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
});
})
.run(function($rootScope, $state, $location, $log, $timeout, startupService, ionicToast, fingerprintService, $ionicHistory, $ionicPlatform, $window, appConfigService, lodash, platformInfo, profileService, uxLanguage, gettextCatalog, openURLService, storageService, scannerService, configService, emailService, /* plugins START HERE => */ buydotbitcoindotcomService, pushNotificationsService, glideraService, amazonService, bitpayCardService, applicationService, mercadoLibreService, rateService) {
.run(function(leanplumConfig, $rootScope, $state, $location, $log, $timeout, startupService, ionicToast, fingerprintService, $ionicHistory, $ionicPlatform, $window, appConfigService, lodash, platformInfo, profileService, uxLanguage, gettextCatalog, openURLService, storageService, scannerService, configService, emailService, /* plugins START HERE => */ buydotbitcoindotcomService, pushNotificationsService, glideraService, amazonService, bitpayCardService, applicationService, mercadoLibreService, rateService) {
$ionicPlatform.ready(function() {
@ -1228,7 +1228,8 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
"wallet_created": "nd3dg5",
"wallet_opened": "4n39l7"
}
}
},
leanplum: leanplumConfig
});
configService.whenAvailable(function(config) {
@ -1273,14 +1274,14 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
name: 'tab_open',
class: 'track_tab_open',
params: ['href', 'title', 'icon-off'],
channels: [channel]
channels: [channel, 'leanplum']
});
window.BitAnalytics.ActionHandlers.trackAction(actionTabOpen);
var actionShapeShiftStart = new window.BitAnalytics.ActionFactory.createAction('click', {
name: 'shapeshift_start_click',
class: 'track_shapeshift_start_click',
channels: [channel]
channels: [channel, 'leanplum']
});
window.BitAnalytics.ActionHandlers.trackAction(actionShapeShiftStart);

View file

@ -0,0 +1,29 @@
'use strict';
/*
Template is at:
src/js/templates/constants
Requires a file above the project root: leanplum-config.json, containing:
{
"dev": {
"appId": "YOUR_DEV_APP_ID",
"key": "YOUR_DEV_KEY"
},
"prod": {
"appId": "YOUR_PROD_APP_ID",
"key": "YOUR_PROD_KEY"
}
}
*/
(function(){
angular
.module('bitcoincom.services')
.constant('leanplumConfig', {
appId: '',
key: ''
});
})();