Hi! Iam building an app in ionic 4, using angular 7, in this version we have a file called “environment” that is replaced with “environment.prod” when you use --prod command, i create the building in my local machine with:
ionic cordova build android --prod --release
And everithing works fine, the problem when i use Bitrise is, when i create a release version the environment that the aplication build use is not “environment.prod”
Here my bitrise.yaml
format_version: ‘7’
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ionic
trigger_map:
- push_branch: “*”
workflow: primary - pull_request_source_branch: “*”
workflow: primary
workflows:
primary:
steps:- activate-ssh-key@4.0.3:
run_if: ‘{{getenv “SSH_RSA_PRIVATE_KEY” | ne “”}}’ - git-clone@4.0.14: {}
- script@1.1.5:
title: Do anything with Script step - certificate-and-profile-installer@1.10.1: {}
- npm@1.0.1:
inputs:- command: install
- generate-cordova-build-configuration@0.9.6:
inputs:- development_team: 8VH588FE4X
- provisioning_profile: 7aada4df-8a4d-48ee-8801-56643e004a44
- automatic_provisioning: ‘yes’
- code_sign_identity: iPhone Distribution
- package_type: ad-hoc
- configuration: release
is_always_run: true
- ionic-archive@2.0.0:
inputs:- options: '-- --prod --buildFlag="-UseModernBuildSystem=0" ’
- platform: ios
- deploy-to-bitrise-io@1.3.19:
is_always_run: false
app:
envs: - IONIC_PLATFORM: ios, android
- activate-ssh-key@4.0.3: