Skip to content

Commit

Permalink
Add iOS 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amake committed Sep 17, 2024
1 parent 9fafee2 commit 3877d02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/data/ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import 'package:isittofu/data/ios8.2.g.dart';
import 'package:isittofu/data/ios8.3.g.dart';
import 'package:isittofu/data/ios9.0.g.dart';
import 'package:isittofu/data/ios9.1.g.dart';
import 'package:isittofu/data/ios18.0.g.dart';

final List<RegExp> patterns = List.unmodifiable(<RegExp>[
ios8_0Pattern,
Expand Down Expand Up @@ -88,6 +89,7 @@ final List<RegExp> patterns = List.unmodifiable(<RegExp>[
ios17_0Pattern, // iOS 17.5 is same as iOS 17.0
ios17_0Pattern, // iOS 17.6 is same as iOS 17.0
ios17_0Pattern, // iOS 17.7 is same as iOS 17.0
ios18_0Pattern,
]);

enum IosPlatform {
Expand Down Expand Up @@ -154,6 +156,7 @@ enum IosPlatform {
iOS17_5,
iOS17_6,
iOS17_7,
iOS18_0,
}

// As measured by the App Store on June 9, 2024
Expand Down Expand Up @@ -222,6 +225,7 @@ const List<double> distribution = [
0.77 / 6, // iOS17_5
0, // iOS17_6
0, // iOS17_7
0, // iOS18_0
];

final _allPlatformIndices = List.generate(IosPlatform.values.length, (i) => i);
Expand Down
Loading

0 comments on commit 3877d02

Please sign in to comment.