Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
35 changes: 0 additions & 35 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

15 changes: 6 additions & 9 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
disabled_rules:
- function_parameter_count
- line_length
- identifier_name
- type_name
- function_body_length
- type_body_length
- force_try
- force_cast
- cyclomatic_complexity
- identifier_name
- type_name
- line_length
- file_length
- large_tuple
- nesting
- trailing_whitespace

included:
- Classes
- FreetimeTests
- Local\ Pods
excluded:
- Pods
- Local Pods
- Playgrounds
- Local\ Pods/SwipeCellKit
- Sample

reporter: "xcode"
110 changes: 110 additions & 0 deletions AppStore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# App Store Details

[App Store Link](https://itunes.apple.com/us/app/githawk-for-github/id1252320249?ls=1&mt=8)

## App Information

### Name

GitHawk for GitHub

### Subtitle

Better GitHub notifications

### Privacy Policy URL

http://githawk.com/privacy.html

### Category

1. Productivity
2. Utilities

### Rating

4+

## Version Information

### Keywords

```
github,codehub,gitbucket,ioctocat,gitlab,repository,gitbucket,gitter,gothub,githun,girhub,bitbucket
```

- github
- codehub
- gitbucket
- ioctocat
- gitlab
- repository
- gitbucket
- gitter
- gothub
- githun
- girhub
- bitbucket

### Description

```
GitHawk will help you achieve INBOX ZERO with your GitHub notifications. Comment on Issues and Pull Requests even faster than GitHub desktop. GitHawk is also the first-ever mobile app that lets you add emoji reactions!

TOP FEATURES

- Reach INBOX ZERO with GitHub notifications
- Read, reply, and react to Issues and Pull Requests
- Fast, native GitHub flavored Markdown
- Browse Repositories and create Issues
- 100% open source

ISSUES & PULL REQUESTS

- Browse file changes
- Manage labels, reviewers, assignees, and miletones
- Open, close and lock
- React with emoji on comments
- Read comments, reviews, and view the timeline
- Comment with fast Markdown shortcuts
- Edit and delete comments

NOTIFICATIONS

- Browse latest notifications
- Swipe to mark read or Mark All

SEARCH

- Search for Repositories (Issues and Users coming soon!)
- View recent searches

BOOKMARKS

- Keep track of your favorite Repositories, Issues, and Pull Requests

REPOSITORIES

- READMEs are native and fast
- View Issues and Pull Requests
- Browse files and code
- Create new Issues

OTHER

- Homescreen badge for unread notifications
- Sign in with multiple accounts
- View GitHub API status

GitHawk is also fully open source, so if there are features or fixes that you want, its as simple as building it yourself! You can find all of the source code on GitHub:

github.com/rnystrom/githawk

Follow us on Twitter: @githawk
```

### URLs

- **Support URL:** http://githawk.com
- **Marketing URL:** http://githawk.com

46 changes: 0 additions & 46 deletions CODE_OF_CONDUCT.md

This file was deleted.

6 changes: 3 additions & 3 deletions Classes/Bookmark/BookmarkCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class BookmarkCell: SwipeSelectableCell {

override init(frame: CGRect) {
super.init(frame: frame)

backgroundColor = .white

contentView.clipsToBounds = true
Expand Down Expand Up @@ -84,14 +84,14 @@ final class BookmarkCell: SwipeSelectableCell {
string: "\(viewModel.bookmark.owner)/\(viewModel.bookmark.name)",
attributes: [
.font: Styles.Text.secondaryBold.preferredFont,
.foregroundColor: Styles.Colors.Gray.light.color
.foregroundColor: Styles.Colors.Gray.light.color,
]
)
detailString.append(NSAttributedString(
string: " #\(viewModel.bookmark.number)",
attributes: [
.font: Styles.Text.secondary.preferredFont,
.foregroundColor: Styles.Colors.Gray.light.color
.foregroundColor: Styles.Colors.Gray.light.color,
]
))
detailLabel.attributedText = detailString
Expand Down
23 changes: 10 additions & 13 deletions Classes/Bookmark/BookmarkNavigationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ final class BookmarkNavigationController {

private let store: BookmarkStore
private let model: Bookmark
private static let iconImageInset = UIEdgeInsets(top: 0, left: 16, bottom: 0, right: 0)

init?(store: BookmarkStore?, model: Bookmark?) {
guard let store = store, let model = model else { return nil }
Expand All @@ -23,19 +22,19 @@ final class BookmarkNavigationController {
}

// MARK: Public API

var navigationItem: UIBarButtonItem {
let item = UIBarButtonItem()
configureNavigationItem(item)
return item
}

func configureNavigationItem(_ item: UIBarButtonItem) {

let accessibilityLabel: String
let imageName: String
let selector: Selector

if store.contains(model) {
imageName = "nav-bookmark-selected"
accessibilityLabel = Constants.Strings.removeBookmark
Expand All @@ -45,38 +44,36 @@ final class BookmarkNavigationController {
accessibilityLabel = Constants.Strings.bookmark
selector = #selector(BookmarkNavigationController.add(sender:))
}

item.accessibilityLabel = accessibilityLabel
item.image = UIImage(named: imageName)?.withRenderingMode(.alwaysTemplate)
item.target = self
item.action = selector
item.isEnabled = true
item.width = 0
item.imageInsets = BookmarkNavigationController.iconImageInset
}

//for timeframe between viewDidLoad() and bookmark info is loaded
static var disabledNavigationItem: UIBarButtonItem {
let item = UIBarButtonItem()
item.image = UIImage(named: "nav-bookmark")?.withRenderingMode(.alwaysTemplate)
item.isEnabled = false
item.imageInsets = BookmarkNavigationController.iconImageInset
return item
}

// MARK: Private API

@objc func add(sender: UIBarButtonItem) {
Haptic.triggerSelection()
sender.action = #selector(BookmarkNavigationController.remove(sender:))
sender.image = UIImage(named: "nav-bookmark-selected")?.withRenderingMode(.alwaysTemplate)
store.add(model)
}

@objc func remove(sender: UIBarButtonItem) {
sender.action = #selector(BookmarkNavigationController.add(sender:))
sender.image = UIImage(named: "nav-bookmark")?.withRenderingMode(.alwaysTemplate)
store.remove(model)
}

}
2 changes: 1 addition & 1 deletion Classes/Bookmark/BookmarkSectionController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class BookmarkSectionController: ListGenericSectionController<BookmarkView

return CGSize(
width: width,
height: max(object.text.viewSize(in: width).height, Styles.Sizes.tableCellHeight + Styles.Sizes.rowSpacing * 2)
height: max(object.text.viewSize(in: width).height, Styles.Sizes.tableCellHeightLarge)
)
}

Expand Down
4 changes: 3 additions & 1 deletion Classes/Bookmark/BookmarkViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ TabNavRootViewControllerType {

searchBar.delegate = self
searchBar.placeholder = Constants.Strings.searchBookmarks
searchBar.tintColor = Styles.Colors.Blue.medium.color
searchBar.backgroundColor = .clear
searchBar.searchBarStyle = .minimal
navigationItem.titleView = searchBar
Expand All @@ -98,11 +99,12 @@ TabNavRootViewControllerType {
collectionView.collectionViewLayout.invalidateForOrientationChange()
}
}

override func viewWillDisappear(_ animated: Bool) {
searchBar.resignFirstResponder()
}


private func update(animated: Bool) {
adapter.performUpdates(animated: animated)
}
Expand Down
Loading