Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ping changes #67

Open
wants to merge 319 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
319 commits
Select commit Hold shift + click to select a range
28dfc0b
added icons for other builds as well
Nikhil7174 Jun 6, 2024
760e024
set showStats to false by default and reverted ui changes
Nikhil7174 Jun 8, 2024
caff5f1
latest parental controls
udaybansal19 Jun 8, 2024
76af85c
Fix transpile step
udaybansal19 Jun 9, 2024
797c911
Rebranded strings, removed AIChat, News, rewards sections
udaybansal19 Jun 10, 2024
8e2e501
disabled ask leo suggestion and sponsored images
udaybansal19 Jun 10, 2024
1ee2cfa
Changed app name and localised strings
udaybansal19 Jun 10, 2024
7fa366b
Updated app icons
udaybansal19 Jun 10, 2024
3bf34f3
renoved extra white spaces
Nikhil7174 Jun 10, 2024
27af60e
Disabled onboarding step in ios
udaybansal19 Jun 10, 2024
56db837
Merge pull request #31 from ping-browser/nikhil/sync-brave-latest
Nikhil7174 Jun 10, 2024
ee3e5a8
Changed icons in NTP and share
udaybansal19 Jun 10, 2024
572b6d3
Branded widgets
udaybansal19 Jun 10, 2024
a9e9ab8
Fixed remainging string files
udaybansal19 Jun 12, 2024
99cf7a4
Missing changes for adding extensino
udaybansal19 Jun 15, 2024
9028a29
Fixed parental control extension
udaybansal19 Jun 16, 2024
1e1f3e5
Updated app icon
udaybansal19 Jun 16, 2024
130832c
trying workaround for csp, ping:// url fix, changed new tab bg
Nikhil7174 Jun 19, 2024
88e6713
Added botan integration using cmake build- building a dynamic library…
scheleon Jun 22, 2024
b04c1e0
added pdf rendering and sign selection area ui
Nikhil7174 Jun 22, 2024
4c1668a
Fixed brave VPN
udaybansal19 Jun 22, 2024
256195a
added support for multiple pages and resolved few bugs
Nikhil7174 Jun 22, 2024
48a6aac
minor changes
Nikhil7174 Jun 22, 2024
c27474b
removed extra space
Nikhil7174 Jun 22, 2024
28a7950
added pdfRenderer in a new .tsx file
Nikhil7174 Jun 23, 2024
3e9d6bb
Merge pull request #32 from ping-browser/ping-ios
udaybansal19 Jun 23, 2024
876b653
Merge pull request #29 from ping-browser/bhavyakala/dev
udaybansal19 Jun 23, 2024
99e886c
Removed incorrect changes
udaybansal19 Jun 23, 2024
5c3a404
files restructured
Nikhil7174 Jun 23, 2024
a9af605
reverted bg changes
Nikhil7174 Jun 23, 2024
9af076e
minor changes
Nikhil7174 Jun 23, 2024
903bdf9
Merge pull request #33 from ping-browser/nikhil/sync-brave-latest
Nikhil7174 Jun 23, 2024
818d16e
rebase
scheleon Jun 23, 2024
f780a6b
Merge branch 'main' into latest-merge
udaybansal19 Jun 24, 2024
a66ad6d
Merge pull request #35 from ping-browser/latest-merge
udaybansal19 Jun 24, 2024
59e97b4
Merge branch 'botan-integration' into latest-merge
udaybansal19 Jun 24, 2024
b18ebbb
Adds botan third party library support framework
scheleon Jun 24, 2024
859440d
Fixes build gn file copy policy
scheleon Jun 24, 2024
4a552e4
adds gitignore file
scheleon Jun 24, 2024
8675fa2
adds gitignore file
scheleon Jun 24, 2024
fbd217e
added selection while scrolling and other ui changes
Nikhil7174 Jun 25, 2024
7bbc152
sync with sync-brave-latest
Nikhil7174 Jun 25, 2024
23edc6d
Merge pull request #39 from ping-browser/botan-integration
udaybansal19 Jun 27, 2024
aa41538
Merge pull request #40 from ping-browser/sync-brave-latest
udaybansal19 Jun 27, 2024
77098ac
final pdf renderer changes and fixed timer issue in ping internal par…
Nikhil7174 Jun 27, 2024
a262b9e
Merge pull request #37 from ping-browser/nikhil/sync-brave-latest
Nikhil7174 Jun 27, 2024
4710ce6
Added docSigner contextMenu inside brave extension, added prompt popu…
Nikhil7174 Jun 28, 2024
7cdacb3
resolved errors regarding rendering popups
Nikhil7174 Jun 29, 2024
f1f0723
Merge pull request #42 from ping-browser/nikhil/sync-brave-latest
Nikhil7174 Jun 29, 2024
70ac268
Implemented parental control new ui
Nikhil7174 Jul 6, 2024
d22c3c5
added static resource in parental control resources.grd
Nikhil7174 Jul 6, 2024
4b54f21
added padding in input placeholder
Nikhil7174 Jul 6, 2024
84daeab
Merge pull request #43 from ping-browser/nikhil/sync-brave-latest
Nikhil7174 Jul 6, 2024
0c6f668
Merge pull request #36 from ping-browser/pkcs11-api
scheleon Jul 6, 2024
4a7d6ca
Revert "Merge pull request #36 from ping-browser/pkcs11-api"
udaybansal19 Jul 6, 2024
14ec596
Release config
udaybansal19 Jul 6, 2024
c11f7dc
IOS - hindi translations
udaybansal19 Jul 6, 2024
28bb4fa
IOS - fixed hindi translations
udaybansal19 Jul 7, 2024
12d4efb
Merge branch 'sync-brave-latest' of github.com-pers:Ping-browser/ping…
udaybansal19 Jul 7, 2024
ebf5ba0
IOS - translation file reference
udaybansal19 Jul 7, 2024
0601f7e
IOS - build v2
udaybansal19 Jul 7, 2024
438e833
changes for adding ping_ai_copilot
Nikhil7174 Jul 7, 2024
2aa334f
Merge pull request #44 from ping-browser/ios-fixes
udaybansal19 Jul 7, 2024
6a0db09
Minor ui fixes
udaybansal19 Jul 8, 2024
8a9eae3
Merge pull request #46 from ping-browser/ui-fixes
udaybansal19 Jul 8, 2024
091c5ca
Fixed extension api
udaybansal19 Jul 8, 2024
ad0b44a
added changes according to the new flow,
MasterK0927 Jul 7, 2024
a8bc1d4
implemented the new logic
MasterK0927 Jul 8, 2024
072d610
file path corrections in resources.grd
Nikhil7174 Jul 8, 2024
059800d
added ui design for doc signer
MasterK0927 Jul 10, 2024
82e920c
Added the UI part dor the document Signer
MasterK0927 Jul 11, 2024
3c2aed4
added further improvements
MasterK0927 Jul 12, 2024
b69751f
integrated signing and verifying pdf with the ui
MasterK0927 Jul 13, 2024
6aec43f
removed extension based signing and verifying flow.
MasterK0927 Jul 13, 2024
3518ce5
Merge pull request #52 from ping-browser/keshav-signer-new-update
MasterK0927 Jul 13, 2024
5fbe8d9
Fixed tested UI integration with chrome.pkcs11
udaybansal19 Jul 13, 2024
4d62f9b
Merge branch 'pkcs11-api' into pkcs11-merge
udaybansal19 Jul 13, 2024
edf597c
Merge branch 'sync-brave-latest' of https://github.com/ping-browser/p…
Jul 14, 2024
ac31690
Integrated botan with new UI
udaybansal19 Jul 15, 2024
1b959a7
implemented signature calculation using low_level cryptoki lib
udaybansal19 Jul 15, 2024
ed04e73
implemented signature calculation using low_level cryptoki lib
udaybansal19 Jul 15, 2024
77e2333
Merge branch 'pkcs11-merge' of github.com-pers:Ping-browser/ping-core…
udaybansal19 Jul 15, 2024
4ce1250
changed support url
MasterK0927 Jul 15, 2024
d6ec42c
remove libbotan from git ignore
udaybansal19 Jul 15, 2024
c18292d
added mac libraries for botan
udaybansal19 Jul 15, 2024
2037b34
add cmakelists.txt file to git
udaybansal19 Jul 15, 2024
8dc9f86
Added libraries files for build time support
udaybansal19 Jul 15, 2024
1c83a89
Merge pull request #54 from ping-browser/keshav-signer-new-update
MasterK0927 Jul 15, 2024
f605b37
added high contrast and screen reader
Nikhil7174 Jul 15, 2024
af7eba2
removed co-pliot
Nikhil7174 Jul 15, 2024
f3ebbfc
removed unwanted changes
Nikhil7174 Jul 15, 2024
eb2e2c2
minor chnage
Nikhil7174 Jul 15, 2024
823b3ac
removed parental control changes
Nikhil7174 Jul 15, 2024
b8e3aee
Merge pull request #45 from ping-browser/nikhil/sync-brave-latest
Nikhil7174 Jul 15, 2024
c49cf5d
removed hsm path
udaybansal19 Jul 15, 2024
8728b20
Merge pull request #56 from ping-browser/sync-brave-latest
udaybansal19 Jul 16, 2024
54f561f
add ping_ai_copilot extension fix
Jul 16, 2024
3b5f12a
enable brave shields for windows and icon change
Jul 17, 2024
26b3a62
changes for ai_copilot
Nikhil7174 Jul 18, 2024
28c8702
fixed ping_ai_copilot
Nikhil7174 Jul 19, 2024
2a6b1a5
minor changes
Nikhil7174 Jul 19, 2024
27e08fd
Merge pull request #57 from ping-browser/bhavyakala/shields
Bhavyakala Jul 19, 2024
a3b3978
highContrast changes
Nikhil7174 Jul 20, 2024
da35da1
made low_level.cc compatible with linux and mac
udaybansal19 Jul 20, 2024
429202e
restructured the pdf_signer codebase
MasterK0927 Jul 21, 2024
ec917f9
added changes in brave_vpn for preveting the crash on linux
MasterK0927 Jul 21, 2024
50ac0a5
Merge pull request #59 from ping-browser/nikhil/features/highContrast
Nikhil7174 Jul 21, 2024
b6b427e
modified error text
Nikhil7174 Jul 21, 2024
8951a99
Merge pull request #58 from ping-browser/nikhil/sync-latest-extension
Nikhil7174 Jul 22, 2024
5832365
ui fixes and final migration to typescript standards.
MasterK0927 Jul 22, 2024
1658d93
Merge branch 'main' of github.com-pers:Ping-browser/ping-core into ud…
udaybansal19 Jul 22, 2024
f62c96d
changes
MasterK0927 Jul 26, 2024
719fff7
Removed proxying for api requests and added variables for safebrowsin…
udaybansal19 Jul 27, 2024
ad1b451
Removed proxying for api requests and added variables for safebrowsin…
udaybansal19 Jul 27, 2024
0431961
Merge pull request #61 from ping-browser/safebrowsing-api
udaybansal19 Jul 27, 2024
5f07afc
Fix build failures due to crypto signing on mobile platforms
scheleon Jul 28, 2024
0fcaa93
Merge pull request #60 from ping-browser/pkcs11-merge
udaybansal19 Jul 28, 2024
a88a8aa
Merge branch 'main' of github.com-pers:Ping-browser/ping-core into ud…
udaybansal19 Jul 28, 2024
5e19940
added links
MasterK0927 Jul 28, 2024
ce49e51
added solana mainnet url
udaybansal19 Jul 28, 2024
4921588
Merge remote-tracking branch 'main-ping/main' into keshav-signer-new-…
MasterK0927 Jul 28, 2024
86c5168
resolve conficts
MasterK0927 Jul 28, 2024
961d687
Merge pull request #63 from ping-browser/keshav-signer-new-update
udaybansal19 Jul 28, 2024
851ab7e
Merge branch 'main' of github.com-pers:Ping-browser/ping-core into ud…
udaybansal19 Jul 28, 2024
06a7045
added images
MasterK0927 Jul 28, 2024
4b53aa0
Merge pull request #64 from ping-browser/keshav-signer-new-update
udaybansal19 Jul 28, 2024
c5ecf65
Merge branch 'main' of github.com-pers:Ping-browser/ping-core into ud…
udaybansal19 Jul 28, 2024
cf7c8c4
build fix
udaybansal19 Jul 28, 2024
a6793a6
Merge pull request #62 from ping-browser/uday-latest-sync
udaybansal19 Jul 28, 2024
aca2807
Web3 UI fixes and signer error handling
udaybansal19 Jul 28, 2024
cf3328f
Merge pull request #65 from ping-browser/uday-latest-sync
udaybansal19 Jul 28, 2024
c2d5d9e
component updater changes
Jul 28, 2024
ff92b33
Merge branch 'main' of https://github.com/ping-browser/ping-core into…
Jul 28, 2024
4cd09b5
fixed api call for heading text, icon visibilty for ai summarizer
Nikhil7174 Jul 29, 2024
9b5bd18
added high contrast in contextMenu
Nikhil7174 Jul 30, 2024
cab7c98
fixed summarizer icon repositioning and text selection range by no. o…
Nikhil7174 Aug 1, 2024
a47f7ff
changed word limit
Nikhil7174 Aug 1, 2024
6ec93af
Merge pull request #66 from ping-browser/nikhil/main-latest
Nikhil7174 Aug 2, 2024
379408f
pdf-signer layout changes
Nikhil7174 Aug 6, 2024
47de3d5
added proper indentation to header logo
Nikhil7174 Aug 6, 2024
5d398ab
Merge pull request #68 from ping-browser/nikhil/main-latest
Nikhil7174 Aug 6, 2024
58741a4
Merge branch 'main' of https://github.com/ping-browser/ping-core into…
Aug 10, 2024
e0864dd
add wallet and extensions
Bhavyakala Aug 11, 2024
c6d0c15
Merge pull request #70 from ping-browser/bhavyakala/omaha
Bhavyakala Aug 11, 2024
c8717c5
Fixed icon visibility on clicking, its position while scrolling, sett…
Nikhil7174 Aug 11, 2024
bc6e014
Merge pull request #71 from ping-browser/nikhil/main-latest
Nikhil7174 Aug 11, 2024
047c52e
implemented animation for loading to expansion of summary-box
Nikhil7174 Aug 11, 2024
a7dafac
Added animation for loading to expansion of the summary-box
Nikhil7174 Aug 11, 2024
26df38f
added loading to expansion animation for summary box
Nikhil7174 Aug 11, 2024
586948b
reverted changes
Nikhil7174 Aug 11, 2024
6ec8519
bug fix: fix component id and manisfest key
Bhavyakala Aug 11, 2024
b107445
Merge pull request #73 from ping-browser/bhavyakala/omaha
Bhavyakala Aug 11, 2024
fe0adce
resolved ai-summarizer icon overlapping selected text
Nikhil7174 Aug 11, 2024
08008cb
removed loading animation for every page and added one animation for …
Nikhil7174 Aug 11, 2024
e196bbc
Merge pull request #72 from ping-browser/nikhil/main-latest
Nikhil7174 Aug 12, 2024
f995a6f
added loader
MasterK0927 Aug 10, 2024
686d7e8
fixed open bugs
MasterK0927 Aug 10, 2024
e7be948
pin popup, error popup, error handling, tooltip
MasterK0927 Aug 13, 2024
96b2129
fixed review changes
MasterK0927 Aug 15, 2024
968a1bf
fixed review issues
MasterK0927 Aug 15, 2024
1382ea4
added tooltip support, all known bugs fixed
MasterK0927 Aug 16, 2024
1f6fff9
added tooltip support, fixed all the known bugs
MasterK0927 Aug 17, 2024
7e372c1
added new changes and some sub major fixes
MasterK0927 Aug 18, 2024
ac7883b
replaced emojis with icons
MasterK0927 Aug 19, 2024
7267a2a
Merge pull request #76 from ping-browser/sign-final-keshav
MasterK0927 Aug 19, 2024
657f217
android urls, app icon, shields changes
Nikhil7174 Aug 20, 2024
1ae2833
Fixes for ping wallet
udaybansal19 Aug 21, 2024
bac6742
Ping icon fix
udaybansal19 Aug 21, 2024
acb7294
Ping icon fix
udaybansal19 Aug 21, 2024
e497589
Merge pull request #78 from ping-browser/wallet-fixes
udaybansal19 Aug 21, 2024
a1f9c1a
Android changes-2
Nikhil7174 Aug 22, 2024
4805b36
syncing with main
Nikhil7174 Aug 22, 2024
e6b5bc7
ADDED THE NEW FLOW
MasterK0927 Aug 22, 2024
ad2d9f3
android urls, app icon, shields changes
Nikhil7174 Aug 20, 2024
e81f802
Android changes-2
Nikhil7174 Aug 22, 2024
8fe8910
added the new flow
MasterK0927 Aug 24, 2024
9063fc8
added constants
MasterK0927 Aug 26, 2024
94a5db9
solved known issues
MasterK0927 Aug 27, 2024
9d339c6
added changes in signature method component
MasterK0927 Aug 28, 2024
2083e33
resolved conflicts
MasterK0927 Aug 29, 2024
b71683b
implemented verification of multiple signatures
MasterK0927 Aug 29, 2024
b3b4708
added the required changes
MasterK0927 Sep 1, 2024
a9d1c6c
resolved comment
MasterK0927 Sep 3, 2024
3a29942
Merge pull request #79 from ping-browser/sign-final-keshav
MasterK0927 Sep 3, 2024
ec86bfa
implemented ai rephraser
Nikhil7174 Sep 8, 2024
3c6b0ec
merge conflicts
Nikhil7174 Sep 8, 2024
e8a9979
minor styling
Nikhil7174 Sep 9, 2024
ecfa2d1
final changes for ai-rephraser
Nikhil7174 Sep 16, 2024
822ab70
resolved all issues regarding rephraser
Nikhil7174 Sep 19, 2024
73ff2e6
Merge pull request #77 from ping-browser/nikhil/main-latest
Nikhil7174 Sep 20, 2024
fd01b95
resolved tooltip's visibility in parental control popup
Nikhil7174 Sep 25, 2024
dde3418
Merge pull request #81 from ping-browser/nikhil/ntp
Nikhil7174 Sep 25, 2024
550761d
dylan_malval_sea_min
Nikhil7174 Sep 27, 2024
8ccabf2
Config changes for signing mac app
udaybansal19 Oct 9, 2024
877e991
refactored summarizer and rephraser
Nikhil7174 Oct 10, 2024
d2ea4b7
removed reload opt for now
Nikhil7174 Oct 10, 2024
ea81140
fixed issue of multiple times clicking retry button
Nikhil7174 Oct 10, 2024
0e29f77
improvements in summarizer and rephraser
Nikhil7174 Oct 15, 2024
30ea410
added check for differentiating between normal and resizable element …
Nikhil7174 Oct 16, 2024
8cba74f
fixes for summarizer icon coming at top left corner
Nikhil7174 Oct 16, 2024
7027163
rephraser changes
Nikhil7174 Oct 21, 2024
bff01d2
final rephraser changes
Nikhil7174 Oct 21, 2024
87efffa
mac bundle id changed
udaybansal19 Oct 21, 2024
c047e08
updated provisionprofile
udaybansal19 Oct 21, 2024
2793c28
ios updates
udaybansal19 Oct 22, 2024
a96fe62
Merge pull request #83 from ping-browser/ios-release
udaybansal19 Oct 22, 2024
c73d0d2
Merge branch 'main' of github.com:ping-browser/ping-core into mac-rel…
udaybansal19 Oct 22, 2024
74f1e91
final changes
Nikhil7174 Oct 22, 2024
1f8db2f
changed setInterval time for checking availability of textbox
Nikhil7174 Oct 22, 2024
ce95071
Merge pull request #82 from ping-browser/nikhil/ntp
udaybansal19 Oct 22, 2024
4514801
Merge branch 'main' of github.com:ping-browser/ping-core into mac-rel…
udaybansal19 Oct 22, 2024
c7b63bb
Merge pull request #84 from ping-browser/mac-release
udaybansal19 Oct 22, 2024
3693cc8
Merge branch 'main' into chrome-130
udaybansal19 Oct 24, 2024
52914a0
Fixed string files
udaybansal19 Oct 24, 2024
c95c2bc
new tab page and logo fixes
udaybansal19 Oct 25, 2024
4059f48
Wallet ui fixes
udaybansal19 Oct 25, 2024
b34a3a6
parental control sessionTimeout fixes
Nikhil7174 Oct 25, 2024
50bd280
some fixes
Nikhil7174 Oct 25, 2024
fb36a6a
settings ui fixes
udaybansal19 Oct 26, 2024
b2b670a
minor changes
Nikhil7174 Oct 27, 2024
5aafd3a
minor changes
Nikhil7174 Oct 27, 2024
a787065
Merge pull request #85 from ping-browser/nikhil/ntp
Nikhil7174 Oct 27, 2024
591bc64
Fixed ping icons in omnibox and infobar
udaybansal19 Oct 27, 2024
95af513
hid sidebar option in main hamburger menu
udaybansal19 Oct 27, 2024
91d322b
fixed ad blocker
udaybansal19 Oct 27, 2024
39f3dd4
fix context menu and high contrast
udaybansal19 Oct 27, 2024
be3d29e
fixed internal url brave -> ping
udaybansal19 Oct 27, 2024
617788e
Supressed unsafe buffer warning for low_level.cc
udaybansal19 Oct 27, 2024
9cfa294
removed TODOs
udaybansal19 Oct 27, 2024
8f5ac97
hidden leo icons in release build
udaybansal19 Oct 28, 2024
6f6f883
Fixed leo chat settings and omnibaox shortcut
udaybansal19 Oct 28, 2024
51b605b
updated mac config
udaybansal19 Oct 28, 2024
045fa08
ios fixes
udaybansal19 Oct 30, 2024
6f1a6fb
sync icon
udaybansal19 Oct 30, 2024
53d0b2c
sync icons
udaybansal19 Oct 30, 2024
192f9f7
Merge branch 'main' of https://github.com/ping-browser/ping-core into…
Bhavyakala Nov 1, 2024
25d2e49
Synced latest root store
udaybansal19 Nov 1, 2024
2d16abd
Merge branch 'chrome-130' of github.com:ping-browser/ping-core into c…
udaybansal19 Nov 1, 2024
6b06e03
Merge branch 'chrome-130' of https://github.com/ping-browser/ping-cor…
Bhavyakala Nov 2, 2024
609f16a
change azure endpoint
Bhavyakala Nov 2, 2024
d5c9fc0
Merge branch 'chrome-130' of github.com:ping-browser/ping-core into c…
udaybansal19 Nov 2, 2024
10e4ed3
//mojo/public/mojom/
Nikhil7174 Nov 3, 2024
421be2f
Merge branch 'chrome-130' of https://github.com/Ping-browser/ping-cor…
Nikhil7174 Nov 3, 2024
03b874e
android chromium-130 changes
Nikhil7174 Nov 3, 2024
dc28efa
ios internal url fixes
udaybansal19 Nov 4, 2024
9e806c7
android minor changes
Nikhil7174 Nov 4, 2024
e71b990
brave-stats hidden
Nikhil7174 Nov 4, 2024
d3bcbe3
resolved commets
Nikhil7174 Nov 10, 2024
5c7c61e
Merge pull request #86 from ping-browser/nikhil/chrome-130
Nikhil7174 Nov 10, 2024
98cf6a7
Merge pull request #87 from ping-browser/chrome-130
udaybansal19 Nov 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
157 changes: 145 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,151 @@
# Brave Core

Brave Core is a set of changes, APIs, and scripts used for customizing Chromium to make the Brave browser. Please also check https://github.com/brave/brave-browser
## Install prerequisites

Follow [@brave](https://twitter.com/brave) on Twitter for important announcements.
Follow the instructions for your platform:

## Resources
- [macOS](https://github.com/brave/brave-browser/wiki/macOS-Development-Environment)
- [iOS](https://github.com/brave/brave-browser/wiki/iOS-Development-Environment)
- [Windows](https://github.com/brave/brave-browser/wiki/Windows-Development-Environment)
- [Linux/Android](https://github.com/brave/brave-browser/wiki/Linux-Development-Environment)

- [Issues](https://github.com/brave/brave-browser/issues)
- [Releases](https://github.com/brave/brave-browser/releases)
- [Documentation wiki](https://github.com/brave/brave-browser/wiki)
## Clone and initialize the repo

## Community
Once you have the prerequisites installed, you can get the code and initialize the build environment.

You can ask questions and interact with the community in the following
locations:
- [Brave Community](https://community.brave.com/)
- [`community`](https://bravesoftware.slack.com) channel on Brave Software's Slack
```bash
git clone [email protected]:ping-browser/ping-core.git path-to-your-project-folder/src/brave
cd path-to-your-project-folder/src/brave
npm install

# the Chromium source is downloaded, which has a large history (gigabytes of data)
# this might take really long to finish depending on internet speed

npm run init
```
brave-core based android builds should use `npm run init -- --target_os=android --target_arch=arm` (or whichever CPU type you want to build for)
brave-core based iOS builds should use `npm run init -- --target_os=ios`

You can also set the target_os and target_arch for init and build using:

```
npm config set target_os android
npm config set target_arch arm
```

## Build Ping
The default build type is component.

```
# start the component build compile
npm run build
```

To do a release build:

```
# start the release compile
npm run build Release
```

brave-core based android builds should use `npm run build -- --target_os=android --target_arch=arm` or set the npm config variables as specified above for `init`

brave-core based iOS builds should use the Xcode project found in `ios/brave-ios/App`. You can open this project directly or run `npm run ios_bootstrap -- --open_xcodeproj` to have it opened in Xcode. See the [iOS Developer Environment](https://github.com/brave/brave-browser/wiki/iOS-Development-Environment#Building) for more information on iOS builds.

### Build Configurations

Running a release build with `npm run build Release` can be very slow and use a lot of RAM, especially on Linux with the Gold LLVM plugin.

To run a statically linked build (takes longer to build, but starts faster):

```bash
npm run build -- Static
```

To run a debug build (Component build with is_debug=true):

```bash
npm run build -- Debug
```
NOTE: the build will take a while to complete. Depending on your processor and memory, it could potentially take a few hours.

## Run Ping
To start the build:

`npm start [Release|Component|Static|Debug]`

# Update Ping

`npm run sync -- [--force] [--init] [--create] [brave_core_ref]`

**This will attempt to stash your local changes in brave-core, but it's safer to commit local changes before running this**

`npm run sync` will (depending on the below flags):

1. 📥 Update sub-projects (chromium, brave-core) to latest commit of a git ref (e.g. tag or branch)
2. 🤕 Apply patches
3. 🔄 Update gclient DEPS dependencies
4. ⏩ Run hooks (e.g. to perform `npm install` on child projects)

| flag | Description |
|---|---|
|`[no flags]`|updates chromium if needed and re-applies patches. If the chromium version did not change, it will only re-apply patches that have changed. Will update child dependencies **only if any project needed updating during this script run**. <br> **Use this if you want the script to manage keeping you up to date instead of pulling or switching branches manually. **|
|`--force`|updates both _Chromium_ and _brave-core_ to the latest remote commit for the current brave-core branch and the _Chromium_ ref specified in brave-browser/package.json (e.g. `master` or `74.0.0.103`). Will re-apply all patches. Will force update all child dependencies. <br> **Use this if you're having trouble and want to force the branches back to a known state. **|
|`--init`|force update both _Chromium_ and _brave-core_ to the versions specified in brave-browser/package.json and force updates all dependent repos - same as `npm run init`|
|`--sync_chromium (true/false)`|Will force or skip the chromium version update when applicable. Useful if you want to avoid a minor update when not ready for the larger build time a chromium update may result in. A warning will be output about the current code state expecting a different chromium version. Your build may fail as a result.|
|`-D, --delete_unused_deps`|Will delete from the working copy any dependencies that have been removed since the last sync. Mimics `gclient sync -D`.|

Run `npm run sync brave_core_ref` to checkout the specified _brave-core_ ref and update all dependent repos including chromium if needed.

## Scenarios

#### Create a new branch:
```bash
brave-browser> cd src/brave
brave-browser/src/brave> git checkout -b branch_name
```

#### Checkout an existing branch or tag:
```bash
brave-browser/src/brave> git fetch origin
brave-browser/src/brave> git checkout [-b] branch_name
brave-browser/src/brave> npm run sync
...Updating 2 patches...
...Updating child dependencies...
...Running hooks...
```

#### Update the current branch to the latest remote:
```bash
brave-browser/src/brave> git pull
brave-browser/src/brave> npm run sync
...Updating 2 patches...
...Updating child dependencies...
...Running hooks...
```

#### Reset to latest brave-browser master and brave-core master (via `init`, will always result in a longer build and will remove any pending changes in your brave-core working directory):
```bash
brave-browser> git checkout master
brave-browser> git pull
brave-browser> npm run sync -- --init
```

#### When you know that DEPS didn't change, but .patch files did (quickest attempt to perform a mini-sync before a build):
```bash
brave-browser/src/brave> git checkout featureB
brave-browser/src/brave> git pull
brave-browser/src/brave> cd ../..
brave-browser> npm run apply_patches
...Applying 2 patches...
```

# Enabling third-party APIs:

1. **Google Safe Browsing**: Get an API key with SafeBrowsing API enabled from https://console.developers.google.com/. Update the `GOOGLE_API_KEY` environment variable with your key as per https://www.chromium.org/developers/how-tos/api-keys to enable Google SafeBrowsing.

# Development

- [Security rules from Chromium](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/security/rules.md)
- [IPC review guidelines](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/ipc-reviews.md) (in particular [this reference](https://docs.google.com/document/d/1Kw4aTuISF7csHnjOpDJGc7JYIjlvOAKRprCTBVWw_E4/edit#heading=h.84bpc1e9z1bg))
- [Brave's internal security guidelines](https://github.com/brave/internal/wiki/Pull-request-security-audit-checklist) (for employees only)
- [Rust usage](https://github.com/brave/brave-core/blob/master/docs/rust.md)
32 changes: 32 additions & 0 deletions android/android2.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/javatests" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="core-3.3.2" level="project" />
<orderEntry type="module" module-name="appmenu" />
<orderEntry type="module" module-name="brave_ads" />
<orderEntry type="module" module-name="android" />
<orderEntry type="module" module-name="base" />
<orderEntry type="module" module-name="hub" />
<orderEntry type="module" module-name="internal" />
<orderEntry type="module" module-name="notifications" />
<orderEntry type="module" module-name="omnibox" />
<orderEntry type="module" module-name="toolbar" />
<orderEntry type="module" module-name="site_settings" />
<orderEntry type="module" module-name="tab_ui" />
<orderEntry type="module" module-name="theme" />
<orderEntry type="module" module-name="signin" />
<orderEntry type="module" module-name="permissions" />
<orderEntry type="module" module-name="features" />
<orderEntry type="module" module-name="safe_browsing2" />
<orderEntry type="module" module-name="embedder_support" />
<orderEntry type="module" module-name="logo" />
<orderEntry type="module" module-name="feed" />
</component>
</module>
2 changes: 1 addition & 1 deletion android/brave_java_resources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ brave_java_resources = [
"java/res/drawable-night/tablet_recent_tab_empty_state_illustration.xml",
"java/res/drawable-night/tipping_background_success.xml",
"java/res/drawable-night/wallet_portfolio.xml",
"java/res/drawable-nodpi/dylan_malval_sea_min.webp",
"java/res/drawable-nodpi/dylan_malval_sea_min.jpg",
"java/res/drawable-nodpi/eth.png",
"java/res/drawable-nodpi/ic_quick_action_search_and_bookmark_widget_preview.png",
"java/res/drawable-nodpi/loader0_orange.png",
Expand Down
15 changes: 15 additions & 0 deletions android/features/features.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/tab_ui/java/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="tab_ui" />
<orderEntry type="module" module-name="hub" />
<orderEntry type="module" module-name="android2" />
<orderEntry type="module" module-name="toolbar" />
</component>
</module>
Loading
Loading