Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 5d18141

Browse files
committed
Merge branch 'release/1.4.2'
2 parents eba6b61 + 7c3cb8f commit 5d18141

File tree

8 files changed

+47
-21
lines changed

8 files changed

+47
-21
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
33
`WPMediaPicker` adheres to [Semantic Versioning](http://semver.org/).
44

55
#### Releases
6+
- `1.4.2` Release - [1.4](#1.4.2)
67
- `1.4` Release - [1.4](#1.4)
78
- `1.3.4` Release - [1.3.4](#1.3.4)
89
- `1.3` Release - [1.3](#1.3)
@@ -24,6 +25,15 @@ All notable changes to this project will be documented in this file.
2425
- `0.16` Releases - [0.16](#16)
2526
- `0.15` Releases - [0.15](#15)
2627

28+
---
29+
## [1.4.2](https://github.com/wordpress-mobile/MediaPicker-iOS/releases/tag/1.4.2)
30+
Released on 2019-06-14. All issues associated with this milestone can be found using this [filter](https://github.com/wordpress-mobile/MediaPicker-iOS/pulls?utf8=✓&q=is%3Apr%20is%3Aclosed%20milestone%3A1.4.2).
31+
32+
### Fixed
33+
- Sorting of user albums alphabetically. #329
34+
- Fix selection frame when rotating device. #332
35+
- Fix asset display on device. #333
36+
2737
---
2838
## [1.4](https://github.com/wordpress-mobile/MediaPicker-iOS/releases/tag/1.4.0)
2939
Released on 2019-05-01. All issues associated with this milestone can be found using this [filter](https://github.com/wordpress-mobile/MediaPicker-iOS/pulls?utf8=✓&q=is%3Apr%20is%3Aclosed%20milestone%3A1.4.0).

CONTRIBUTING.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
1-
# Contributing to WPMediaPicker
1+
# How to Contribute
22

3-
Hi! Thank you for your interest in contributing to the app, we really appreciate it.
3+
First off, thank you for contributing! We're excited to collaborate with you! 🎉
44

5-
There are many ways to contribute – reporting bugs, feature suggestions, fixing bugs, submitting pull requests for enhancements.
5+
The following is a set of guidelines for the many ways you can join our collective effort.
66

7-
## Reporting Bugs, Asking Questions, Sending Suggestions
7+
Before anything else, please take a moment to read our [Code of Conduct](CODE_OF_CONDUCT.md). We expect all participants, from full-timers to occasional tinkerers, to uphold it.
88

9-
Just [file a GitHub issue](https://github.com/wordpress-mobile/MediaPicker-iOS/issues), that’s all. If you want to prefix the title with a “Question:”, “Bug:”, "Feature Request:", or the general area of the application, that would be helpful, but by no means mandatory. If you have write access, add the appropriate labels.
9+
## Reporting Bugs, Asking Questions, and Suggesting Features
1010

11-
If you’re filing a bug, specific steps to reproduce are helpful. Please include the part of the app that has the bug, along with what you expected to see and what happened instead. A screenshot is always helpful as well.
11+
Have a suggestion or feedback? Please go to [Issues](https://github.com/wordpress-mobile/MediaPicker-iOS/issues) and [open a new issue](https://github.com/wordpress-mobile/MediaPicker-iOS/issues/new). Prefix the title with a category like _"Bug:"_, _"Question:"_, or _"Feature Request:"_. Screenshots help us resolve issues and answer questions faster, so thanks for including some if you can.
1212

13-
## Submitting code changes
13+
## Submitting Code Changes
1414

15-
We welcome Pull Requests for bug fixes on any open issues that you'd like to contribute! More details on our process can be found in the [Make WordPress Mobile handbook](https://make.wordpress.org/mobile/handbook/pathways/ios/), specifically [here](https://make.wordpress.org/mobile/handbook/pathways/ios/how-to-contribute/).
15+
If you're just getting started and want to familiarize yourself with the app’s code, we suggest looking at [these issues](https://github.com/wordpress-mobile/MediaPicker-iOS/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) with the **good first issue** label. But if you’d like to tackle something different, you're more than welcome to visit the [Issues](https://github.com/wordpress-mobile/MediaPicker-iOS/issues) page and pick an item that interests you.
1616

17-
## Discussion
17+
We always try to avoid duplicating efforts, so if you decide to work on an issue, leave a comment to state your intent. If you choose to focus on a new feature or the change you’re proposing is significant, we recommend waiting for a response before proceeding. The issue may no longer align with project goals.
1818

19-
Aside from writing issues and pull requests, you can also hang out in the #mobile WordPress.org Slack channel with other WordPress Mobile developers/contributors. Check out chat.wordpress.org for instructions on how to create an account in Slack.
19+
If the change is trivial, feel free to send a pull request without notifying us.
2020

21-
The purpose of the Slack chat is to provide updates about ongoing initiatives regarding the mobile apps and to discuss, prioritize and coordinate future changes. If you have questions, Slack chat is a great place to start.
21+
### Pull Requests and Code Reviews
2222

23-
## Contribute to translations
23+
All code contributions pass through pull requests. If you haven't created a pull request before, we recommend this free video series, [How to Contribute to an Open Source Project on GitHub](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github).
2424

25-
We use a tool called GlotPress to manage translations. The WordPress-iOS GlotPress instance lives [here](http://translate.wordpress.org/projects/apps/ios/dev). To add new translations or fix existing ones, create an account over at GlotPress and submit your changes over at the GlotPress site.
25+
The core team monitors and reviews all pull requests. Depending on the changes, we will either approve them or close them with an explanation. We might also work with you to improve a pull request before approval.
26+
27+
We do our best to respond quickly to all pull requests. If you don't get a response from us after a week, feel free to reach out to us via Slack.
28+
29+
## Getting in Touch
30+
31+
If you have questions or just want to say hi, join the [WordPress Slack](https://make.wordpress.org/chat/) and drop a message on the `#mobile` channel.

Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- WPMediaPicker (1.4.1-beta.1)
2+
- WPMediaPicker (1.4.2)
33

44
DEPENDENCIES:
55
- WPMediaPicker (from `../`)
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
99
:path: "../"
1010

1111
SPEC CHECKSUMS:
12-
WPMediaPicker: c6873fefaee96c4cae808a3e9401f50ee694075e
12+
WPMediaPicker: 1897f312c7b41114ffd239fb782431ae602134a1
1313

1414
PODFILE CHECKSUM: 7c47e10b39aca62b1f30c3c4260cc99456cf95f8
1515

Pod/Classes/WPAssetViewController.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ - (void)viewDidLoad
3636
self.imageView.translatesAutoresizingMaskIntoConstraints = NO;
3737
[self.imageView.leftAnchor constraintEqualToAnchor:self.view.leftAnchor].active = YES;
3838
[self.imageView.widthAnchor constraintEqualToAnchor:self.view.widthAnchor].active = YES;
39-
[self.imageView.topAnchor constraintEqualToAnchor:self.topLayoutGuide.topAnchor].active = YES;
40-
[self.imageView.heightAnchor constraintEqualToAnchor:self.view.heightAnchor].active = YES;
39+
[self.imageView.topAnchor constraintEqualToAnchor:self.topLayoutGuide.bottomAnchor].active = YES;
40+
[self.imageView.bottomAnchor constraintEqualToAnchor:self.bottomLayoutGuide.topAnchor].active = YES;
4141

4242
[self.view addSubview:self.videoView];
4343
self.videoView.translatesAutoresizingMaskIntoConstraints = NO;
4444
[self.videoView.leftAnchor constraintEqualToAnchor:self.view.leftAnchor].active = YES;
4545
[self.videoView.widthAnchor constraintEqualToAnchor:self.view.widthAnchor].active = YES;
46-
[self.videoView.topAnchor constraintEqualToAnchor:self.topLayoutGuide.topAnchor].active = YES;
47-
[self.videoView.heightAnchor constraintEqualToAnchor:self.view.heightAnchor].active = YES;
46+
[self.videoView.topAnchor constraintEqualToAnchor:self.topLayoutGuide.bottomAnchor].active = YES;
47+
[self.videoView.bottomAnchor constraintEqualToAnchor:self.bottomLayoutGuide.topAnchor].active = YES;
4848
self.videoView.delegate = self;
4949

5050
[self.view addSubview:self.activityIndicatorView];

Pod/Classes/WPMediaCollectionViewCell.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ - (void)prepareForReuse
6767
- (void)layoutSubviews {
6868
[super layoutSubviews];
6969
self.gradientView.layer.sublayers.firstObject.frame = self.gradientView.bounds;
70+
self.selectionFrame.frame = self.backgroundView.frame;
7071
}
7172

7273
- (void)commonInit

Pod/Classes/WPPHAssetDataSource.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,10 @@ - (void)loadGroupsWithSuccess:(WPMediaSuccessBlock)successBlock
214214

215215
PHFetchOptions *albumOptions = [[PHFetchOptions alloc] init];
216216
albumOptions.predicate = [NSPredicate predicateWithFormat:@"(estimatedAssetCount != 0)"];
217+
albumOptions.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"localizedTitle" ascending:YES]];
217218
self.albums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeAlbum
218219
subtype:PHAssetCollectionSubtypeAny
219-
options:nil];
220+
options:albumOptions];
220221

221222
[collectionsArray addObjectsFromArray:[self.albums objectsAtIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, self.albums.count)]]];
222223

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ To run the example project, clone the repo, and run `pod install` from the `Exam
110110
* XCode 9 or above
111111
* iOS 10 or above
112112

113+
## Contributing
114+
115+
Read our [Contributing Guide](CONTRIBUTING.md) to learn about reporting issues, contributing code, and more ways to contribute.
116+
117+
## Getting in Touch
118+
119+
If you have questions about getting setup or just want to say hi, join the [WordPress Slack](https://chat.wordpress.org) and drop a message on the `#mobile` channel.
120+
113121
## Author
114122

115123

WPMediaPicker.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "WPMediaPicker"
3-
s.version = "1.4.1"
3+
s.version = "1.4.2"
44
s.summary = "WPMediaPicker is an iOS controller that allows capture and picking of media assets."
55
s.description = <<-DESC
66
WPMediaPicker is an iOS controller that allows capture and picking of media assets.

0 commit comments

Comments
 (0)