Skip to content

Commit

Permalink
Merge pull request #64 from 87kangsw/release/2.1.1
Browse files Browse the repository at this point in the history
Release/2.1.1
  • Loading branch information
87kangsw committed Nov 8, 2021
2 parents ba4b9c2 + 20b783d commit ea29ffb
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,13 @@ class SettingViewController: BaseViewController, ReactorKit.View {
}

private func goToRecommendApp() {
let url = URL(string: Constants.URLs.appStoreURL)
guard let url = URL(string: Constants.URLs.appStoreURL) else { return }
let activityController = UIActivityViewController(activityItems: [url], applicationActivities: nil)
if UIDevice.isPad == true {
guard let cell = tableView.cellForRow(at: IndexPath(row: 2, section: 1)) else { return }
activityController.popoverPresentationController?.sourceView = self.tableView
activityController.popoverPresentationController?.sourceRect = cell.frame
}
self.present(activityController, animated: true, completion: nil)
}

Expand Down
22 changes: 14 additions & 8 deletions GitTime/Sources/ViewControllers/Trend/TrendViewReactor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,14 @@ final class TrendViewReactor: Reactor {
currentPeriodStars: 0,
contributors: [])

/// Repository Info
let repositoryInfo = item.xpath(".//h1[@class='h3 lh-condensed']/a")//[index]
let description = item.xpath(".//p[@class='col-9 color-text-secondary my-1 pr-4']")//[index]
// Repository Info
let repositoryInfo = item.xpath(".//h1[@class='h3 lh-condensed']/a")
let description = item.xpath(".//p[@class='col-9 color-fg-muted my-1 pr-4']")
let languageColor = item.xpath(".//span[@class='d-inline-block ml-0 mr-3']/span[1]")
let language = item.xpath(".//span[@class='d-inline-block ml-0 mr-3']/span[2]")
let star = item.xpath(".//div[@class='f6 color-text-secondary mt-2']/a[1]")//[index]
let fork = item.xpath(".//div[@class='f6 color-text-secondary mt-2']/a[2]")//[index]
let todayStar = item.xpath(".//div[@class='f6 color-text-secondary mt-2']/span[@class='d-inline-block float-sm-right']")//[index]
let star = item.xpath(".//div[@class='f6 color-fg-muted mt-2']/a[1]")
let fork = item.xpath(".//div[@class='f6 color-fg-muted mt-2']/a[2]")
let todayStar = item.xpath(".//div[@class='f6 color-fg-muted mt-2']/span[@class='d-inline-block float-sm-right']")
// let contributors = item.xpath(".//div[@class='f6 text-gray mt-2']/span[@class='d-inline-block mr-3']")

// repository Info
Expand Down Expand Up @@ -355,9 +355,15 @@ final class TrendViewReactor: Reactor {
/*
/html/body[@class='logged-in env-production page-responsive']/div[@class='application-main ']/main/div[@class='position-relative container-lg p-responsive pt-6']/div[@class='Box']/div[2]/article[@class='Box-row'][1]/div[@class='f6 color-text-secondary mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][1]/img[@class='avatar mb-1 avatar-user']/@src
*/

/*
/html/body[@class='logged-in env-production page-responsive issue-closed-done']/div[@class='application-main ']/main[@id='js-pjax-container']/div[@class='position-relative container-lg p-responsive pt-6']/div[@class='Box']/div[2]/article[@class='Box-row'][2]/div[@class='f6 color-fg-muted mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][1]/img[@class='avatar mb-1 avatar-user']/@src
*/


for i in 1...5 {
if let profile = item.xpath(".//div[@class='f6 color-text-secondary mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][\(i)]/img[@class='avatar mb-1 avatar-user']/@src").first?.text?.striped,
let name = item.xpath(".//div[@class='f6 color-text-secondary mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][\(i)]/@href").first?.text?.striped {
if let profile = item.xpath(".//div[@class='f6 color-fg-muted mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][\(i)]/img[@class='avatar mb-1 avatar-user']/@src").first?.text?.striped,
let name = item.xpath(".//div[@class='f6 color-fg-muted mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][\(i)]/@href").first?.text?.striped {
let contributorModel = TrendRepoContributor(name: String(name.dropFirst()),
profileURL: profile)
trendRepo.contributors.append(contributorModel)
Expand Down
4 changes: 2 additions & 2 deletions GitTime/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.1.0</string>
<string>2.1.1</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand All @@ -100,7 +100,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>2</string>
<string>3</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
6 changes: 3 additions & 3 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- AcknowList (2.0.2)
- AcknowList (2.0.3)
- Alamofire (5.4.4)
- Bagel (1.4.0):
- CocoaAsyncSocket
Expand Down Expand Up @@ -279,7 +279,7 @@ CHECKOUT OPTIONS:
:git: https://github.com/devxoul/Toaster.git

SPEC CHECKSUMS:
AcknowList: 209323b0f72625a61e1325f4e67a39015b62d48b
AcknowList: 6d4faca4c3e0173377fe5649e086d627cd60b003
Alamofire: f3b09a368f1582ab751b3fff5460276e0d2cf5c9
Bagel: c3fa6bcbd52db9ca976edbafd7638f0553ded101
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
Expand Down Expand Up @@ -332,4 +332,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: ecfb47752adb4f2669fe0fbed01e71aadb792c5e

COCOAPODS: 1.10.0
COCOAPODS: 1.11.2

0 comments on commit ea29ffb

Please sign in to comment.