diff --git a/.github/issue_template.md b/.github/issue_template.md index a2680d0e..ad226dfc 100644 --- a/.github/issue_template.md +++ b/.github/issue_template.md @@ -1,26 +1,29 @@ -## General Information + diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 00000000..74cb8c43 --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,35 @@ +# Configuration for probot-stale - https://github.com/probot/stale + +# Number of days of inactivity before an Issue or Pull Request becomes stale +daysUntilStale: 14 + +# Number of days of inactivity before a stale Issue or Pull Request is closed +daysUntilClose: 7 + +# Issues or Pull Requests with these labels will never be considered stale +exemptLabels: + - "enhancement" + - "confirmed bug" + - "discussion" + - "feature request" + - "documentation" + +# Label to use when marking as stale +staleLabel: stale + +# Comment to post when marking as stale. Set to `false` to disable +markComment: > + This issue has been marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. + +# Comment to post when removing the stale label. Set to `false` to disable +unmarkComment: false + +# Comment to post when closing a stale Issue or Pull Request. Set to `false` to disable +closeComment: > + This issue has been auto-closed because there hasn't been any activity for at least 21 days. + However, we really appreciate your contribution, so thank you for that! 🙏 + Also, feel free to [open a new issue](https://github.com/MessageKit/MessageKit/issues/new) if you still experience this problem 👍. + +# Limit to only `issues` +only: issues diff --git a/CHANGELOG.md b/CHANGELOG.md index 30eecdb9..fb68a287 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,17 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa ## Upcoming release +## [1.0.0](https://github.com/MessageKit/MessageKit/releases/tag/1.0.0) + +- First major release. + +## [[Prerelease] 1.0.0-beta.2](https://github.com/MessageKit/MessageKit/releases/tag/1.0.0-beta.2) + +### Changed + +- Relaxed the settable requirement for the `LocationItem` and `MediaItem` protocols. +[#727](https://github.com/MessageKit/MessageKit/pull/716) by [@SD10](https://github.com/sd10). + ### Fixed - Fixed `MessageContentCell`'s subviews `frame` when size equal to `.zero`. diff --git a/MessageKit.podspec b/MessageKit.podspec index 04643ad8..f7c44868 100644 --- a/MessageKit.podspec +++ b/MessageKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'MessageKit' - s.version = '1.0.0-beta.1' + s.version = '1.0.0' s.license = { :type => "MIT", :file => "LICENSE.md" } s.summary = 'An elegant messages UI library for iOS.' diff --git a/Sources/Protocols/LocationItem.swift b/Sources/Protocols/LocationItem.swift index 5cb12b5d..f08fccb3 100644 --- a/Sources/Protocols/LocationItem.swift +++ b/Sources/Protocols/LocationItem.swift @@ -28,9 +28,9 @@ import class CoreLocation.CLLocation public protocol LocationItem { /// The location. - var location: CLLocation { get set } + var location: CLLocation { get } /// The size of the location item. - var size: CGSize { get set } + var size: CGSize { get } } diff --git a/Sources/Protocols/MediaItem.swift b/Sources/Protocols/MediaItem.swift index 10acfe12..cddb94c7 100644 --- a/Sources/Protocols/MediaItem.swift +++ b/Sources/Protocols/MediaItem.swift @@ -28,15 +28,15 @@ import Foundation public protocol MediaItem { /// The url where the media is located. - var url: URL? { get set } + var url: URL? { get } /// The image. - var image: UIImage? { get set } + var image: UIImage? { get } /// A placeholder image for when the image is obtained asychronously. - var placeholderImage: UIImage { get set } + var placeholderImage: UIImage { get } /// The size of the media item. - var size: CGSize { get set } + var size: CGSize { get } }