File tree Expand file tree Collapse file tree 3 files changed +14
-21
lines changed Expand file tree Collapse file tree 3 files changed +14
-21
lines changed Original file line number Diff line number Diff line change 1919use BrowserDetector \Loader \DeviceLoaderFactoryInterface ;
2020use BrowserDetector \Parser \Header \Exception \VersionContainsDerivateException ;
2121use BrowserDetector \Version \Exception \NotNumericException ;
22+ use BrowserDetector \Version \FireOs ;
2223use BrowserDetector \Version \ForcedNullVersion ;
2324use BrowserDetector \Version \LineageOs ;
2425use BrowserDetector \Version \NullVersion ;
@@ -618,7 +619,7 @@ private function getVersionForFireOs(array $filteredHeaders): VersionInterface
618619 VersionInterface::IGNORE_MINOR_IF_EMPTY ,
619620 );
620621
621- $ fireOsVersion = new \ BrowserDetector \ Version \ FireOs (new VersionBuilder ());
622+ $ fireOsVersion = new FireOs (new VersionBuilder ());
622623
623624 return $ fireOsVersion ->getVersion ($ androidVersion ?? '' );
624625 } catch (VersionContainsDerivateException | UnexpectedValueException | NotNumericException ) {
Original file line number Diff line number Diff line change 2525final readonly class FireOs
2626{
2727 private const array VERSION_MAP = [
28- '11 ' => '8 ' ,
29- '10 ' => '8 ' ,
30- '9 ' => '7 ' ,
31- '7 ' => '6 ' ,
32- '5 ' => '5 ' ,
28+ '11 ' => '8 ' ,
29+ '10 ' => '8 ' ,
30+ '9 ' => '7 ' ,
31+ '7 ' => '6 ' ,
32+ '5 ' => '5 ' ,
3333 '4.4.3 ' => '4.5.1 ' ,
3434 '4.4.2 ' => '4 ' ,
3535 '4.2.2 ' => '3 ' ,
3636 '4.0.3 ' => '3 ' ,
3737 '4.0.2 ' => '3 ' ,
38- '4 ' => '2 ' ,
39- '2 ' => '1 ' ,
38+ '4 ' => '2 ' ,
39+ '2 ' => '1 ' ,
4040 ];
4141
4242 /** @throws void */
@@ -64,7 +64,7 @@ public function getVersion(string $androidVersion): VersionInterface
6464 ),
6565 ARRAY_FILTER_USE_KEY ,
6666 );
67- $ fireOsVersion = current ($ lineageOsVersions );
67+ $ fireOsVersion = current ($ lineageOsVersions );
6868
6969 if ($ fireOsVersion === false ) {
7070 $ fireOsVersion = '' ;
Original file line number Diff line number Diff line change @@ -1089,13 +1089,9 @@ public static function providerUa(): array
10891089 ],
10901090 ],
10911091 [
1092+ ['user-agent ' => 'imoAndroid/2020.03.2011; 10; REL; SM-G973F; samsung; play; phone; arm64-v8a ' ],
10921093 [
1093- 'user-agent ' => 'imoAndroid/2020.03.2011; 10; REL; SM-G973F; samsung; play; phone; arm64-v8a ' ,
1094- ],
1095- [
1096- 'headers ' => [
1097- 'user-agent ' => 'imoAndroid/2020.03.2011; 10; REL; SM-G973F; samsung; play; phone; arm64-v8a ' ,
1098- ],
1094+ 'headers ' => ['user-agent ' => 'imoAndroid/2020.03.2011; 10; REL; SM-G973F; samsung; play; phone; arm64-v8a ' ],
10991095 'device ' => [
11001096 'architecture ' => null ,
11011097 'deviceName ' => 'SM-G973F ' ,
@@ -1139,13 +1135,9 @@ public static function providerUa(): array
11391135 ],
11401136 ],
11411137 [
1138+ ['user-agent ' => 'com.amazon.sics/3.0.200230.0 (KFSUWI; Android 22; Amazon) ' ],
11421139 [
1143- 'user-agent ' => 'com.amazon.sics/3.0.200230.0 (KFSUWI; Android 22; Amazon) ' ,
1144- ],
1145- [
1146- 'headers ' => [
1147- 'user-agent ' => 'com.amazon.sics/3.0.200230.0 (KFSUWI; Android 22; Amazon) ' ,
1148- ],
1140+ 'headers ' => ['user-agent ' => 'com.amazon.sics/3.0.200230.0 (KFSUWI; Android 22; Amazon) ' ],
11491141 'device ' => [
11501142 'architecture ' => null ,
11511143 'deviceName ' => 'KFSUWI ' ,
You can’t perform that action at this time.
0 commit comments