Skip to content

Commit

Permalink
Adds detection for APUS Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Mar 21, 2022
1 parent 2828108 commit 0eff5a3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class Browser extends AbstractClientParser
'AN' => 'Android Browser',
'AE' => 'AOL Desktop',
'AD' => 'AOL Shield',
'AP' => 'APUS Browser',
'AR' => 'Arora',
'AX' => 'Arctic Fox',
'AV' => 'Amiga Voyager',
Expand Down Expand Up @@ -461,7 +462,7 @@ class Browser extends AbstractClientParser
'VG', 'VI', 'VM', 'WP', 'WH', 'XV', 'YJ', 'YN', 'FH',
'B1', 'BO', 'HB', 'PC', 'LA', 'LT', 'PD', 'HR', 'HU',
'HP', 'IO', 'TP', 'CJ', 'HQ', 'HI', 'NA', 'BW', 'YO',
'DC', 'G8', 'DT',
'DC', 'G8', 'DT', 'AP',
],
'Firefox' => [
'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1',
Expand Down Expand Up @@ -493,7 +494,7 @@ class Browser extends AbstractClientParser
'PE', 'QU', 'RE', 'S0', 'S7', 'SA', 'SB', 'SG', 'SK',
'ST', 'SU', 'T1', 'UH', 'UM', 'UT', 'VE', 'VV', 'WI',
'WP', 'YN', 'IO', 'IS', 'HQ', 'RW', 'HI', 'NA', 'BW',
'YO', 'PK', 'MR',
'YO', 'PK', 'MR', 'AP',
];

/**
Expand Down
12 changes: 12 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5100,5 +5100,17 @@
version: 2.1.0
engine: Blink
engine_version: ""
family: Chrome
headers:
X-Requested-With: com.airfind.deltabrowser
-
user_agent: Mozilla/5.0 (Linux; Android 8.1.0; moto e5 play Build/OPGS28.54-53-8-20; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.58 Mobile Safari/537.36
client:
type: browser
name: APUS Browser
version: ""
engine: Blink
engine_version: ""
family: Chrome
headers:
X-Requested-With: com.apusapps.browser
1 change: 1 addition & 0 deletions regexes/client/hints/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@
'com.opera.gx': 'Opera GX'
'br.marcelo.monumentbrowser': 'Monument Browser'
'com.airfind.deltabrowser': 'Delta Browser'
'com.apusapps.browser': 'APUS Browser'

0 comments on commit 0eff5a3

Please sign in to comment.