diff options
| author | Bug Magnet <marco.nikic@mullvad.net> | 2024-01-10 16:56:40 +0100 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2024-01-18 09:20:18 +0100 |
| commit | 93bd6908441c0a693e874e731fc59a41fe4d29cb (patch) | |
| tree | c6aaf824e1bb19a6f227f29c7d8fa817b8ffd22a /ios/Configurations | |
| parent | 88b52d5ebd66d7e195173df0594f52b089cef593 (diff) | |
| download | mullvadvpn-93bd6908441c0a693e874e731fc59a41fe4d29cb.tar.xz mullvadvpn-93bd6908441c0a693e874e731fc59a41fe4d29cb.zip | |
Add a staging configuration that automatically targets the staging environment
Diffstat (limited to 'ios/Configurations')
| -rw-r--r-- | ios/Configurations/Api.xcconfig.template | 9 | ||||
| -rw-r--r-- | ios/Configurations/App.xcconfig.template | 2 | ||||
| -rw-r--r-- | ios/Configurations/Base.xcconfig.template | 9 | ||||
| -rw-r--r-- | ios/Configurations/PacketTunnel.xcconfig.template | 3 | ||||
| -rw-r--r-- | ios/Configurations/Screenshots.xcconfig.template | 2 |
5 files changed, 25 insertions, 0 deletions
diff --git a/ios/Configurations/Api.xcconfig.template b/ios/Configurations/Api.xcconfig.template new file mode 100644 index 0000000000..99d1fc1fc1 --- /dev/null +++ b/ios/Configurations/Api.xcconfig.template @@ -0,0 +1,9 @@ +API_HOST_NAME[config=Debug] = api.mullvad.net +API_HOST_NAME[config=Release] = api.mullvad.net +API_HOST_NAME[config=MockRelease] = api.mullvad.net +API_HOST_NAME[config=Staging] = api.stagemole.eu + +API_ENDPOINT[config=Debug] = 45.83.223.196:443 +API_ENDPOINT[config=Release] = 45.83.223.196:443 +API_ENDPOINT[config=MockRelease] = 45.83.223.196:443 +API_ENDPOINT[config=Staging] = 85.203.53.95:443 diff --git a/ios/Configurations/App.xcconfig.template b/ios/Configurations/App.xcconfig.template index 506d7df9a6..9ece896897 100644 --- a/ios/Configurations/App.xcconfig.template +++ b/ios/Configurations/App.xcconfig.template @@ -3,4 +3,6 @@ // Provisioning profiles // Comment out the lines below if using automatic code sign PROVISIONING_PROFILE_SPECIFIER[config=Debug][sdk=*][arch=*] = Mullvad VPN Development +PROVISIONING_PROFILE_SPECIFIER[config=Staging][sdk=*][arch=*] = Mullvad VPN Development +PROVISIONING_PROFILE_SPECIFIER[config=MockRelease][sdk=*][arch=*] = Mullvad VPN Development PROVISIONING_PROFILE_SPECIFIER[config=Release][sdk=*][arch=*] = Mullvad VPN Release diff --git a/ios/Configurations/Base.xcconfig.template b/ios/Configurations/Base.xcconfig.template index c5cee04bf9..7ba421b459 100644 --- a/ios/Configurations/Base.xcconfig.template +++ b/ios/Configurations/Base.xcconfig.template @@ -1,4 +1,5 @@ #include "Version.xcconfig" +#include "Api.xcconfig" // Development team DEVELOPMENT_TEAM = CKG9MXH72F @@ -15,4 +16,12 @@ CODE_SIGN_STYLE = Manual // Code signing identity CODE_SIGN_IDENTITY[config=Debug] = Apple Development +CODE_SIGN_IDENTITY[config=Staging] = Apple Development +CODE_SIGN_IDENTITY[config=MockRelease] = Apple Development CODE_SIGN_IDENTITY[config=Release] = Apple Distribution + +// Flag used to conditionally show features that are in development +SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=Debug] = DEBUG +SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=Staging] = DEBUG +SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=MockRelease] = +SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=Release] =
\ No newline at end of file diff --git a/ios/Configurations/PacketTunnel.xcconfig.template b/ios/Configurations/PacketTunnel.xcconfig.template index e5a5e39097..ad28f91c86 100644 --- a/ios/Configurations/PacketTunnel.xcconfig.template +++ b/ios/Configurations/PacketTunnel.xcconfig.template @@ -1,6 +1,9 @@ #include "Base.xcconfig" +#include "Api.xcconfig" // Provisioning profiles // Comment out the lines below if using automatic code sign PROVISIONING_PROFILE_SPECIFIER[config=Debug][sdk=*][arch=*] = Packet Tunnel Development +PROVISIONING_PROFILE_SPECIFIER[config=Staging][sdk=*][arch=*] = Packet Tunnel Development +PROVISIONING_PROFILE_SPECIFIER[config=MockRelease][sdk=*][arch=*] = Packet Tunnel Development PROVISIONING_PROFILE_SPECIFIER[config=Release][sdk=*][arch=*] = Packet Tunnel Release diff --git a/ios/Configurations/Screenshots.xcconfig.template b/ios/Configurations/Screenshots.xcconfig.template index ff966b82c1..025de82739 100644 --- a/ios/Configurations/Screenshots.xcconfig.template +++ b/ios/Configurations/Screenshots.xcconfig.template @@ -3,6 +3,8 @@ // Provisioning profiles // Comment out the lines below if using automatic code sign PROVISIONING_PROFILE_SPECIFIER[config=Debug][sdk=*][arch=*] = Screenshots Development +PROVISIONING_PROFILE_SPECIFIER[config=Staging][sdk=*][arch=*] = Screenshots Development +PROVISIONING_PROFILE_SPECIFIER[config=MockRelease][sdk=*][arch=*] = Screenshots Development // Mullvad account number used when taking screenshots MULLVAD_ACCOUNT_TOKEN = |
