| version: 1 |
| transforms: |
| ## First rename the legacy `FakePlatform` to `LegacyFakePlatform` |
| ## (Which `FakePlatform` is a type alias for.) |
| ## There should be no references left to `LegacyFakePlatform` |
| ## when the remaining fixes have run. |
| - title: "LegacyFakePlatform" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| class: "FakePlatform" |
| changes: |
| - kind: "rename" |
| newName: "LegacyFakePlatform" |
| |
| ## Platform static members -> NativePlatform static members |
| - title: "Platform.android" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "android" |
| inClass: "Platform" |
| static: true |
| changes: |
| - kind: "replacedBy" |
| replaceTarget: true |
| newElement: |
| uris: ["package:platform/platform.dart"] |
| getter: "android" |
| inClass: "NativePlatform" |
| static: true |
| |
| - title: "Platform.fuchsia" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "fuchsia" |
| inClass: "Platform" |
| static: true |
| changes: |
| - kind: "replacedBy" |
| replaceTarget: true |
| newElement: |
| uris: ["package:platform/platform.dart"] |
| getter: "fuchsia" |
| inClass: "NativePlatform" |
| static: true |
| |
| - title: "Platform.iOS" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "iOS" |
| inClass: "Platform" |
| static: true |
| changes: |
| - kind: "replacedBy" |
| replaceTarget: true |
| newElement: |
| uris: ["package:platform/platform.dart"] |
| getter: "iOS" |
| inClass: "NativePlatform" |
| static: true |
| |
| - title: "Platform.linux" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "linux" |
| inClass: "Platform" |
| static: true |
| changes: |
| - kind: "replacedBy" |
| replaceTarget: true |
| newElement: |
| uris: ["package:platform/platform.dart"] |
| getter: "linux" |
| inClass: "NativePlatform" |
| static: true |
| |
| - title: "Platform.macOS" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "macOS" |
| inClass: "Platform" |
| static: true |
| changes: |
| - kind: "replacedBy" |
| replaceTarget: true |
| newElement: |
| uris: ["package:platform/platform.dart"] |
| getter: "macOS" |
| inClass: "NativePlatform" |
| static: true |
| |
| - title: "Platform.windows" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "windows" |
| inClass: "Platform" |
| static: true |
| changes: |
| - kind: "replacedBy" |
| replaceTarget: true |
| newElement: |
| uris: ["package:platform/platform.dart"] |
| getter: "windows" |
| inClass: "NativePlatform" |
| static: true |
| |
| - title: "Platform.operatingSystemValues" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "operatingSystemValues" |
| inClass: "Platform" |
| static: true |
| changes: |
| - kind: "replacedBy" |
| replaceTarget: true |
| newElement: |
| uris: ["package:platform/platform.dart"] |
| getter: "operatingSystemValues" |
| inClass: "NativePlatform" |
| static: true |
| |
| ## Instance members on `Platform` -> members on `Platform.nativePlatform!` |
| - title: "Platform.environment" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "environment" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.environment" |
| |
| - title: "Platform.executable" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "executable" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.executable" |
| |
| - title: "Platform.executableArguments" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "executableArguments" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.executableArguments" |
| |
| - title: "Platform.lineTerminator" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "lineTerminator" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.lineTerminator" |
| |
| - title: "Platform.localeName" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "localeName" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.localeName" |
| |
| - title: "Platform.localHostname" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "localHostname" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.localHostname" |
| |
| - title: "Platform.numberOfProcessors" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "numberOfProcessors" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.numberOfProcessors" |
| |
| - title: "Platform.operatingSystem" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "operatingSystem" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.operatingSystem" |
| |
| - title: "Platform.operatingSystemVersion" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "operatingSystemVersion" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.operatingSystemVersion" |
| |
| - title: "Platform.packageConfig" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "packageConfig" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.packageConfig" |
| |
| - title: "Platform.pathSeparator" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "pathSeparator" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.pathSeparator" |
| |
| - title: "Platform.resolvedExecutable" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "resolvedExecutable" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.resolvedExecutable" |
| |
| - title: "Platform.script" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "script" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.script" |
| |
| - title: "Platform.stdinSupportsAnsi" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "stdinSupportsAnsi" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.stdinSupportsAnsi" |
| |
| - title: "Platform.stdoutSupportsAnsi" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "stdoutSupportsAnsi" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.stdoutSupportsAnsi" |
| |
| - title: "Platform.version" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "version" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.version" |
| |
| - title: "Platform.toJson" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| method: "toJson" |
| inClass: "LocalPlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.toJson" |
| |
| ## Instance members on `Platform` -> members on `Platform.nativePlatform!` |
| - title: "Platform.environment" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "environment" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.environment" |
| |
| - title: "Platform.executable" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "executable" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.executable" |
| |
| - title: "Platform.executableArguments" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "executableArguments" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.executableArguments" |
| |
| - title: "Platform.lineTerminator" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "lineTerminator" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.lineTerminator" |
| |
| - title: "Platform.localeName" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "localeName" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.localeName" |
| |
| - title: "Platform.localHostname" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "localHostname" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.localHostname" |
| |
| - title: "Platform.numberOfProcessors" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "numberOfProcessors" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.numberOfProcessors" |
| |
| - title: "Platform.operatingSystem" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "operatingSystem" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.operatingSystem" |
| |
| - title: "Platform.operatingSystemVersion" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "operatingSystemVersion" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.operatingSystemVersion" |
| |
| - title: "Platform.packageConfig" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "packageConfig" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.packageConfig" |
| |
| - title: "Platform.pathSeparator" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "pathSeparator" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.pathSeparator" |
| |
| - title: "Platform.resolvedExecutable" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "resolvedExecutable" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.resolvedExecutable" |
| |
| - title: "Platform.script" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "script" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.script" |
| |
| - title: "Platform.stdinSupportsAnsi" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "stdinSupportsAnsi" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.stdinSupportsAnsi" |
| |
| - title: "Platform.stdoutSupportsAnsi" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "stdoutSupportsAnsi" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.stdoutSupportsAnsi" |
| |
| - title: "Platform.version" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "version" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.version" |
| |
| - title: "Platform.toJson" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| method: "toJson" |
| inClass: "LegacyFakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.toJson" |
| |
| ## Instance members on `Platform` -> members on `Platform.nativePlatform!` |
| - title: "Platform.environment" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "environment" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.environment" |
| |
| - title: "Platform.executable" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "executable" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.executable" |
| |
| - title: "Platform.executableArguments" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "executableArguments" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.executableArguments" |
| |
| - title: "Platform.lineTerminator" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "lineTerminator" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.lineTerminator" |
| |
| - title: "Platform.localeName" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "localeName" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.localeName" |
| |
| - title: "Platform.localHostname" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "localHostname" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.localHostname" |
| |
| - title: "Platform.numberOfProcessors" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "numberOfProcessors" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.numberOfProcessors" |
| |
| - title: "Platform.operatingSystem" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "operatingSystem" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.operatingSystem" |
| |
| - title: "Platform.operatingSystemVersion" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "operatingSystemVersion" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.operatingSystemVersion" |
| |
| - title: "Platform.packageConfig" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "packageConfig" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.packageConfig" |
| |
| - title: "Platform.pathSeparator" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "pathSeparator" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.pathSeparator" |
| |
| - title: "Platform.resolvedExecutable" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "resolvedExecutable" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.resolvedExecutable" |
| |
| - title: "Platform.script" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "script" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.script" |
| |
| - title: "Platform.stdinSupportsAnsi" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "stdinSupportsAnsi" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.stdinSupportsAnsi" |
| |
| - title: "Platform.stdoutSupportsAnsi" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "stdoutSupportsAnsi" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.stdoutSupportsAnsi" |
| |
| - title: "Platform.version" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| getter: "version" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.version" |
| |
| - title: "Platform.toJson" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| method: "toJson" |
| inClass: "Platform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.toJson" |
| |
| ## Instance members on `FakePlatform` from testing.dart |
| ## -> members on `FakePlatform.nativePlatform!` |
| ## (which implements `Platform`, but isn't handled by fixes above). |
| - title: "FakePlatformMigrationHelperPlatform.environment" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "environment" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.environment" |
| |
| - title: "FakePlatformMigrationHelper.executable" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "executable" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.executable" |
| |
| - title: "FakePlatformMigrationHelper.executableArguments" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "executableArguments" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.executableArguments" |
| |
| - title: "FakePlatformMigrationHelper.lineTerminator" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "lineTerminator" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.lineTerminator" |
| |
| - title: "FakePlatformMigrationHelper.localeName" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "localeName" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.localeName" |
| |
| - title: "FakePlatformMigrationHelper.localHostname" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "localHostname" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.localHostname" |
| |
| - title: "FakePlatformMigrationHelper.numberOfProcessors" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "numberOfProcessors" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.numberOfProcessors" |
| |
| - title: "FakePlatformMigrationHelper.operatingSystem" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "operatingSystem" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.operatingSystem" |
| |
| - title: "FakePlatformMigrationHelper.operatingSystemVersion" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "operatingSystemVersion" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.operatingSystemVersion" |
| |
| - title: "FakePlatformMigrationHelper.packageConfig" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "packageConfig" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.packageConfig" |
| |
| - title: "FakePlatformMigrationHelper.pathSeparator" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "pathSeparator" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.pathSeparator" |
| |
| - title: "FakePlatformMigrationHelper.resolvedExecutable" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "resolvedExecutable" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.resolvedExecutable" |
| |
| - title: "FakePlatformMigrationHelper.script" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "script" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.script" |
| |
| - title: "FakePlatformMigrationHelper.stdinSupportsAnsi" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "stdinSupportsAnsi" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.stdinSupportsAnsi" |
| |
| - title: "FakePlatformMigrationHelper.stdoutSupportsAnsi" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "stdoutSupportsAnsi" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.stdoutSupportsAnsi" |
| |
| - title: "FakePlatformMigrationHelper.version" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| getter: "version" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.version" |
| |
| - title: "FakePlatformMigrationHelper.toJson" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| method: "toJson" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "nativePlatform!.toJson" |
| |
| - title: "FakePlatformMigrationHelper.copyWith" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/testing.dart"] |
| method: "copyWith" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "copyWithNativeMigrationHelper" |
| |
| ## `LegacyFakePlatform.copyWith` -> |
| ## `FakePlatform.copyWithNativeMigrationHelper`. |
| ## (Uses rename, can't replace with a method that isn't in the source type?) |
| |
| - title: "LegacyFakePlatform.copyWith" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| method: "copyWith" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "rename" |
| newName: "copyWithNativeMigrationHelper" |
| |
| # - title: "FakePlatform.copyWith" |
| # date: 2024-06-14 |
| # element: |
| # uris: ["package:platform/testing.dart"] |
| # method: "copyWith" |
| # inClass: "FakePlatform" |
| # static: false |
| # changes: |
| # - kind: "rename" |
| # newName: "copyWithNativeMigrationHelper" |
| |
| - title: "LegacyFakePlatform.copyWith" |
| date: 2026-14-20 |
| element: |
| uris: ["package:platform/platform.dart"] |
| method: "copyWith" |
| inClass: "FakePlatform" |
| static: false |
| changes: |
| - kind: "replacedBy" |
| newElement: |
| uris: ["package:platform/testing.dart"] |
| method: "copyWithNativeMigrationHelper" |
| inClass: "FakePlatformMigrationHelper" |
| static: false |
| |
| ## Legacy LocalPlatform class -> new Platform class |
| ## |
| ## Would prefer to redirect to `NativePlatform` class, |
| ## but existing code uses the `Platform` type as supertype, |
| ## and we still have that type. |
| ## Workaround: -> new Platform() constructor + migration of members. |
| ## May want to deprecate the constructor later when we find a way to migrate |
| ## people off a `const` constructor invocation into a non-const getter. |
| - title: "LocalPlatform" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| class: LocalPlatform |
| changes: |
| - kind: "rename" |
| newName: Platform |
| |
| - title: "LegacyFakePlatform2Fake" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| class: "LegacyFakePlatform" |
| changes: |
| - kind: "rename" |
| newName: "FakePlatformMigrationHelper" |
| |
| - title: "LegacyFakePlatform2Fake2" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| class: "FakePlatform" |
| changes: |
| - kind: "rename" |
| newName: "FakePlatformMigrationHelper" |
| |
| ## Legacy FakePlatform class -> new FakePlatform class. |
| ## |
| ## The new FakePlatform is from `package:platform/testing.dart`. |
| ## Migrate constructors to constructors creating a `FakeNativePlatform` |
| ## backed `FakePlatform`. |
| ## |
| ## TODO: Cannot replace a class reference, can only rename it. |
| ## Cannot provide URI of target when renaming. |
| ## Current solution: "replace" constructors, adding an import. |
| ## "rename" type itself, which only works if there |
| ## is a constructor call in the same file. |
| - title: "LegacyFakePlatform.new" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| constructor: '' |
| inClass: "LegacyFakePlatform" |
| changes: |
| - kind: "replacedBy" |
| newElement: |
| uris: ["package:platform/testing.dart"] |
| constructor: 'native' |
| inClass: "FakePlatformMigrationHelper" |
| |
| - title: "LegacyFakePlatform.fromJson" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| constructor: 'fromJson' |
| inClass: "LegacyFakePlatform" |
| changes: |
| - kind: "replacedBy" |
| newElement: |
| uris: ["package:platform/testing.dart"] |
| constructor: 'nativeFromJson' |
| inClass: "FakePlatformMigrationHelper" |
| |
| - title: "LegacyFakePlatform.fromPlatform" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| constructor: 'fromPlatform' |
| inClass: "LegacyFakePlatform" |
| changes: |
| - kind: "replacedBy" |
| newElement: |
| uris: ["package:platform/testing.dart"] |
| constructor: 'fromPlatform' |
| inClass: "FakePlatformMigrationHelper" |
| |
| - title: "LegacyFakePlatform-toFake" |
| date: 2024-06-14 |
| element: |
| uris: ["package:platform/platform.dart"] |
| class: "LegacyFakePlatform" |
| changes: |
| - kind: "rename" |
| newName: "FakePlatformMigrationHelper" |
| |