Skip to content

Commit

Permalink
Merge pull request #852 from mimmi20/updates
Browse files Browse the repository at this point in the history
add new devices
  • Loading branch information
mimmi20 authored Dec 29, 2024
2 parents 2dbbad4 + 512184f commit 8b2caaa
Show file tree
Hide file tree
Showing 637 changed files with 109,061 additions and 131,636 deletions.
32 changes: 0 additions & 32 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,6 @@ updates:
time: "04:00"
timezone: "Europe/Berlin"

groups:
security-updates:
applies-to: "security-updates"
patterns:
- "*"
exclude-patterns:
- "friendsofphp/php-cs-fixer"
- "sirbrillig/phpcs-variable-analysis"
- "slevomat/coding-standard"
- "squizlabs/php_codesniffer"
version-updates:
applies-to: "version-updates"
patterns:
- "*"
exclude-patterns:
- "friendsofphp/php-cs-fixer"
- "sirbrillig/phpcs-variable-analysis"
- "slevomat/coding-standard"
- "squizlabs/php_codesniffer"

open-pull-requests-limit: 10

reviewers:
Expand Down Expand Up @@ -67,18 +47,6 @@ updates:
time: "04:00"
timezone: "Europe/Berlin"

groups:
# Specify a name for the group, which will be used in pull request titles
# and branch names
security-updates:
applies-to: "security-updates"
patterns:
- "*"
version-updates:
applies-to: "version-updates"
patterns:
- "*"

open-pull-requests-limit: 10

reviewers:
Expand Down
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->append([__DIR__ . '/rector.php'])
->append([__DIR__ . '/composer-dependency-analyser.php'])
->append([__FILE__]);

$rules = require 'vendor/mimmi20/coding-standard/src/php-cs-fixer.config.php';
Expand Down
45 changes: 45 additions & 0 deletions composer-dependency-analyser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

/**
* This file is part of the browser-detector package.
*
* Copyright (c) 2012-2024, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types = 1);

use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;

$config = new Configuration();

$config
// Adjusting scanned paths
->addPathToScan(__DIR__ . '/src', isDev: false)
->addPathToScan(__DIR__ . '/tests', isDev: true)
->addPathToScan(__DIR__ . '/vendor', isDev: false)
->addPathToExclude(__DIR__ . '/vendor/rector/rector')
->addPathToExclude(__DIR__ . '/vendor/phpstan/phpstan')
// applies only to directory scanning, not directly listed files
->setFileExtensions(['php'])

// Ignoring errors in vendor directory
->ignoreErrorsOnPath(__DIR__ . '/vendor', [ErrorType::SHADOW_DEPENDENCY])
->ignoreErrorsOnPath(__DIR__ . '/vendor', [ErrorType::UNKNOWN_FUNCTION])
->ignoreErrorsOnPath(__DIR__ . '/vendor', [ErrorType::UNKNOWN_CLASS])
->ignoreErrorsOnPath(__DIR__ . '/vendor', [ErrorType::DEV_DEPENDENCY_IN_PROD])

// do not complain about some modules
->ignoreErrorsOnPackage('mimmi20/coding-standard', [ErrorType::UNUSED_DEPENDENCY])
->ignoreErrorsOnPackage('phpstan/extension-installer', [ErrorType::UNUSED_DEPENDENCY])
->ignoreErrorsOnPackage('phpstan/phpstan-phpunit', [ErrorType::UNUSED_DEPENDENCY])
->ignoreErrorsOnPackage('phpstan/phpstan-deprecation-rules', [ErrorType::UNUSED_DEPENDENCY])

// Adjust analysis
// dev packages are often used only in CI, so this is not enabled by default
->enableAnalysisOfUnusedDevDependencies();

return $config;
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"phpunit/phpunit": "^11.5.2",
"rector/rector": "^1.2.10",
"rector/type-perfect": "^1.0.0",
"shipmonk/composer-dependency-analyser": "^1.8.1",
"symfony/process": "^7.2.0",
"symplify/phpstan-rules": "^13.0.1",
"tomasvotruba/cognitive-complexity": "^0.2.3",
Expand Down
96 changes: 96 additions & 0 deletions data/devices/alcatel/fone-pad.json
Original file line number Diff line number Diff line change
Expand Up @@ -526,5 +526,101 @@
},
"type": "fone-pad",
"platform": "android"
},
"alcatel 9025q": {
"deviceName": "9025Q",
"marketingName": "Pop 4",
"manufacturer": "tcl",
"brand": "alcatel",
"dualOrientation": true,
"simCount": 1,
"display": {
"width": 1280,
"height": 720,
"touch": true,
"size": 7
},
"type": "fone-pad",
"platform": "android"
},
"alcatel 8088x_eea": {
"deviceName": "8088X_EEA",
"marketingName": "3T 10",
"manufacturer": "tcl",
"brand": "alcatel",
"dualOrientation": true,
"simCount": 1,
"display": {
"width": 1280,
"height": 800,
"touch": true,
"size": 10
},
"type": "fone-pad",
"platform": "android"
},
"alcatel 8088x": {
"deviceName": "8088X",
"marketingName": "3T 10",
"manufacturer": "tcl",
"brand": "alcatel",
"dualOrientation": true,
"simCount": 1,
"display": {
"width": 1280,
"height": 800,
"touch": true,
"size": 10
},
"type": "fone-pad",
"platform": "android"
},
"alcatel 8088m": {
"deviceName": "8088M",
"marketingName": "3T 10",
"manufacturer": "tcl",
"brand": "alcatel",
"dualOrientation": true,
"simCount": 1,
"display": {
"width": 1280,
"height": 800,
"touch": true,
"size": 10
},
"type": "fone-pad",
"platform": "android"
},
"alcatel 8088q": {
"deviceName": "8088Q",
"marketingName": "3T 10",
"manufacturer": "tcl",
"brand": "alcatel",
"dualOrientation": true,
"simCount": 1,
"display": {
"width": 1280,
"height": 800,
"touch": true,
"size": 10
},
"type": "fone-pad",
"platform": "android"
},
"alcatel 8088l": {
"deviceName": "8088L",
"marketingName": "3T 10",
"manufacturer": "tcl",
"brand": "alcatel",
"dualOrientation": true,
"simCount": 1,
"display": {
"width": 1280,
"height": 800,
"touch": true,
"size": 10
},
"type": "fone-pad",
"platform": "android"
}
}
Loading

0 comments on commit 8b2caaa

Please sign in to comment.