From 14eb76bf07aa0cbbe5e1fd5ce257912245f252bb Mon Sep 17 00:00:00 2001 From: "Bram (hryeh)" Date: Sat, 1 Jul 2017 17:36:29 +0800 Subject: [PATCH 1/2] add Codecov --- Example/BAPeekPop.xcodeproj/project.pbxproj | 4 ++++ README.md | 1 + 2 files changed, 5 insertions(+) diff --git a/Example/BAPeekPop.xcodeproj/project.pbxproj b/Example/BAPeekPop.xcodeproj/project.pbxproj index 714532b..9c0fdaa 100644 --- a/Example/BAPeekPop.xcodeproj/project.pbxproj +++ b/Example/BAPeekPop.xcodeproj/project.pbxproj @@ -14,6 +14,7 @@ 37079AB81E26836C00382D60 /* 2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 37079AB41E26836C00382D60 /* 2.jpg */; }; 37079AB91E26836C00382D60 /* 3.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 37079AB51E26836C00382D60 /* 3.jpg */; }; 37079ABA1E26836C00382D60 /* 4.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 37079AB61E26836C00382D60 /* 4.jpg */; }; + 376B9CCC1F079DB000B04882 /* CHANGELOG.md in Sources */ = {isa = PBXBuildFile; fileRef = 376B9CCB1F079DB000B04882 /* CHANGELOG.md */; }; 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; @@ -52,6 +53,7 @@ 37079AB41E26836C00382D60 /* 2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = 2.jpg; path = Images/2.jpg; sourceTree = ""; }; 37079AB51E26836C00382D60 /* 3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = 3.jpg; path = Images/3.jpg; sourceTree = ""; }; 37079AB61E26836C00382D60 /* 4.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = 4.jpg; path = Images/4.jpg; sourceTree = ""; }; + 376B9CCB1F079DB000B04882 /* CHANGELOG.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = CHANGELOG.md; path = ../CHANGELOG.md; sourceTree = ""; }; 5D94320FA1F5F4675F25A3AB /* BAPeekPop.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = BAPeekPop.podspec; path = ../BAPeekPop.podspec; sourceTree = ""; }; 6003F58A195388D20070C39A /* BAPeekPop_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BAPeekPop_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; @@ -205,6 +207,7 @@ 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { isa = PBXGroup; children = ( + 376B9CCB1F079DB000B04882 /* CHANGELOG.md */, 5D94320FA1F5F4675F25A3AB /* BAPeekPop.podspec */, DD2BF58B40EF7C9147CC4491 /* README.md */, 68A10F78EA393989938AB53F /* LICENSE */, @@ -426,6 +429,7 @@ buildActionMask = 2147483647; files = ( 6003F59E195388D20070C39A /* AppDelegate.m in Sources */, + 376B9CCC1F079DB000B04882 /* CHANGELOG.md in Sources */, 6003F5A7195388D20070C39A /* ViewController.m in Sources */, 6003F59A195388D20070C39A /* main.m in Sources */, 37079AAF1E26833400382D60 /* PreviewingViewController.m in Sources */, diff --git a/README.md b/README.md index adb861b..bb999c6 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![Version](https://img.shields.io/cocoapods/v/BAPeekPop.svg?style=flat)](http://cocoapods.org/pods/BAPeekPop) [![License](https://img.shields.io/cocoapods/l/BAPeekPop.svg?style=flat)](http://cocoapods.org/pods/BAPeekPop) [![Platform](https://img.shields.io/cocoapods/p/BAPeekPop.svg?style=flat)](http://cocoapods.org/pods/BAPeekPop) +[![codecov](https://codecov.io/gh/BramYeh/BAPeekPop/branch/master/graph/badge.svg)](https://codecov.io/gh/BramYeh/BAPeekPop) * Peek & Pop Compat for Long Press on non 3D touch Device of iOS 9+ * BAPeekPop is the Objective-C library to support 3D touch similar operation on older device via long-press From da8269189fc54133dfaaebfcc6b684425cffa0f5 Mon Sep 17 00:00:00 2001 From: "Bram (hryeh)" Date: Sat, 1 Jul 2017 17:44:05 +0800 Subject: [PATCH 2/2] update chnage log and podspec --- BAPeekPop.podspec | 2 +- BAPeekPop/Classes/BAPeekPop+Private.h | 2 ++ CHANGELOG.md | 4 ++++ README.md | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/BAPeekPop.podspec b/BAPeekPop.podspec index 9595b8c..cc0f0da 100644 --- a/BAPeekPop.podspec +++ b/BAPeekPop.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'BAPeekPop' - s.version = '1.1.1' + s.version = '1.1.2' s.summary = 'Peek & Pop Compat for Long Press on non 3D touch Device of iOS 9+' # This description is used to generate tags and improve search results. diff --git a/BAPeekPop/Classes/BAPeekPop+Private.h b/BAPeekPop/Classes/BAPeekPop+Private.h index 3cd2196..fca1c33 100644 --- a/BAPeekPop/Classes/BAPeekPop+Private.h +++ b/BAPeekPop/Classes/BAPeekPop+Private.h @@ -9,8 +9,10 @@ #import "BAPeekPop.h" @interface BAPeekPop (Private) + /// The current top view controller of the application @property (nonatomic, readonly) UIViewController *topmostViewController; + @end diff --git a/CHANGELOG.md b/CHANGELOG.md index ce0fdbf..5e823e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [v1.1.2](https://github.com/BramYeh/BAPeekPop/releases/tag/1.1.2) +* Add more unit tests coverage +* Fix issue when presenting previewingViewController from a modal view controller in devices without 3D Touch. @gabmarfe + ## [v1.1.1](https://github.com/BramYeh/BAPeekPop/releases/tag/1.1.1) * Make some functions available to other files to be able to use the peekpop view in MKAnnotations since annotations cannot detect long tap gestures using BAPeekPop @kimmanuel * Changed text color of actions buttons @kimmanuel diff --git a/README.md b/README.md index bb999c6..c62ea3e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Version](https://img.shields.io/cocoapods/v/BAPeekPop.svg?style=flat)](http://cocoapods.org/pods/BAPeekPop) [![License](https://img.shields.io/cocoapods/l/BAPeekPop.svg?style=flat)](http://cocoapods.org/pods/BAPeekPop) [![Platform](https://img.shields.io/cocoapods/p/BAPeekPop.svg?style=flat)](http://cocoapods.org/pods/BAPeekPop) -[![codecov](https://codecov.io/gh/BramYeh/BAPeekPop/branch/master/graph/badge.svg)](https://codecov.io/gh/BramYeh/BAPeekPop) +[![Codecov](https://codecov.io/gh/BramYeh/BAPeekPop/branch/master/graph/badge.svg)](https://codecov.io/gh/BramYeh/BAPeekPop) * Peek & Pop Compat for Long Press on non 3D touch Device of iOS 9+ * BAPeekPop is the Objective-C library to support 3D touch similar operation on older device via long-press