Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2168,6 +2168,87 @@ workflows:
focus-ios/focus-ios-tests/tools/sentry-cli --auth-token "$SENTRY_AUTH_TOKEN" upload-dif \
--org mozilla --project klar-ios "$BITRISE_DSYM_DIR_PATH"

# RelPro workflows
release_promote_firefox:
steps:
- [email protected]:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
- certificate-and-profile-installer@1: {}
- [email protected]:
inputs:
- content: |-
#!/usr/bin/env bash
set -e
set -x

cd firefox-ios/Client.xcodeproj
#sed -i '' 's/CODE_SIGN_IDENTITY = "iPhone Developer"/CODE_SIGN_IDENTITY = "iPhone Distribution"/' project.pbxproj
cd -
title: Set xcodeproj code_sign_identity # TODO: Figure out how to not run this for staging
- [email protected]:
title: NPM, ContentBlockerGen
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x

./bootstrap.sh
- set-xcode-build-number@1:
inputs:
- build_short_version_string: "$BITRISE_RELEASE_VERSION"
- plist_path: firefox-ios/Client/Info.plist
- set-xcode-build-number@1:
inputs:
- build_short_version_string: "$BITRISE_RELEASE_VERSION"
- plist_path: firefox-ios/Extensions/NotificationService/Info.plist
- set-xcode-build-number@1:
inputs:
- build_short_version_string: "$BITRISE_RELEASE_VERSION"
- plist_path: firefox-ios/Extensions/ShareTo/Info.plist
- set-xcode-build-number@1:
inputs:
- build_short_version_string: "$BITRISE_RELEASE_VERSION"
- plist_path: firefox-ios/WidgetKit/Info.plist
- set-xcode-build-number@1:
inputs:
- build_short_version_string: "$BITRISE_RELEASE_VERSION"
- plist_path: firefox-ios/CredentialProvider/Info.plist
- [email protected]:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x

# write your script here

echo "Setting Nimbus variables"
/usr/libexec/PlistBuddy -c "Set NimbusURL $NIMBUS_URL" "firefox-ios/Client/Info.plist"
title: Nimbus Variable Setup
- [email protected]:
inputs:
- project_path: firefox-ios/Client.xcodeproj
- compile_bitcode: 'no'
- upload_bitcode: 'no'
- team_id: 43AQ936H96
- export_method: development # TODO: app-store on prod
- output_tool: xcodebuild
- distribution_method: development # TODO: app-store on prod
- export_development_team: 43AQ936H96
- configuration: "$BITRISE_SCHEME"
- [email protected]: {}
envs:
- opts:
is_expand: false
BITRISE_SCHEME: FirefoxStaging # TODO: Figure out how to change this based on repo
description: This step is used during release promotion to build a firefox release

app:
envs:
- opts:
Expand Down
63 changes: 63 additions & 0 deletions firefox-ios/Client.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -25951,15 +25951,62 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 5A9F8FCD2D91C37C0019C311 /* FirefoxStaging.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ALWAYS_USE_SEPARATE_HEADERMAPS = NO;
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_MODULES_AUTOLINK = NO;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COMPRESS_PNG_FILES = YES;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 43AQ936H96;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
EAGER_LINKING = YES;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
FUSE_BUILD_SCRIPT_PHASES = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)",
"$(SDKROOT)/usr/include/libxml2",
);
INCLUDE_SETTINGS_BUNDLE = NO;
INFOPLIST_OUTPUT_FORMAT = binary;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../../Frameworks",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = "";
MOZ_PUBLIC_URL_SCHEME = firefox;
MOZ_TODAY_WIDGET_SEARCH_DISPLAY_NAME = "Firefox - Search";
OTHER_LDFLAGS = (
"-ObjC",
"$(inherited)",
"-Xlinker",
"-no_application_extension",
);
OTHER_SWIFT_FLAGS_common = "-DMOZ_TARGET_CLIENT";
PLIST_FILE_OUTPUT_FORMAT = binary;
PRODUCT_BUNDLE_IDENTIFIER = "org.mozilla.ios.$(PRODUCT_NAME)";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
STRINGS_FILE_OUTPUT_ENCODING = binary;
STRIP_PNG_TEXT = YES;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
SWIFT_TREAT_WARNINGS_AS_ERRORS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "iPhone, iPad";
TEST_TARGET_NAME = Client;
VALIDATE_PRODUCT = YES;
VALIDATE_WORKSPACE = YES;
};
name = FirefoxStaging;
Expand All @@ -25976,6 +26023,7 @@
EXCLUDED_SOURCE_FILE_NAMES = "Client/Nimbus/TestData/*";
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
INFOPLIST_FILE = Client/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -25991,24 +26039,32 @@
PROVISIONING_PROFILE_SPECIFIER = "BR STG org.mozilla.ios.FirefoxBeta";
SKIP_INSTALL = NO;
SWIFT_OBJC_BRIDGING_HEADER = "$(PROJECT_DIR)/Client/Client-Bridging-Header.h";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_WORKSPACE = YES;
};
name = FirefoxStaging;
};
5A9F8FD02D91C3A60019C311 /* FirefoxStaging */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_USE_SEPARATE_HEADERMAPS = NO;
CODE_SIGN_ENTITLEMENTS = "$(inherit)Extensions/Entitlements/FirefoxBeta.entitlements";
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = 43AQ936H96;
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
INCLUDE_SETTINGS_BUNDLE = NO;
INFOPLIST_FILE = Extensions/NotificationService/Info.plist;
MOZ_PUBLIC_URL_SCHEME = firefox;
MOZ_TODAY_WIDGET_SEARCH_DISPLAY_NAME = "Firefox - Search";
OTHER_SWIFT_FLAGS = "-DMOZ_CHANNEL_release -DMOZ_TARGET_NOTIFICATIONSERVICE";
OTHER_SWIFT_FLAGS_common = "-DMOZ_TARGET_CLIENT";
PRODUCT_BUNDLE_IDENTIFIER = "$(MOZ_BUNDLE_ID).$(PRODUCT_NAME)2";
PRODUCT_NAME = NotificationService;
PROVISIONING_PROFILE_SPECIFIER = "BR STG org.mozilla.ios.FirefoxBeta.NotificationSer";
SKIP_INSTALL = NO;
SWIFT_VERSION = 5.0;
TEST_TARGET_NAME = Client;
};
name = FirefoxStaging;
};
Expand Down Expand Up @@ -26437,6 +26493,7 @@
COPY_PHASE_STRIP = NO;
DEVELOPMENT_TEAM = 43AQ936H96;
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -27204,6 +27261,7 @@
EXCLUDED_SOURCE_FILE_NAMES = "Client/Nimbus/TestData/*";
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
INFOPLIST_FILE = Client/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -27461,6 +27519,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = E6DCC1ED1DCBB6AA00CEC4B7 /* Fennec.enterprise.xcconfig */;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=*]" = "iPhone Developer";
EAGER_LINKING = YES;
FUSE_BUILD_SCRIPT_PHASES = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
Expand Down Expand Up @@ -27492,6 +27551,7 @@
);
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
INFOPLIST_FILE = Client/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -27750,6 +27810,7 @@
EAGER_LINKING = YES;
FUSE_BUILD_SCRIPT_PHASES = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
MACOSX_DEPLOYMENT_TARGET = "";
OTHER_LDFLAGS = (
"$(inherited)",
"-Xlinker",
Expand All @@ -27772,6 +27833,7 @@
EXCLUDED_SOURCE_FILE_NAMES = "Client/Nimbus/TestData/*";
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
INFOPLIST_FILE = Client/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -28278,6 +28340,7 @@
COPY_PHASE_STRIP = NO;
DEVELOPMENT_TEAM = 43AQ936H96;
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"license": "MPL-2.0",
"dependencies": {
"@mozilla/readability": "^0.4.4",
"@mozilla/readability": "^0.6.0",
"darkreader": "^4.9.89",
"dompurify": "^3.2.4",
"page-metadata-parser": "1.1.4"
Expand Down
9 changes: 9 additions & 0 deletions taskcluster/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,12 @@ workers:

scriptworker:
scope-prefix: project:mobile:firefox-ios:releng

release-promotion:
flavors:
promote:
target-tasks-method: promote
push:
target-tasks-method: push
ship:
target-tasks-method: ship
2 changes: 1 addition & 1 deletion taskcluster/ffios_taskgraph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def register(graph_config):
# Setup mozilla-taskgraph
register_mozilla_taskgraph(graph_config)

_import_modules(["job", "parameters", "routes", "target_tasks"])
_import_modules(["job", "parameters", "routes", "target_tasks", "release_promotion"])


def _import_modules(modules):
Expand Down
Loading