Commit Graph
593 Commits
Author SHA1 Message Date
Michael Herrmann 6e696fcf0e Bump Omaha 4 to 132.1.76.11 (#27226)
This in particular switches the update client to universal binaries.
2025-01-14 16:06:59 +01:00
Brian Johnson afd4e0239d fix overly permissive DEPS (#27193)
Fix overly permissive deps
2025-01-12 21:43:04 -07:00
cypt4 d6f3c15ee2 Add shardtree crate (#26966)
* Add shardtree crate
Resolves https://github.com/brave/brave-browser/issues/40408
2024-12-13 16:18:45 +04:00
Michael Herrmann 1b355b2011 Don't run Sparkle and Omaha 4 concurrently (#26797)
A drawback of this commit is that it also disables updates of Omaha
itself. This needs to be added back in a future commit.
2024-12-03 12:08:28 +01:00
Brian Johnson 3313ad628b remove include rules that no longer apply (#25911)
remove include rules that no longer apply and fix existing include rules
2024-10-10 16:19:48 -07:00
yan d6487b83fb bump WDP to fix audit issues 2024-10-07 12:07:40 -07:00
yan 5db654b8bd Fix various audit issues
Fix https://github.com/brave/brave-browser/issues/40973
Fix https://github.com/brave/brave-browser/issues/40974
Fix https://github.com/brave/brave-browser/issues/40975
2024-09-10 22:34:01 -07:00
yan cc0939b67f update wdp 2024-08-28 11:57:58 -07:00
github-actions[bot] cbe13b544f Update dependency vendor/web-discovery-project@a201c49963 (#25222)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-21 09:01:51 -04:00
Michael Herrmann 09d2b1d70c Use Omaha 4 in Brave.pkg when brave_enable_updater (#24676) 2024-08-16 08:20:39 +02:00
Michael Herrmann 8e3b3c4aef Make it possible to codesign, create DMG and PKG installers when cross-compiling Brave for macOS in Linux (#24701) 2024-07-20 07:26:33 +02:00
cypt4 faa4ae023c Implement shielding (#23076)
* Implement shielding
Resolves https://github.com/brave/brave-browser/issues/37201
2024-07-11 14:03:30 +07:00
goodov 9cd0d4072f Add --prepare_only to build command, move midl update to hooks (#24322)
Add 'prepare_only' to build, move midl update to hooks.
2024-06-25 00:56:55 +07:00
goodov 27cee6f0e4 Fix chromium_src includes order in .clang-format. (#23938)
* Fix chromium_src includes order in .clang-format.

* Rename things a bit.
2024-06-03 16:26:40 +02:00
Michael Herrmann edc58ea6fd Bump DEP Omaha to 1.3.361.151 (#23842)
The motivations are to bring us up-to-date with upstream and to
incorporate some security fixes.
2024-05-28 10:18:34 +02:00
Claudio DeSouza 65d62050c7 [rewrapper] Adding step to merger large cfg
This is a follow up to an analogous change done by engflow on their end.
https://github.com/EngFlow/reclient-configs/pull/10
2024-04-08 23:09:35 -04:00
Kyle Hickinson 807135c531 [iOS] Bump swift-format to 510.1.0
This version of swift-format adds support for Swift 5.10 introduced in Xcode 15.3 (https://github.com/apple/swift-format/releases/tag/510.1.0). A recursive format on the `ios/brave-ios` folder was also run to pick up any updated formatting.
2024-04-03 11:36:45 -04:00
yan e8c0f527dc Update DEPS to fix express in WDP
fix https://github.com/brave/brave-browser/issues/37081
2024-03-26 09:36:33 -07:00
yan 77e35a61f3 update wdp dep
https://github.com/brave/web-discovery-project/pull/372
2024-03-14 15:36:17 -07:00
Brian Johnson afb81b3f21 move rust crates to chromium_crate_io (#21759)
Chromium changed the location of vendored crates and now uses Cargo.toml directly to manage dependencies
https://source.chromium.org/chromium/chromium/src/+/0ec93d1ef9e4d367ee428d2fa8827c226107a440
This change moves all the vendored files to the new location and patches gnrt to work correctly in the brave third_party/rust directory. All build files for rust dependencies were regenerated using gnrt.
2024-03-12 11:16:32 -07:00
Szilard Szaloki ed1ffc55f2 Eliminates roundtrips between browser and renderer 2024-02-28 15:21:45 -05:00
Kyle Hickinson 8cd62ad5e0 [iOS] Download up-to-date swift-format and enable swift formatting
Also updates a few swift formatting rules based on iOS team feedback
2024-02-27 09:53:05 -05:00
eV 2c9a52afba switch to git hash as merged 2024-02-16 15:47:22 -05:00
eV 00980fb89a change unwrap interface to result in boxed return value 2024-02-16 15:46:44 -05:00
Szilard Szaloki ce56d1aba3 Fixes Playlist's dependency. 2024-02-15 11:52:50 -05:00
Sangwoo Ko 3f4db82f8d Defer media detection on certain sites (#21332)
* Defer media detection on certain sites

On certain sites, such as YouTube, media detection is resource-intensive.
This is due to the necessity of loading the same page within a background
web contents once again, so that we can hide media source API or fake UA
string. Otherwise, Getting downloadable video url is impossible.

Previously, we executed the media detection script each time navigation
occurred, displaying playlist action icon view on location bar when there're
media that can be added. But this had noticeable impact on performance
and memory usage when visiting sites like Youtube.

To mitigate this, we will defer media detection on these sites. Instead,
the playlist action icon will be displayed when the page URL aligns with
known rule sets. Upon clicking the icon, the media detection process will
be initiated.

Note that on sties in which media detection can be done without a background
web contents, media detection will be executed as before, on navigation.
2024-02-14 22:05:40 +09:00
Kyle Hickinson 92a6afaf0e [iOS] brave-ios migration follow-ups (#22010)
* [iOS] Don't fail to validate Package.swift when missing `.env` file

* [iOS] Switch `ios_bootstrap` to use `python3` directly over `vpython3`

Also fixes the options passed into `util.run`

* [iOS] Fix core build config when using 'Debug (App Store)' scheme
2024-02-13 15:14:22 -05:00
Kyle HickinsonandMihai PLESA c8f8ba0e47 Migrate brave-ios into brave-core (#21553)
* update build script, move core package directory

* Use xcode scheme pre-actions

* Make args file with version & api keys, remove unused configs

* Update dev to nightly naming, cleanup, fix missed test

* Remove brave-core-ios from package, update bootstrap

* dont remove frameworks early

* Move brave-ios npm packages into brave-core, cleanup

* Disable swift-format for now, disable clang-format on ThirdParty dir

* Build frameworks to src/out directory instead of inside brave-ios folder

* Move ios third party deps to brave/third_party/ios_deps directory

* Fix bootstrap copy with new directories, more cleanup

* Add iOS unit tests to `npm run test` command

* Remove swift formatting from presubmit

* Use symlink to output directory, move xcframework creation to npm cmd

* Add license checker special cases for iOS deps

* Presubmit fixes

* Replace `build_in_core` shell script with `scheme_preaction` python

- Adds `brave_ios_marketing_version` config and adds pre-actions for all main schemes
- Re-add Nightly (Dev) scheme

* Cleanup bootstrap, complete dev to nightly rename, remove Local xcconfigs

Plus format/presubmit fixes

* Remove SPM Package.resolved and ignore it

We won't be using the non-Xcode project based build system

* Update presubmit config, Remove macOS wireguard framework prebuild

* Add license info for moved brave-ios npm packages

* Exclude third_party/ios_deps from cpplint

* Add DEPS file to Guardian dep

* Rename brave_version_patch to illustrate its for iOS only

* Use correct GN configuration based on Xcode configuration

* Allow ios bootstrap script to be run from any directory. Update README

* Make fastlane channel builds also release to testers

Also fixes an issue where Xcode injected environment variables were available during GN builds which would cause build failures in Release configurations

* Remove clean git status check from fastlane

* Update fastlane script to always run bootstrap

* Fix bootstrap script copying placeholders to the wrong directory

* Disable xcpretty in fastlane scripts

* Fix debug scheme entitlements now that it shares nightly bundle id

* Update simulator target in fastlane unit test lane

* Disable xcpretty on unit tests and fixup test build

* Add provisioning profiles for nightly builds

* Expand relative directories in bootstrap

* Add explicit provisioning for nightly

* Fix tests & export junit reports

* Update nightly provisioning profile names

* Remove all skipped tests

* Fix failing unit tests

* Add explicit provisioning profiles for beta & release

* Remove app center fastlane plugin and ignore fastlane test_output in git

* Cleanup Xcode project config

* Fix invalid code signing identities on individual targets

* Skip flaky wallet tests, re-add automatic signing for debug builds

* Fix flaky CoreData tests by guaranteeing view context merge

* Update Jenkinsfile

* Move Xcode derived data directory to src/out for CI builds

* Remove 'No Changes' CoreData test

* Fixed missed Xcode derived data directory setting for iPad test build

* Fix iPad test plan

* Separate testflight build & upload into multiple fastlane runs

* Add version string to MaterialComponents during preaction

* Add ability to pass in PUBLIC CI arg into fastlane upload lane

* Cleanup config & presubmit rules

* Add explicit licenses/README.chromium's for third party iOS deps

* Presubmit cleanup/fixes

* Change Xcode preactions to run on xcframeworks instead of GN outputs

This avoids rebuilds that are due to BraveCore.framework and MaterialComponents.framework folders being touched in the out directory when we cleanup chromium assets and fix the MaterialComponents Info.plist

* Improve debugging when `strip_absolute_paths_from_debug_symbols` is true

- The bootstrap script now generates an LLDBInit that is used for Debug schemes. This file contains an lldb target.source-map to allow lldb to resolve breakpoints
- SPM & Xcode now build with the `-debug-prefix-map` swift flag so that all iOS files built out of GN also have relative debug paths
- Replace compilation flags being defined with OTHER_SWIFT_FLAGS to use SWIFT_ACTIVE_COMPILATION_CONDITIONS instead

* Remove SPM reload during preaction and use .env for Package.swift

This removes a race that could happen when reloading the package during the build

* Add Action Extension provisioning profiles and fix its xcode build settings

* Move xcframework creation command into separate file

* Fixup nvm/brew npm PATHs in Xcode pre-action script

* Move iOS bootstrap into gclient runhook, rename current_link

* Bootstrap script improvements based on feedback

* Rebase master/fix bootstrap import

* Bootstrap script improvements based on feedback pt2

* Revert Jenkinsfile change

* Move CheckNoJsInIos and CheckNoDeprecatedCss into permanent ignores

* Rebase master & fix wallet mock asset ratio service

---------

Co-authored-by: Mihai PLESA <mplesa@brave.com>
2024-02-12 13:26:42 -05:00
Michael Herrmann 887fd7a864 Bump DEP Omaha to 1.3.361.149 (#21814)
The motivations are to bring us up-to-date with upstream and to
incorporate some security fixes.
2024-01-31 16:24:30 +01:00
Ralph Giles 53801ab7d6 speedreader: port to kuchikiki 0.8.2
We renamed our fork of the kuchiki tree-handling crate since
upstream is unmaintained. It's easier to build against released
crates now that we're vendoring, so move to the new publication
crate name. This also addresses a `cargo audit` warning about
the unmaintained dependency.

Note however that we're still using a brave-specific fork from
git here, so the crate itself is still installed from DEPS.

This adds a new transitive dependency on `indexmap`, which is used
to roundtrip html attributes with stable ordering so unit tests
don't need trivial updates whenever we touch something.
This dependency was for a while available in upstream chromium,
but has since been dropped, so we're using our own copy under
brave/third_party/rust.

kuchikiki 0.8.2 specifies newer versions of its other dependencies
but seems to still work when built against the old releases, so
those are left to another commit.

This replaces the DEPS entry with a copy of the source from
https://github.com/brave/kuchikiki for simpler updating.
Note that this is still a patched version, different from
the 0.8.2 package published on crates.io.
2024-01-25 11:43:36 -08:00
Aleksey Khoroshilov 7a679b1b59 Merge pull request #21539 from brave/ffmpeg-dynamic-alloc
Use dynamic allocation for ffmpeg fft tables on Windows.
2024-01-15 17:21:58 +07:00
bridiver 4b2d88ece4 remove vendor/requests 2024-01-12 14:24:56 +07:00
bridiver d4ab4e3184 cleanup bootstrap 2024-01-12 14:24:56 +07:00
Aleksey Khoroshilov 6cc4b1908a Use dynamic allocation for ffmpeg fft tables on Windows. 2024-01-10 21:00:53 +07:00
Wojciech KnapikandMihai PLESA 9400d7cde5 Bumped follow-redirects and WDP to address GHSA-jchw-25xp-jwwc (#21521)
* Bumped follow-redirects to address GHSA-jchw-25xp-jwwc

* Update DEPS

* Removed an unused label from labeler

---------

Co-authored-by: Mihai PLESA <mplesa@brave.com>
2024-01-09 11:36:48 -05:00
Darnell Andries 0d893a138e Merge pull request #21115 from brave/update-star
Update sta-rs and transitive deps, add P3A revision header
2023-12-05 13:43:48 -08:00
Rémi Berson 1f1e742ec1 Bump web-discovery-project revision 2023-12-04 23:12:46 +01:00
Darnell Andries dbff77d480 Update sta-rs and transitive Rust deps, add P3A revision header to separate broken measurements 2023-12-01 15:51:48 -08:00
Mikhail 024a795751 Revert ffmpeg to acb78dc0f416f6ef009192d94dc07c05effabfda (#21160)
* Revert ffmpeg to acb78dc0f416f6ef009192d94dc07c05effabfda
* Remove print
2023-11-30 11:59:58 -05:00
Aleksey Khoroshilov cae1250a33 Merge pull request #21039 from brave/engflow_reclient_configurator
Replace reclient configurator with EngFlow-supported one.
2023-11-27 14:21:23 +07:00
Michael Herrmann 5988932a82 Fix on-demand update problems on Arm64 Windows (#21110) 2023-11-26 20:00:52 -05:00
Aleksey Khoroshilov 05ac071ab5 Replace reclient configurator with EngFlow-supported one. 2023-11-24 13:30:41 +07:00
Michael Herrmann 3110c905a3 Fix Windows offline installer (#20957) 2023-11-13 02:22:43 -05:00
Michael Herrmann 514bdd7ab2 Support variations on Windows first run (#20829) 2023-11-09 05:52:09 -05:00
Aleksey Khoroshilov 43cc31a3dc Add reclient configs and remote wrappers generator. 2023-11-01 13:53:03 +07:00
Sangwoo Ko 208f008cf6 Allow only media with https scheme (#20534)
Bumping up the playlist component as per https://github.com/brave/playlist-component/pull/33
The new playlist component also will be published via our updater when CI passes all tests in this PR.
2023-10-17 22:18:13 -04:00
yan 52be7f5927 Upgrade @babel/traverse using npm overrides
Fix https://github.com/brave/brave-browser/issues/33659
2023-10-17 12:14:17 -07:00
Michael Herrmann 77519729a6 Support universal channels in Windows online installer (#20558)
Make Windows online installer universal

Before this commit, the x64 online installer installed x64 Brave, even
on Arm64 Windows. Now, if the update server offers an Arm64 binary on
the right channel, the online installer will install Arm64 Brave.
2023-10-17 16:14:10 +02:00
Anton Paymyshev 3b7369bbe3 Bump bitcoin-core version to v25.0 (#20455) 2023-10-11 06:08:51 -04:00
Pete Miller 96bb4d2c4b Introduce brave_services_{production, staging, dev}_domain build flag
So that we don't need a new buildflag for every new API hostname
2023-10-04 09:42:49 -07:00