Skip to content

Commit 7f84160

Browse files
Eijebonghneiva
authored andcommitted
WIP
1 parent 176ca34 commit 7f84160

File tree

3 files changed

+95
-26
lines changed

3 files changed

+95
-26
lines changed

bitrise.yml

Lines changed: 58 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,6 +2106,51 @@ workflows:
21062106
--org mozilla --project klar-ios "$BITRISE_DSYM_DIR_PATH"
21072107
21082108
# RelPro workflows
2109+
release_promotion_promote_focus:
2110+
before_run:
2111+
- focus-clone-and-build-dependencies
2112+
- focus-set-project-version
2113+
- focus-set-default-browser-entitlement
2114+
- focus-configure-nimbus
2115+
- focus-configure-sentry
2116+
steps:
2117+
2118+
# If the current bitrise application is `staging-firefox-ios`, then
2119+
# this is a test release made from the staging repository.
2120+
# Ignore the value passed by release promotion for `BITRISE_SCHEME` and
2121+
# force it to `FirefoxStaging`, which makes it use non production
2122+
# certs/profiles. Also override the export method since the scheme is
2123+
# using a developer ID, not a distribution one
2124+
title: Set staging environment variables
2125+
inputs:
2126+
- content: |-
2127+
#!/usr/bin/env bash
2128+
set -ex
2129+
envman add --key EXPORT_METHOD --value development
2130+
run_if: |-
2131+
{{enveq "BITRISE_APP_TITLE" "staging-firefox-ios"}}
2132+
- certificate-and-profile-installer@1: {}
2133+
- xcode-archive@5:
2134+
inputs:
2135+
- project_path: focus-ios/Blockzilla.xcodeproj
2136+
- compile_bitcode: 'no'
2137+
- upload_bitcode: 'no'
2138+
- team_id: 43AQ936H96
2139+
- export_method: "$EXPORT_METHOD"
2140+
- output_tool: xcodebuild
2141+
- distribution_method: "$EXPORT_METHOD"
2142+
- export_development_team: 43AQ936H96
2143+
- configuration: "FocusDebug"
2144+
- platform: "iOS"
2145+
- scheme: "Focus"
2146+
title: Build Focus
2147+
2148+
envs:
2149+
- opts:
2150+
is_expand: false
2151+
EXPORT_METHOD: app-store
2152+
description: This step is used during release promotion to build a focus release
2153+
21092154
release_promotion_promote:
21102155
before_run:
21112156
- SPM_Common_Steps
@@ -2296,19 +2341,19 @@ app:
22962341
TEST_FLIGHT_EXTERNAL_GROUP_NAME: Nightly
22972342

22982343

2299-
trigger_map:
2300-
- push_branch: main
2301-
pipeline: pipeline_build_and_test
2302-
- push_branch: epic-branch/*
2303-
pipeline: pipeline_build_and_test
2304-
- push_branch: release/*
2305-
pipeline: pipeline_build_and_test
2306-
- pull_request_target_branch: main
2307-
pipeline: pipeline_build_and_test
2308-
- pull_request_target_branch: epic-branch/*
2309-
pipeline: pipeline_build_and_test
2310-
- pull_request_target_branch: release/v*
2311-
pipeline: pipeline_build_and_test
2344+
#trigger_map:
2345+
#- push_branch: main
2346+
# pipeline: pipeline_build_and_test
2347+
#- push_branch: epic-branch/*
2348+
# pipeline: pipeline_build_and_test
2349+
#- push_branch: release/*
2350+
# pipeline: pipeline_build_and_test
2351+
#- pull_request_target_branch: main
2352+
# pipeline: pipeline_build_and_test
2353+
#- pull_request_target_branch: epic-branch/*
2354+
# pipeline: pipeline_build_and_test
2355+
#- pull_request_target_branch: release/v*
2356+
# pipeline: pipeline_build_and_test
23122357

23132358
meta:
23142359
bitrise.io:

focus-ios/Blockzilla.xcodeproj/project.pbxproj

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,7 +2219,6 @@
22192219
166E4BFF21347D150029E2A5 = {
22202220
CreatedOnToolsVersion = 10.0;
22212221
LastSwiftMigration = 1300;
2222-
ProvisioningStyle = Automatic;
22232222
SystemCapabilities = {
22242223
com.apple.ApplicationGroups.iOS = {
22252224
enabled = 1;
@@ -4018,10 +4017,11 @@
40184017
CLANG_WARN_UNREACHABLE_CODE = YES;
40194018
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
40204019
CODE_SIGN_ENTITLEMENTS = FocusIntentExtension/FocusIntentExtension.entitlements;
4021-
CODE_SIGN_STYLE = Automatic;
4020+
CODE_SIGN_STYLE = Manual;
40224021
COPY_PHASE_STRIP = NO;
40234022
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
4024-
DEVELOPMENT_TEAM = 43AQ936H96;
4023+
DEVELOPMENT_TEAM = "";
4024+
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 43AQ936H96;
40254025
ENABLE_NS_ASSERTIONS = NO;
40264026
ENABLE_STRICT_OBJC_MSGSEND = YES;
40274027
GCC_C_LANGUAGE_STANDARD = gnu11;
@@ -4043,6 +4043,8 @@
40434043
MTL_FAST_MATH = YES;
40444044
PRODUCT_BUNDLE_IDENTIFIER = org.mozilla.ios.Focus.FocusIntentExtension;
40454045
PRODUCT_NAME = "$(TARGET_NAME)";
4046+
PROVISIONING_PROFILE_SPECIFIER = "";
4047+
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "BT org.mozilla.ios.Focus.FocusIntentExtension";
40464048
SDKROOT = iphoneos;
40474049
SKIP_INSTALL = YES;
40484050
SWIFT_COMPILATION_MODE = wholemodule;
@@ -4961,10 +4963,12 @@
49614963
CLANG_WARN_UNREACHABLE_CODE = YES;
49624964
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
49634965
CODE_SIGN_IDENTITY = "Apple Development";
4964-
CODE_SIGN_STYLE = Automatic;
4966+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
4967+
CODE_SIGN_STYLE = Manual;
49654968
COPY_PHASE_STRIP = NO;
49664969
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
4967-
DEVELOPMENT_TEAM = 43AQ936H96;
4970+
DEVELOPMENT_TEAM = "";
4971+
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 43AQ936H96;
49684972
DISPLAY_NAME = "Firefox Focus";
49694973
ENABLE_NS_ASSERTIONS = NO;
49704974
ENABLE_STRICT_OBJC_MSGSEND = YES;
@@ -4987,6 +4991,7 @@
49874991
PRODUCT_BUNDLE_IDENTIFIER = org.mozilla.ios.Focus.ShareExtension;
49884992
PRODUCT_NAME = ShareExtension;
49894993
PROVISIONING_PROFILE_SPECIFIER = "";
4994+
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "BT org.mozilla.ios.Focus.ShareExtension";
49904995
SDKROOT = iphoneos;
49914996
SKIP_INSTALL = YES;
49924997
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "FOCUS DEBUG";
@@ -5355,11 +5360,13 @@
53555360
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
53565361
CLANG_WARN_UNREACHABLE_CODE = YES;
53575362
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
5358-
CODE_SIGN_STYLE = Automatic;
5363+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
5364+
CODE_SIGN_STYLE = Manual;
53595365
COPY_PHASE_STRIP = NO;
53605366
CURRENT_PROJECT_VERSION = 1;
53615367
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
5362-
DEVELOPMENT_TEAM = 43AQ936H96;
5368+
DEVELOPMENT_TEAM = "";
5369+
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 43AQ936H96;
53635370
ENABLE_NS_ASSERTIONS = NO;
53645371
ENABLE_STRICT_OBJC_MSGSEND = YES;
53655372
GCC_C_LANGUAGE_STANDARD = gnu11;
@@ -5384,6 +5391,8 @@
53845391
MTL_FAST_MATH = YES;
53855392
PRODUCT_BUNDLE_IDENTIFIER = org.mozilla.ios.Focus.Widgets;
53865393
PRODUCT_NAME = "$(TARGET_NAME)";
5394+
PROVISIONING_PROFILE_SPECIFIER = "";
5395+
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "BT org.mozilla.ios.Focus.Widgets";
53875396
SDKROOT = iphoneos;
53885397
SKIP_INSTALL = YES;
53895398
SWIFT_COMPILATION_MODE = wholemodule;
@@ -6031,8 +6040,10 @@
60316040
BUNDLE_ID_SUFFIX = .dev;
60326041
CODE_SIGN_ENTITLEMENTS = Focus.entitlements;
60336042
CODE_SIGN_IDENTITY = "Apple Development";
6034-
CODE_SIGN_STYLE = Automatic;
6035-
DEVELOPMENT_TEAM = 43AQ936H96;
6043+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
6044+
CODE_SIGN_STYLE = Manual;
6045+
DEVELOPMENT_TEAM = "";
6046+
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 43AQ936H96;
60366047
ENABLE_BITCODE = NO;
60376048
HEADER_SEARCH_PATHS = "$(SDKROOT)/usr/include/libxml2";
60386049
INFOPLIST_FILE = Blockzilla/Info.plist;
@@ -6044,6 +6055,7 @@
60446055
PRODUCT_BUNDLE_IDENTIFIER = org.mozilla.ios.Focus;
60456056
PRODUCT_NAME = "Firefox Focus";
60466057
PROVISIONING_PROFILE_SPECIFIER = "";
6058+
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "BT org.mozilla.ios.Focus";
60476059
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "FOCUS DEBUG";
60486060
SWIFT_VERSION = 5.0;
60496061
VALID_ARCHS = "$(ARCHS_STANDARD)";
@@ -6054,8 +6066,9 @@
60546066
isa = XCBuildConfiguration;
60556067
buildSettings = {
60566068
CODE_SIGN_ENTITLEMENTS = Focus.entitlements;
6057-
CODE_SIGN_STYLE = Automatic;
6058-
DEVELOPMENT_TEAM = 43AQ936H96;
6069+
CODE_SIGN_STYLE = Manual;
6070+
DEVELOPMENT_TEAM = "";
6071+
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 43AQ936H96;
60596072
INFOPLIST_FILE = ContentBlocker/Info.plist;
60606073
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
60616074
LD_RUNPATH_SEARCH_PATHS = (
@@ -6065,6 +6078,8 @@
60656078
);
60666079
PRODUCT_BUNDLE_IDENTIFIER = org.mozilla.ios.Focus.ContentBlocker;
60676080
PRODUCT_NAME = "$(TARGET_NAME)";
6081+
PROVISIONING_PROFILE_SPECIFIER = "";
6082+
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "BT org.mozilla.ios.Focus.ContentBlocker";
60686083
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "FOCUS DEBUG";
60696084
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
60706085
SWIFT_VERSION = 5.0;

focus-ios/Blockzilla.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)