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

Project Hierarchy Update & Cleanup #215

Merged
merged 2 commits into from
Apr 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ pubspec.lock
# If you don't generate documentation locally you can remove this line.
doc/api/
device_calendar.code-workspace
device_calendar/example/.flutter-plugins-dependencies
device_calendar/example/ios/Flutter/flutter_export_environment.sh
device_calendar/example/ios/Flutter/Flutter.podspec
example/.flutter-plugins-dependencies
example/ios/Flutter/flutter_export_environment.sh
example/ios/Flutter/Flutter.podspec
44 changes: 22 additions & 22 deletions device_calendar/CHANGELOG.md → CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,34 @@
## 3.2.0

* Added time zone support
* Project clean up
* Project hierarchy update and clean up

## 3.1.0 6th March 2020 - Bug fixes and new features
## 3.1.0 25th 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)
* Boolean variable `isDefault` added for issue [145](https://github.com/builttoroam/device_calendar/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/device_calendar/issues/126)
* Updated property summaries for issues [121](https://github.com/builttoroam/device_calendar/issues/121) and [122](https://github.com/builttoroam/device_calendar/issues/122)
* Updated example documentation for issue [119](https://github.com/builttoroam/device_calendar/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)
* [Android] Fixed all day timezone issue [164](https://github.com/builttoroam/device_calendar/issues/164)
* Added support for deleting individual or multiple instances of a recurring event for issue [108](https://github.com/builttoroam/device_calendar/issues/108)
* Ability to add local calendars with a desired colour for issue [115](https://github.com/builttoroam/device_calendar/issues/115)
* Returns account name and type for each calendars for issue [179](https://github.com/builttoroam/device_calendar/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)
* Fixed all day conditional check for issue [162](https://github.com/builttoroam/device_calendar/issues/162)

## 3.0.0+2 30th January 2020

* Updated `event.allDay` property in `createOrUpdateEvent` method to be null-aware

## 3.0.0+1 28th January 2020

* Updated `event.url` property in `createOrUpdateEvent` method to be null-aware for issue [152](https://github.com/builttoroam/flutter_plugins/issues/152)
* Updated `event.url` property in `createOrUpdateEvent` method to be null-aware for issue [152](https://github.com/builttoroam/device_calendar/issues/152)

## 3.0.0 21st January 2020

Expand All @@ -55,7 +55,7 @@
## 1.0.0+3 9th January 2020

* Flutter upgrade to 1.12.13
* Added an URL input for calendar events for issue [132](https://github.com/builttoroam/flutter_plugins/issues/132)
* Added an URL input for calendar events for issue [132](https://github.com/builttoroam/device_calendar/issues/132)

## 1.0.0+2 30th August 2019

Expand All @@ -67,11 +67,11 @@

## 1.0.0 28th August 2019

* **BREAKING CHANGE** `retrieveCalendars` and `retrieveEvents` now return lists that cannot be modified (`UnmodifiableListView`) to address part of issue [113](https://github.com/builttoroam/flutter_plugins/issues/113)
* **BREAKING CHANGE** `retrieveCalendars` and `retrieveEvents` now return lists that cannot be modified (`UnmodifiableListView`) to address part of issue [113](https://github.com/builttoroam/device_calendar/issues/113)
* Support for more advanced recurrence rules
* Update README to include information about using ProGuard for issue [99](https://github.com/builttoroam/flutter_plugins/issues/99)
* Made event title optional to fix issue [72](https://github.com/builttoroam/flutter_plugins/issues/72)
* Return information about the organiser of the event as per issue [73](https://github.com/builttoroam/flutter_plugins/issues/73)
* Update README to include information about using ProGuard for issue [99](https://github.com/builttoroam/device_calendar/issues/99)
* Made event title optional to fix issue [72](https://github.com/builttoroam/device_calendar/issues/72)
* Return information about the organiser of the event as per issue [73](https://github.com/builttoroam/device_calendar/issues/73)
* Return attendance status of attendees and if they're required for an event. These are details are different across iOS and Android and so are returned within platform-specific objects
* Ability to modify attendees for an event
* Ability to create reminders for events expressed in minutes before the event starts
Expand All @@ -86,7 +86,7 @@

## 0.2.1 5th August 2019

* [Android] Fixes issue [101](https://github.com/builttoroam/flutter_plugins/issues/101) where plugin results in a crash with headless execution
* [Android] Fixes issue [101](https://github.com/builttoroam/device_calendar/issues/101) where plugin results in a crash with headless execution

## 0.2.0 30th July 2019

Expand All @@ -96,7 +96,7 @@

## 0.1.3 5th July 2019

* [iOS] Fixes issue [94](https://github.com/builttoroam/flutter_plugins/issues/94) that occurred on 32-bit iOS devices around date of events. Thanks to the PR submitted by [duzenko](https://github.com/duzenko)
* [iOS] Fixes issue [94](https://github.com/builttoroam/device_calendar/issues/94) that occurred on 32-bit iOS devices around date of events. Thanks to the PR submitted by [duzenko](https://github.com/duzenko)

## 0.1.2+2 28th May 2019

Expand All @@ -109,11 +109,11 @@

## 0.1.2 - 16th May 2019

* [Android] An updated fix to address issue [79](https://github.com/builttoroam/flutter_plugins/issues/79), thanks to the PR submitted by [Gerry High](https://github.com/gerryhigh)
* [Android] An updated fix to address issue [79](https://github.com/builttoroam/device_calendar/issues/79), thanks to the PR submitted by [Gerry High](https://github.com/gerryhigh)

## 0.1.1 - 1st March 2019

* Fixed issue [79](https://github.com/builttoroam/flutter_plugins/issues/79) where on Android, the plugin was indicating that it was handling permissions that it shouldn't have
* Fixed issue [79](https://github.com/builttoroam/device_calendar/issues/79) where on Android, the plugin was indicating that it was handling permissions that it shouldn't have

## 0.1.0 - 26th February 2019

Expand All @@ -127,7 +127,7 @@

## 0.0.7 - 16th November 2018

* Fixes issue [##67](https://github.com/builttoroam/flutter_plugins/issues/67) and [##68](https://github.com/builttoroam/flutter_plugins/issues/68). Thanks to PR submitted by huzhiren.
* Fixes issue [##67](https://github.com/builttoroam/device_calendar/issues/67) and [##68](https://github.com/builttoroam/device_calendar/issues/68). Thanks to PR submitted by huzhiren.

## 0.0.6 - 18th June 2018

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions device_calendar/README.md → README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Device Calendar Plugin

[![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)
[![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=111)

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

Expand Down Expand Up @@ -30,7 +30,7 @@ The following will need to be added to the manifest file for your application to
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
```

If you have Proguard enabled, you may need to add the following to your configuration (thanks to [Britannio Jarrett](https://github.com/britannio) who posted about it [here](https://github.com/builttoroam/flutter_plugins/issues/99))
If you have Proguard enabled, you may need to add the following to your configuration (thanks to [Britannio Jarrett](https://github.com/britannio) who posted about it [here](https://github.com/builttoroam/device_calendar/issues/99))

```
-keep class com.builttoroam.devicecalendar.** { *; }
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 14 additions & 14 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ stages:
displayName: 'Flutter build - Android'
inputs:
target: 'aab'
projectDirectory: 'device_calendar/example'
projectDirectory: 'example'

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

# -----------CD Pre-release -----------
Expand All @@ -60,10 +60,10 @@ stages:
inputs:
targetType: 'inline'
script: |
[string] $version = select-string -path "$(Build.SourcesDirectory)/device_calendar/pubspec.yaml" -pattern "$(versionNumberRegex)" | %{ $_.Matches[0].Value }
[string] $version = select-string -path "$(Build.SourcesDirectory)/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
[string] $pubspecContent = Get-Content -Path "$(Build.SourcesDirectory)/pubspec.yaml" -Raw

Write-Host " (i) Current version: $version"
Write-Host " (i) Original pubspec.yaml content: $pubspecContent"
Expand All @@ -74,14 +74,14 @@ stages:

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

$newPubspecContent | Set-Content -Path "$(Build.SourcesDirectory)/device_calendar/pubspec.yaml"
$newPubspecContent | Set-Content -Path "$(Build.SourcesDirectory)/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
[string] $changelogContent = Get-Content -Path "$(Build.SourcesDirectory)/CHANGELOG.md" -Raw

Write-Host " (i) Current version: $env.currentVersion"
Write-Host " (i) Original CHANGELOG.md content: $changelogContent"
Expand All @@ -90,7 +90,7 @@ stages:

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

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

- task: PowerShell@2
displayName: 'Create publisher credentials file'
Expand All @@ -112,13 +112,13 @@ stages:
- task: CmdLine@2
displayName: 'Dry run publish'
inputs:
workingDirectory: '$(Build.SourcesDirectory)/device_calendar'
workingDirectory: '$(Build.SourcesDirectory)'
script: '$(flutterExecPath) pub publish --dry-run'

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

# ----------- CD Production -----------
Expand All @@ -141,7 +141,7 @@ stages:
inputs:
targetType: 'inline'
script: |
[string] $version = select-string -path "$(Build.SourcesDirectory)/device_calendar/pubspec.yaml" -pattern "$(versionNumberRegex)" | %{ $_.Matches[0].Value }
[string] $version = select-string -path "$(Build.SourcesDirectory)/pubspec.yaml" -pattern "$(versionNumberRegex)" | %{ $_.Matches[0].Value }

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

Expand All @@ -150,7 +150,7 @@ stages:
inputs:
targetType: 'inline'
script: |
[string] $summary = select-string -path "$(Build.SourcesDirectory)/device_calendar/CHANGELOG.md" -pattern "($([regex]::escape($env:currentVersion))).*" | %{ $_.Matches[0].Value }
[string] $summary = select-string -path "$(Build.SourcesDirectory)/CHANGELOG.md" -pattern "($([regex]::escape($env:currentVersion))).*" | %{ $_.Matches[0].Value }

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

Expand All @@ -174,21 +174,21 @@ stages:
- task: CmdLine@2
displayName: 'Dry run publish'
inputs:
workingDirectory: '$(Build.SourcesDirectory)/device_calendar'
workingDirectory: '$(Build.SourcesDirectory)'
script: '$(flutterExecPath) pub publish --dry-run'

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

- task: GitHubReleasePublish@1
displayName: 'Tag a release to GitHub'
inputs:
githubEndpoint: 'GitHub Tagging'
manuallySetRepository: false
githubRepository: 'builttoroam/flutter_plugins'
githubRepository: 'builttoroam/device_calendar'
githubTag: 'v$(currentVersion)'
githubReleaseTitle: '$(versionSummary)'
githubReleaseDraft: false
Expand Down
File renamed without changes.
17 changes: 0 additions & 17 deletions device_calendar/.gitignore

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion device_calendar/example/README.md → example/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Examples

Most of the APIs are covered in [calendar_event.dart](https://github.com/builttoroam/flutter_plugins/blob/master/device_calendar/example/lib/presentation/pages/calendar_event.dart) or [calendar_events.dart](https://github.com/builttoroam/flutter_plugins/blob/master/device_calendar/example/lib/presentation/pages/calendar_events.dart) files in the example app.
Most of the APIs are covered in [calendar_event.dart](https://github.com/builttoroam/device_calendar/blob/master/example/lib/presentation/pages/calendar_event.dart) or [calendar_events.dart](https://github.com/builttoroam/device_calendar/blob/master/example/lib/presentation/pages/calendar_events.dart) files in the example app.
You'll be able to get a reference of how the APIs are used.

For a full API reference, the documentation can be found at [pub.dev](https://pub.dev/documentation/device_calendar/latest/device_calendar/device_calendar-library.html).
Expand Down
File renamed without changes.
Binary file not shown.
116 changes: 116 additions & 0 deletions example/android/.idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading