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

Add brokerProtection to Android bundle #1447

Merged
merged 3 commits into from
Feb 3, 2025
Merged
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
1 change: 1 addition & 0 deletions injected/integration-test/type-helpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export class Build {
apple: () => '../Sources/ContentScopeScripts/dist/contentScope.js',
'apple-isolated': () => '../Sources/ContentScopeScripts/dist/contentScopeIsolated.js',
'android-autofill-password-import': () => '../build/android/autofillPasswordImport.js',
'android-broker-protection': () => '../build/android/brokerProtection.js',
});
return readFileSync(path, 'utf8');
}
Expand Down
2 changes: 1 addition & 1 deletion injected/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build-chrome": "node scripts/entry-points.js --platform chrome",
"build-chrome-mv3": "node scripts/entry-points.js --platform chrome-mv3",
"build-apple": "node scripts/entry-points.js --platform apple && node scripts/entry-points.js --platform apple-isolated",
"build-android": "node scripts/entry-points.js --platform android && node scripts/entry-points.js --platform android-autofill-password-import",
"build-android": "node scripts/entry-points.js --platform android && node scripts/entry-points.js --platform android-autofill-password-import && node scripts/entry-points.js --platform android-broker-protection",
"build-windows": "node scripts/entry-points.js --platform windows",
"build-integration": "node scripts/entry-points.js --platform integration",
"build-types": "node scripts/types.mjs",
Expand Down
4 changes: 4 additions & 0 deletions injected/scripts/entry-points.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ const builds = {
input: 'entry-points/android.js',
output: ['../build/android/contentScope.js'],
},
'android-broker-protection': {
input: 'entry-points/android',
output: ['../build/android/brokerProtection.js'],
},
'android-autofill-password-import': {
input: 'entry-points/android',
output: ['../build/android/autofillPasswordImport.js'],
Expand Down
1 change: 1 addition & 0 deletions injected/src/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const platformSupport = {
apple: ['webCompat', ...baseFeatures],
'apple-isolated': ['duckPlayer', 'brokerProtection', 'performanceMetrics', 'clickToLoad', 'messageBridge'],
android: [...baseFeatures, 'webCompat', 'breakageReporting', 'duckPlayer', 'messageBridge'],
'android-broker-protection': ['brokerProtection'],
'android-autofill-password-import': ['autofillPasswordImport'],
windows: ['cookie', ...baseFeatures, 'windowsPermissionUsage', 'duckPlayer', 'brokerProtection', 'breakageReporting'],
firefox: ['cookie', ...baseFeatures, 'clickToLoad'],
Expand Down
1 change: 1 addition & 0 deletions injected/src/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ interface ImportMeta {
| 'integration'
| 'chrome-mv3'
| 'chrome'
| 'android-broker-protection'
| 'android-autofill-password-import';
trackerLookup?: Record<string, unknown>;
pageName?: string;
Expand Down
Loading