Skip to content

Commit

Permalink
Add stub cosmetic_filters_core.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
atuchin-m committed Sep 23, 2024
1 parent 203bf41 commit f9dca14
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
27 changes: 17 additions & 10 deletions components/cosmetic_filters/resources/data/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,23 @@ import("//tools/grit/grit_rule.gni")
import("//tools/grit/repack.gni")

transpile_web_ui("cosmetic_filters_resources") {
entry_points = [
[
"cosmetic_filters",
rebase_path("content_cosmetic.ts"),
],
[
"element_picker",
rebase_path("element_picker.ts"),
],
]
entry_points = [ [
"cosmetic_filters_core",
rebase_path("cosmetic_filters_core.ts"),
] ]

if (!is_ios) {
entry_points += [
[
"cosmetic_filters",
rebase_path("content_cosmetic.ts"),
],
[
"element_picker",
rebase_path("element_picker.ts"),
],
]
}

resource_name = "cosmetic_filters"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright (c) 2024 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at https://mozilla.org/MPL/2.0/.

console.log('script test')
1 change: 1 addition & 0 deletions ios/browser/api/brave_shields/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ source_set("brave_shields") {
"//brave/components/brave_shields/adblock:rust_lib",
"//brave/components/brave_shields/core/browser",
"//brave/components/brave_shields/core/common",
"//brave/components/cosmetic_filters/resources/data:generated_resources",
"//components/component_updater",
"//ios/chrome/browser/shared/model/application_context",
]
Expand Down

0 comments on commit f9dca14

Please sign in to comment.