Skip to content

Commit

Permalink
Improves version detection for Lineage OS (matomo-org#7893)
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu authored Nov 2, 2024
1 parent 97f3c8e commit 668fd49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Parser/OperatingSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ class OperatingSystem extends AbstractParser
* @var array
*/
private $lineageOsVersionMapping = [
'15' => '22',
'14' => '21',
'13' => '20.0',
'12.1' => '19.1',
Expand Down
2 changes: 2 additions & 0 deletions regexes/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,8 @@
- regex: '(?:Android (\d([\d.])*);? )?lineage_\w+'
name: 'Lineage OS'
versions:
- regex: 'Android 15'
version: '22'
- regex: 'Android 14'
version: '21'
- regex: 'Android 13'
Expand Down

0 comments on commit 668fd49

Please sign in to comment.