Skip to content

Commit 9667fe4

Browse files
author
Davic Farache
committed
Version bump restore 11.0.0 with CI fix (#875)
Some additions are added on top of the referenced PR in the commit. This is a force-pushed commit to keep the latest version bump to 11.0.0 ------ Added the possibility to strictly reference to `main` and `main-xxx` branches to spin up builds. Major fixes are inherent to the `firefox-ios` path added to the `check_marketing_version.sh` script as well as some `yml` CI files for both GitHub Actions and CircleCI. We are also referencing an empty Production file (git ignored) to make easy for the CI script to inject the required production-only configs.
1 parent 3814901 commit 9667fe4

File tree

10 files changed

+43
-32
lines changed

10 files changed

+43
-32
lines changed

.circleci/config.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,12 @@ workflows:
9292
filters:
9393
branches:
9494
only:
95-
- /^.*main.*/
96-
name: Deploy release version over Testflight if MARKETING_VERION file updated
95+
- main
96+
- /^main-\d+$/
97+
name: Deploy release version over Testflight if MARKETING_VERSION file updated
9798
config-path: .circleci/deploy-release.yml
9899
mapping: |
99-
Client/Configuration/Common.xcconfig deploy-release true
100+
firefox-ios/Client/Configuration/Common.xcconfig deploy-release true
100101
- build-and-deploy-testflight-beta:
101102
name: Deploy beta version over Testflight
102103
filters:
@@ -109,5 +110,5 @@ workflows:
109110
filters:
110111
branches:
111112
only:
112-
- /^.*mob-3113-firefox-upgrade-133.*/
113+
- main
113114
context: napps

.circleci/deploy-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
command: for ip in $(dig @8.8.8.8 github.com +short); do ssh-keyscan github.com,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts
3535
- run:
3636
name: extract Production XCConfig
37-
command: echo "$PRODUCTION_XCCONFIG" | base64 --decode > Client/Configuration/Production.xcconfig
37+
command: echo "$PRODUCTION_XCCONFIG" | base64 --decode > firefox-ios/Client/Configuration/Production.xcconfig
3838
- run:
3939
name: Execute bootstrap
4040
command: ./bootstrap.sh

.github/workflows/merge_tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Merge Unit Tests
22

33
on:
44
pull_request:
5-
branches: [ main, mob-3113-firefox-upgrade-133 ]
5+
branches: [main]
66

77
jobs:
88
execute_merge_tests:

.github/workflows/snapshot_tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Snapshot Tests
33
on:
44
pull_request:
55
paths:
6-
- 'Client/Configuration/Common.xcconfig'
6+
- 'firefox-ios/Client/Configuration/Common.xcconfig'
77

88
jobs:
99
execute_snapshot_tests:

.github/workflows/swift_lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: SwiftLint
22
on:
33
pull_request:
4-
branches: [ main, mob-3113-firefox-upgrade-133 ]
4+
branches: [main]
55
jobs:
66
build:
77
runs-on: ubuntu-latest

check_marketing_version.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
#!/bin/bash
1212

1313
# Get the current branch's MARKETING_VERSION
14-
CURRENT_VERSION=$(grep 'MARKETING_VERSION' Client/Configuration/Common.xcconfig | cut -d ' ' -f3)
14+
CURRENT_VERSION=$(grep 'MARKETING_VERSION' firefox-ios/Client/Configuration/Common.xcconfig | cut -d ' ' -f3)
1515

1616
if [ -n "$CIRCLECI" ]; then
1717
# CircleCI: Compare against the previous commit on the same branch
1818
echo "Running on CircleCI, checking against $CIRCLE_BRANCH~1"
1919

2020
# Check if there is a previous commit available
2121
if git rev-parse "$CIRCLE_BRANCH~1" >/dev/null 2>&1; then
22-
OLD_VERSION=$(git show "$CIRCLE_BRANCH~1:Client/Configuration/Common.xcconfig" | grep 'MARKETING_VERSION' | cut -d ' ' -f3)
22+
OLD_VERSION=$(git show "$CIRCLE_BRANCH~1:firefox-ios/Client/Configuration/Common.xcconfig" | grep 'MARKETING_VERSION' | cut -d ' ' -f3)
2323
else
2424
echo "No previous commit found on $CIRCLE_BRANCH. Assuming the current version."
2525
OLD_VERSION=$CURRENT_VERSION
@@ -33,7 +33,7 @@ elif [ -n "$GITHUB_ACTIONS" ]; then
3333
git fetch origin main || { echo "Failed to fetch main branch"; exit 1; }
3434

3535
# Get the MARKETING_VERSION from the main branch
36-
OLD_VERSION=$(git show origin/main:Client/Configuration/Common.xcconfig | grep 'MARKETING_VERSION' | cut -d ' ' -f3)
36+
OLD_VERSION=$(git show origin/main:firefox-ios/Client/Configuration/Common.xcconfig | grep 'MARKETING_VERSION' | cut -d ' ' -f3)
3737
if [ $? -ne 0 ]; then
3838
echo "Failed to retrieve MARKETING_VERSION from main branch"
3939
exit 1

fastlane/Fastfile

+15-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ target_name = "Client"
1313
target_folder_path = "firefox-ios/#{target_name}"
1414
project_path = "#{target_folder_path}.xcodeproj"
1515
pbx_project_file = "#{project_path}/project.pbxproj"
16+
testflight_archive_args = "GCC_TREAT_WARNINGS_AS_ERRORS='NO' SWIFT_TREAT_WARNINGS_AS_ERRORS='NO' VERSIONING_SYSTEM='apple-generic' CURRENT_PROJECT_VERSION='0' FUSE_BUILD_SCRIPT_PHASES='NO'"
1617

1718
if ENV['IS_CIRCLECI']
1819
import_build_tools(
@@ -122,7 +123,8 @@ platform :ios do
122123
ci_run_build_number = ENV["CIRCLE_BUILD_NUM"]
123124

124125
udpated_build_number = increment_build_number(
125-
build_number: ci_run_build_number
126+
build_number: ci_run_build_number,
127+
xcodeproj: project_path
126128
)
127129

128130
match(
@@ -131,10 +133,21 @@ platform :ios do
131133
readonly: true
132134
)
133135

136+
build_app(
137+
scheme: "Ecosia",
138+
project: project_path,
139+
configuration: "Release",
140+
export_method: "app-store",
141+
xcargs: testflight_archive_args,
142+
skip_archive: true
143+
)
144+
134145
gym(
135146
scheme: "Ecosia",
147+
project: project_path,
136148
export_method: "app-store",
137-
configuration: "Release"
149+
configuration: "Release",
150+
xcargs: testflight_archive_args
138151
)
139152

140153
inject_appstore_connect_api

fastlane/Pluginfile

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#
33
# Ensure this file is checked in to source control!
44

5-
gem 'fastlane-plugin-appcenter'
65
gem 'fastlane-plugin-xcconfig'
76
gem 'fastlane-plugin-browserstack'
87
gem 'fastlane-plugin-firebase_app_distribution'

firefox-ios/Client.xcodeproj/project.pbxproj

+15-17
Original file line numberDiff line numberDiff line change
@@ -2768,6 +2768,7 @@
27682768
2C6045859589979C43AF09E0 /* jv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = jv; path = jv.lproj/ClearPrivateDataConfirm.strings; sourceTree = "<group>"; };
27692769
2C6C90822C614A16007D9B43 /* EcosiaSnapshotTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = EcosiaSnapshotTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
27702770
2C6E44099EACF7BE5438CEB6 /* ca */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ca; path = ca.lproj/Today.strings; sourceTree = "<group>"; };
2771+
2C7518AA2D8F025800B12F1F /* Production.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Production.xcconfig; path = Configuration/Production.xcconfig; sourceTree = "<group>"; };
27712772
2C8C07761E7800EA00DC1237 /* FindInPageTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FindInPageTests.swift; sourceTree = "<group>"; };
27722773
2C9144B0B15218D8A0FCD538 /* es-AR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "es-AR"; path = "es-AR.lproj/ClearPrivateData.strings"; sourceTree = "<group>"; };
27732774
2C97EC701E72C80E0092EC18 /* TopTabsTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TopTabsTest.swift; sourceTree = "<group>"; };
@@ -14070,6 +14071,7 @@
1407014071
E60961841B62B7E100DD640F /* Configuration */ = {
1407114072
isa = PBXGroup;
1407214073
children = (
14074+
2C7518AA2D8F025800B12F1F /* Production.xcconfig */,
1407314075
2C2F32172D46AA2C00977F55 /* EcosiaTesting.ShareTo.xcconfig */,
1407414076
2C2F32182D46AA2C00977F55 /* EcosiaTesting.WidgetKit.xcconfig */,
1407514077
2C2F32012D46A53000977F55 /* EcosiaTesting.xcconfig */,
@@ -24183,7 +24185,6 @@
2418324185
CODE_SIGN_IDENTITY = "iPhone Distribution";
2418424186
CODE_SIGN_STYLE = Manual;
2418524187
INFOPLIST_FILE = WidgetKit/Info.plist;
24186-
MARKETING_VERSION = 0.0.1;
2418724188
PRODUCT_BUNDLE_IDENTIFIER = "$(MOZ_BUNDLE_ID).WidgetKit";
2418824189
PROVISIONING_PROFILE_SPECIFIER = "match AdHoc com.ecosia.ecosiaapp.firefox.WidgetKit";
2418924190
SKIP_INSTALL = NO;
@@ -24715,7 +24716,7 @@
2471524716
buildSettings = {
2471624717
ALWAYS_SEARCH_USER_PATHS = NO;
2471724718
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
24718-
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
24719+
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
2471924720
CLANG_ANALYZER_NONNULL = YES;
2472024721
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
2472124722
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
@@ -24776,7 +24777,7 @@
2477624777
GENERATE_INFOPLIST_FILE = YES;
2477724778
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2025 Mozilla. All rights reserved.";
2477824779
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
24779-
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
24780+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
2478024781
LD_RUNPATH_SEARCH_PATHS = (
2478124782
"$(inherited)",
2478224783
"@executable_path/Frameworks",
@@ -25030,7 +25031,7 @@
2503025031
buildSettings = {
2503125032
ALWAYS_SEARCH_USER_PATHS = NO;
2503225033
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
25033-
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
25034+
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
2503425035
CLANG_ANALYZER_NONNULL = YES;
2503525036
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
2503625037
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
@@ -25091,7 +25092,7 @@
2509125092
GENERATE_INFOPLIST_FILE = YES;
2509225093
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2025 Mozilla. All rights reserved.";
2509325094
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
25094-
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
25095+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
2509525096
LD_RUNPATH_SEARCH_PATHS = (
2509625097
"$(inherited)",
2509725098
"@executable_path/Frameworks",
@@ -25125,7 +25126,7 @@
2512525126
buildSettings = {
2512625127
ALWAYS_SEARCH_USER_PATHS = NO;
2512725128
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
25128-
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
25129+
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
2512925130
CLANG_ANALYZER_NONNULL = YES;
2513025131
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
2513125132
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
@@ -25186,7 +25187,7 @@
2518625187
GENERATE_INFOPLIST_FILE = YES;
2518725188
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2025 Mozilla. All rights reserved.";
2518825189
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
25189-
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
25190+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
2519025191
LD_RUNPATH_SEARCH_PATHS = (
2519125192
"$(inherited)",
2519225193
"@executable_path/Frameworks",
@@ -25220,7 +25221,7 @@
2522025221
buildSettings = {
2522125222
ALWAYS_SEARCH_USER_PATHS = NO;
2522225223
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
25223-
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
25224+
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
2522425225
CLANG_ANALYZER_NONNULL = YES;
2522525226
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
2522625227
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
@@ -25275,7 +25276,7 @@
2527525276
GENERATE_INFOPLIST_FILE = YES;
2527625277
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2025 Mozilla. All rights reserved.";
2527725278
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
25278-
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
25279+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
2527925280
LD_RUNPATH_SEARCH_PATHS = (
2528025281
"$(inherited)",
2528125282
"@executable_path/Frameworks",
@@ -25308,7 +25309,7 @@
2530825309
buildSettings = {
2530925310
ALWAYS_SEARCH_USER_PATHS = NO;
2531025311
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
25311-
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
25312+
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
2531225313
CLANG_ANALYZER_NONNULL = YES;
2531325314
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
2531425315
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
@@ -25369,7 +25370,7 @@
2536925370
GENERATE_INFOPLIST_FILE = YES;
2537025371
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2025 Mozilla. All rights reserved.";
2537125372
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
25372-
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
25373+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
2537325374
LD_RUNPATH_SEARCH_PATHS = (
2537425375
"$(inherited)",
2537525376
"@executable_path/Frameworks",
@@ -25403,7 +25404,7 @@
2540325404
buildSettings = {
2540425405
ALWAYS_SEARCH_USER_PATHS = NO;
2540525406
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
25406-
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
25407+
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
2540725408
CLANG_ANALYZER_NONNULL = YES;
2540825409
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
2540925410
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
@@ -25464,7 +25465,7 @@
2546425465
GENERATE_INFOPLIST_FILE = YES;
2546525466
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2025 Mozilla. All rights reserved.";
2546625467
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
25467-
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
25468+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
2546825469
LD_RUNPATH_SEARCH_PATHS = (
2546925470
"$(inherited)",
2547025471
"@executable_path/Frameworks",
@@ -25813,7 +25814,7 @@
2581325814
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
2581425815
CODE_SIGN_STYLE = Automatic;
2581525816
COPY_PHASE_STRIP = NO;
25816-
CURRENT_PROJECT_VERSION = 1;
25817+
CURRENT_PROJECT_VERSION = 4;
2581725818
DEBUG_INFORMATION_FORMAT = dwarf;
2581825819
ENABLE_STRICT_OBJC_MSGSEND = YES;
2581925820
ENABLE_TESTABILITY = YES;
@@ -25946,7 +25947,6 @@
2594625947
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 33YMRSYD2L;
2594725948
INFOPLIST_FILE = WidgetKit/Info.plist;
2594825949
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
25949-
MARKETING_VERSION = 0.0.1;
2595025950
PRODUCT_BUNDLE_IDENTIFIER = "$(inherited)";
2595125951
PROVISIONING_PROFILE_SPECIFIER = "match Development com.ecosia.ecosiaapp.WidgetKit";
2595225952
SKIP_INSTALL = NO;
@@ -25988,7 +25988,6 @@
2598825988
CODE_SIGN_STYLE = Manual;
2598925989
INFOPLIST_FILE = WidgetKit/Info.plist;
2599025990
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
25991-
MARKETING_VERSION = 0.0.1;
2599225991
PRODUCT_BUNDLE_IDENTIFIER = "$(inherited)";
2599325992
PROVISIONING_PROFILE_SPECIFIER = "match AppStore com.ecosia.ecosiaapp.WidgetKit";
2599425993
SKIP_INSTALL = NO;
@@ -26004,7 +26003,6 @@
2600426003
CODE_SIGN_IDENTITY = "iPhone Distribution";
2600526004
CODE_SIGN_STYLE = Manual;
2600626005
INFOPLIST_FILE = WidgetKit/Info.plist;
26007-
MARKETING_VERSION = 0.0.1;
2600826006
PRODUCT_BUNDLE_IDENTIFIER = "$(inherited)";
2600926007
PROVISIONING_PROFILE_SPECIFIER = "match AdHoc com.ecosia.ecosiaapp.firefox.WidgetKit";
2601026008
SKIP_INSTALL = NO;

firefox-ios/Client/Configuration/Common.xcconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ DYLIB_COMPATIBILITY_VERSION = 1;
3535
DYLIB_CURRENT_VERSION = 1;
3636
DYLIB_INSTALL_NAME_BASE = @rpath
3737
PRODUCT_BUNDLE_IDENTIFIER = org.mozilla.ios.$(PRODUCT_NAME)
38-
MARKETING_VERSION = 10.6.1
38+
MARKETING_VERSION = 11.0.0

0 commit comments

Comments
 (0)