Skip to content

Commit

Permalink
make constructor private
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes committed Jan 7, 2025
1 parent 47b9311 commit c0cb5a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkgs/native_assets_cli/lib/src/code_assets/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ class CodeConfig {
/// The operating system being compiled for.
final OS targetOS;

late final IOSConfig? _iOSConfig;
late final AndroidConfig? _androidConfig;
late final MacOSConfig? _macOSConfig;
final IOSConfig? _iOSConfig;
final AndroidConfig? _androidConfig;
final MacOSConfig? _macOSConfig;

CodeConfig({
CodeConfig._({
required Architecture? targetArchitecture,
required this.targetOS,
required this.linkModePreference,
Expand Down Expand Up @@ -87,7 +87,7 @@ class CodeConfig {
final macOSConfig =
dryRun || targetOS != OS.macOS ? null : MacOSConfig.fromJson(json);

return CodeConfig(
return CodeConfig._(
targetArchitecture: targetArchitecture,
targetOS: targetOS,
linkModePreference: linkModePreference,
Expand Down

0 comments on commit c0cb5a8

Please sign in to comment.