Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prerelease #191

Merged
merged 67 commits into from
Mar 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
88860df
Returned an isDefault property for calendar
Nov 7, 2019
a4c78ef
Updated the Calendar object in Dart to use the isDefault property
Nov 7, 2019
2d040bd
Android support for isDefault calendar
bhl09 Jan 21, 2020
4b398d3
Fixed null title bug and updated version/changlog
bhl09 Jan 21, 2020
ed9a9ed
Updated property summaries and example readme
bhl09 Jan 21, 2020
e485db4
Update CHANGELOG.md
bhl09 Jan 21, 2020
bba086f
Merge pull request #146 from builttoroam/minor_enhancements
bhl09 Jan 22, 2020
7d28992
Read-only calendars are now view only
bhl09 Jan 22, 2020
4cf6431
Update CHANGELOG.md
bhl09 Jan 22, 2020
cfc7341
Fixed if condition for delete button
bhl09 Jan 23, 2020
ede5d5b
Merge pull request #150 from builttoroam/readonly_noedit
bhl09 Jan 23, 2020
a33a702
Added DayOfWeekGroup enum
bhl09 Jan 22, 2020
2eb9bd6
Updated to read the group in example app when editing an event
bhl09 Jan 22, 2020
545c540
Changed checkbox to radio buttons and added None and Custom
bhl09 Jan 28, 2020
a66b396
Merge pull request #148 from builttoroam/day_of_week_group
bhl09 Jan 28, 2020
06a819f
Add button removed for read-only calendars
bhl09 Jan 29, 2020
527ffd6
Changed to return null
bhl09 Jan 30, 2020
71e964a
added compatibility with new flutter plugin api version V2
Feb 4, 2020
af7570b
reverted condition for IS_PRIMARY for calendars in Android devices wi…
Feb 5, 2020
c166272
reverted condition for IS_PRIMARY for calendars in Android devices wi…
Feb 5, 2020
a39c06d
reverted condition for IS_PRIMARY for calendars in Android devices wi…
Feb 5, 2020
1c24b43
reverted condition for IS_PRIMARY for calendars in Android devices wi…
Feb 5, 2020
2934ae5
Merge pull request #165 from RohitKumarMishra/develop
bhl09 Feb 11, 2020
be2a7f0
added color to iOS
nadavfima Feb 10, 2020
9574726
added calendar color to Android
nadavfima Feb 10, 2020
44dc1ad
Add calendar colour to example app
bhl09 Feb 11, 2020
7240c0a
Update CHANGELOG.md
bhl09 Feb 11, 2020
10b89f0
Merge pull request #167 from builttoroam/calendar_colour
bhl09 Feb 11, 2020
4dc8e76
Merge pull request #160 from builttoroam/readonly_noadd
bhl09 Feb 11, 2020
73a6624
Build Pipelines (#176)
bhl09 Mar 18, 2020
a6cd170
Update gradle and testing fix
bhl09 Mar 6, 2020
ef36cff
Fixed to have proper date for all day event
bhl09 Mar 8, 2020
b5232f3
Update CHANGELOG.md
bhl09 Mar 9, 2020
79c8843
Update to timezone id
bhl09 Mar 11, 2020
4af4386
revert gradle
bhl09 Mar 12, 2020
123ac95
Update logic
bhl09 Mar 18, 2020
cdfa70a
Removed travis and added azure pipeline
bhl09 Mar 18, 2020
2b05e7b
Merge pull request #188 from builttoroam/pipeline_update
bhl09 Mar 19, 2020
dc3f03d
Merge pull request #183 from builttoroam/allday_timezone_fix
bhl09 Mar 19, 2020
718e135
Delete instance added for Android + example app
bhl09 Jan 23, 2020
d5f08ce
Delete instance added for iOS
bhl09 Jan 23, 2020
511c5b3
Added a new dialog for deleting instances
bhl09 Jan 24, 2020
faf4b3a
Recurrence delete functional for iOS
bhl09 Jan 24, 2020
1c231e5
Delete multiple instances is functional for Android
bhl09 Jan 28, 2020
a2a200f
Fixed to show snack bar message
bhl09 Jan 29, 2020
6545f63
Remove callbacks for pages and use widget
bhl09 Mar 5, 2020
b920f2d
Apply DayOfWeekGroup enum update
bhl09 Mar 5, 2020
1d9e7f2
Update CHANGELOG.md
bhl09 Mar 9, 2020
48b0ceb
Update loops and search logic
bhl09 Mar 18, 2020
16a3f3f
Merge pull request #172 from builttoroam/delete_instance
bhl09 Mar 19, 2020
8d92a18
added account type and name for android
bhl09 Mar 8, 2020
d12b23b
Added account name and time support for iOS
bhl09 Mar 9, 2020
55b2530
add code to retrieve sources
MaikuB Aug 30, 2019
cdb533a
add initial code for adding a calendar on iOS
MaikuB Aug 30, 2019
b42a4b9
Update to latest develop branch
bhl09 Mar 10, 2020
6d3e2d4
Added create new local calendar for Android
bhl09 Mar 11, 2020
118d14d
Added calendar add page
bhl09 Mar 11, 2020
ec7709c
Update default colour and tested with ios
bhl09 Mar 12, 2020
5712351
Default local account name added for android
bhl09 Mar 12, 2020
c186745
Update readme and changelog
bhl09 Mar 12, 2020
d25834d
Update error message
bhl09 Mar 12, 2020
2ddf5e8
Fix null/empty checking and update summary
bhl09 Mar 17, 2020
ccb1a8f
Add support to choose calendar colour
bhl09 Mar 19, 2020
c36d8bf
Changelog update
bhl09 Mar 19, 2020
8bd50cb
Merge pull request #189 from builttoroam/add_calendar
bhl09 Mar 20, 2020
f0fd8fb
Resolve conflicts
bhl09 Mar 20, 2020
27aa6b3
Merge branch 'release' into develop
bhl09 Mar 20, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

171 changes: 171 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
variables:
# The $(FlutterToolPath) variable is generated by the FlutterInstall task
# See code in the Flutter Build task https://github.com/aloisdeniel/vsts-flutter-tasks/blob/master/tasks/build/index.ts
flutterExecPath: $(FlutterToolPath)/flutter.bat
versionNumberRegex: '(?<=version: ).*'

trigger:
batch: 'true'
branches:
include:
- develop
- release
- hotfix
- master
paths:
include:
- device_calendar/*

stages:
# ----------- CI -----------
- stage: Build
jobs:
- job: BuildAndroidAndIos
pool:
vmImage: 'macOS-latest'
steps:
- task: FlutterInstall@0
displayName: 'Flutter install'
inputs:
channel: 'stable'
version: 'latest'

- task: FlutterBuild@0
displayName: 'Flutter build - Android'
inputs:
target: 'aab'
projectDirectory: 'device_calendar/example'

- task: FlutterBuild@0
displayName: 'Flutter build - iOS'
inputs:
target: 'ios'
projectDirectory: 'device_calendar/example'
iosCodesign: false

# -----------CD Pre-release -----------
- stage: DevelopmentRelease
dependsOn: Build
condition: and(succeeded(), in(variables['Build.SourceBranch'], 'refs/heads/release', 'refs/heads/hotfix'))
jobs:
- job: ReleaseDevelopmentVersion
pool:
vmImage: 'windows-latest'
steps:
- task: FlutterInstall@0
displayName: 'Flutter install'
inputs:
channel: 'stable'
version: 'latest'

- task: PowerShell@2
displayName: 'Pre-release versioning - pubspec.yaml'
inputs:
targetType: 'inline'
script: |
[string] $version = select-string -path "$(Build.SourcesDirectory)/device_calendar/pubspec.yaml" -pattern "$(versionNumberRegex)" | %{ $_.Matches[0].Value }
Write-Host "##vso[task.setvariable variable=currentVersion]$version"

[string] $pubspecContent = Get-Content -Path "$(Build.SourcesDirectory)/device_calendar/pubspec.yaml" -Raw

Write-Host " (i) Current version: $version"
Write-Host " (i) Original pubspec.yaml content: $pubspecContent"

[bool] $hasMatches = $pubspecContent -match $versionRegex

[string] $newPubspecContent = $pubspecContent -replace $version, "$version-dev.$(Build.BuildID)"

Write-Host " (i) Updated pubspec.yaml content: $newPubspecContent"

$newPubspecContent | Set-Content -Path "$(Build.SourcesDirectory)/device_calendar/pubspec.yaml"

- task: PowerShell@2
displayName: 'Pre-release versioning - CHANGELOG.md'
inputs:
targetType: 'inline'
script: |
[string] $changelogContent = Get-Content -Path "$(Build.SourcesDirectory)/device_calendar/CHANGELOG.md" -Raw

Write-Host " (i) Current version: $env.currentVersion"
Write-Host " (i) Original CHANGELOG.md content: $changelogContent"

[string] $newChangelogContent = $changelogContent -replace $env:currentVersion, "$env:currentVersion-dev.$(Build.BuildID)"

Write-Host " (i) Updated CHANGELOG.md content: $newChangelogContent"

$newChangelogContent | Set-Content -Path "$(Build.SourcesDirectory)/device_calendar/CHANGELOG.md"

- task: CmdLine@2
displayName: 'Dry run publish'
inputs:
workingDirectory: '$(Build.SourcesDirectory)/device_calendar'
script: '$(flutterExecPath) pub publish --dry-run'

- task: CmdLine@2
displayName: 'Publish'
inputs:
workingDirectory: '$(Build.SourcesDirectory)/device_calendar'
script: '$(flutterExecPath) pub publish --force'

# ----------- CD Production -----------
- stage: Release
dependsOn: Build
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
jobs:
- job: Release
pool:
vmImage: 'windows-latest'
steps:
- task: FlutterInstall@0
displayName: 'Flutter install'
inputs:
channel: 'stable'
version: 'latest'

- task: PowerShell@2
displayName: 'Get version from pubspec.yaml'
inputs:
targetType: 'inline'
script: |
[string] $version = select-string -path "$(Build.SourcesDirectory)/device_calendar/pubspec.yaml" -pattern $(versionNumberRegex) | %{ $_.Matches[0].Value }

Write-Host "##vso[task.setvariable variable=currentVersion]$version"

- task: PowerShell@2
displayName: 'Get version summary from CHANGELOG.md'
inputs:
targetType: 'inline'
script: |
[string] $summary = select-string -path "$(Build.SourcesDirectory)/device_calendar/CHANGELOG.md" -pattern "($([regex]::escape($env:currentVersion))).*" | %{ $_.Matches[0].Value }

Write-Host "##vso[task.setvariable variable=versionSummary]$summary"

- task: CmdLine@2
displayName: 'Dry run publish'
inputs:
workingDirectory: '$(Build.SourcesDirectory)/device_calendar'
script: '$(flutterExecPath) pub publish --dry-run'

- task: CmdLine@2
displayName: 'Publish'
inputs:
workingDirectory: '$(Build.SourcesDirectory)/device_calendar'
script: '$(flutterExecPath) pub publish --force'

- task: GitHubReleasePublish@1
displayName: 'Tag a release to GitHub'
inputs:
githubEndpoint: 'GitHub Tagging'
manuallySetRepository: false
githubRepository: 'builttoroam/flutter_plugins'
githubTag: 'v$(currentVersion)'
githubReleaseTitle: '$(versionSummary)'
githubReleaseDraft: false
githubReleasePrerelease: false
githubIgnoreAssets: false
githubReleaseAsset: '$(Build.ArtifactStagingDirectory)/*'
githubReuseRelease: false
githubReuseDraftOnly: false
githubSkipDuplicatedAssets: false
githubEditRelease: false
githubDeleteEmptyTag: false
15 changes: 15 additions & 0 deletions device_calendar/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 3.1.0 6th March 2020 - Bug fixes and new features

* Boolean variable `isDefault` added for issue [145](https://github.com/builttoroam/flutter_plugins/issues/145) (**NOTE**: This is not supported Android API 16 or lower, `isDefault` will always be false)
* Events with 'null' title now defaults to 'New Event', issue [126](https://github.com/builttoroam/flutter_plugins/issues/126)
* Updated property summaries for issues [121](https://github.com/builttoroam/flutter_plugins/issues/121) and [122](https://github.com/builttoroam/flutter_plugins/issues/122)
* Updated example documentation for issue [119](https://github.com/builttoroam/flutter_plugins/issues/119)
* Read-only calendars cannot be edited or deleted for the example app
* Added `DayOfWeekGroup` enum and an extension `getDays` to get corresponding dates of the enum values
* Added to retrieve colour for calendars. Thanks to [nadavfima](https://github.com/nadavfima) for the contribution and PR to add colour support for both Android and iOS
* Added compatibility with a new Flutter plugin for Android. Thanks to the PR submitted by [RohitKumarMishra](https://github.com/RohitKumarMishra)
* [Android] Fixed all day timezone issue [164](https://github.com/builttoroam/flutter_plugins/issues/164)
* Added support for deleting individual or multiple instances of a recurring event for issue [108](https://github.com/builttoroam/flutter_plugins/issues/108)
* Ability to add local calendars with a desired colour for issue [115](https://github.com/builttoroam/flutter_plugins/issues/115)
* Returns account name and type for each calendars for issue [179](https://github.com/builttoroam/flutter_plugins/issues/179)

## 3.0.0+3 3rd February 2020

* Fixed all day conditional check for issue [162](https://github.com/builttoroam/flutter_plugins/issues/162)
Expand Down
8 changes: 5 additions & 3 deletions device_calendar/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# Device Calendar Plugin

[![pub package](https://img.shields.io/pub/v/device_calendar.svg)](https://pub.dartlang.org/packages/device_calendar) [![Build Status](https://travis-ci.org/builttoroam/flutter_plugins.svg)](https://travis-ci.org/builttoroam/flutter_plugins)
[![pub package](https://img.shields.io/pub/v/device_calendar.svg)](https://pub.dartlang.org/packages/device_calendar) [![Build Status](https://dev.azure.com/builttoroam/Flutter%20Plugins/_apis/build/status/Device%20Calendar)](https://dev.azure.com/builttoroam/Flutter%20Plugins/_build/latest?definitionId=106)

A cross platform plugin for modifying calendars on the user's device.

## Features

* Ability to request permissions to modify calendars on the user's device
* Ability to check if permissions to modify the calendars on the user's device have been granted
* Retrieve calendars on the user's device
* Ability to add or retrieve calendars on the user's device
* Retrieve events associated with a calendar
* Ability to add, update or delete events from a calendar
* Ability to set up recurring events (NOTE: deleting a recurring event will currently delete all instances of it)
* Ability to set up, edit or delete recurring events
* **NOTE**: Editing a recurring event will currently edit all instances of it
* **NOTE**: Deleting multiple instances in **Android** takes time to update, you'll see the changes after a few seconds
* Ability to add, modify or remove attendees and receive if an attendee is an organiser for an event
* Ability to setup reminders for an event

Expand Down
Loading