diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b14385ee..c57f3cb6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -94,6 +94,23 @@ stages: Write-Host " (i) Updated CHANGELOG.md content: $newChangelogContent" $newChangelogContent | Set-Content -Path "$(Build.SourcesDirectory)/device_calendar/CHANGELOG.md" + + - task: PowerShell@2 + displayName: 'Create publisher credentials file' + inputs: + targetType: 'inline' + script: | + cd $(FlutterToolPath) + cd.. + cd .pub-cache/ + + $credentials = @{ + accessToken = "$(ACCESS_TOKEN)" + refreshToken = "$(REFRESH_TOKEN)" + tokenEndpoint = "$(TOKEN_ENDPOINT)" + scopes = @("https://www.googleapis.com/auth/userinfo.email","openid") + expiration = $(EXPIRATION) + } | ConvertTo-Json | Out-File "credentials.json" - task: CmdLine@2 displayName: 'Dry run publish' @@ -140,6 +157,23 @@ stages: Write-Host "##vso[task.setvariable variable=versionSummary]$summary" + - task: PowerShell@2 + displayName: 'Create publisher credentials file' + inputs: + targetType: 'inline' + script: | + cd $(FlutterToolPath) + cd.. + cd .pub-cache/ + + $credentials = @{ + accessToken = "$(ACCESS_TOKEN)" + refreshToken = "$(REFRESH_TOKEN)" + tokenEndpoint = "$(TOKEN_ENDPOINT)" + scopes = @("https://www.googleapis.com/auth/userinfo.email","openid") + expiration = $(EXPIRATION) + } | ConvertTo-Json | Out-File "credentials.json" + - task: CmdLine@2 displayName: 'Dry run publish' inputs: diff --git a/device_calendar/example/lib/presentation/pages/calendar_add.dart b/device_calendar/example/lib/presentation/pages/calendar_add.dart index 16dc2e7c..96deb056 100644 --- a/device_calendar/example/lib/presentation/pages/calendar_add.dart +++ b/device_calendar/example/lib/presentation/pages/calendar_add.dart @@ -65,7 +65,7 @@ class _CalendarAddPageState extends State { ), ], ), - if (Platform.isAndroid) ...[ + if (Platform.isAndroid) TextFormField( decoration: const InputDecoration( labelText: 'Local Account Name', @@ -73,7 +73,6 @@ class _CalendarAddPageState extends State { ), onSaved: (String value) => _localAccountName = value, ), - ] ], ), ),