Skip to content

Commit

Permalink
Merge pull request #90 from ngs/develop
Browse files Browse the repository at this point in the history
v2.2.1
  • Loading branch information
ngs authored Aug 12, 2018
2 parents b1d2cc6 + 76ea7e6 commit 4268cc8
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 34 deletions.
2 changes: 1 addition & 1 deletion CI2Go/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3288,7 +3288,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.2.0</string>
<string>2.2.1</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand Down
2 changes: 1 addition & 1 deletion CI2Go/View Controllers/LoginViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class LoginViewController: UIViewController, WKNavigationDelegate {
return
}
let isCircle = Hostname(url: navigationAction.request.url)?.isCircleCI == true
webView.alpha = isCircle ? 0 : 1
webView.alpha = isCircle ? 0.2 : 1
webView.isUserInteractionEnabled = !isCircle
navigationItem.rightBarButtonItem = UIBarButtonItem(
activityIndicatorStyle: ColorScheme.current.activityIndicatorViewStyle)
Expand Down
2 changes: 1 addition & 1 deletion CI2GoTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>2.2.0</string>
<string>2.2.1</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion CI2GoTodayExtension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>2.2.0</string>
<string>2.2.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSExtension</key>
Expand Down
17 changes: 10 additions & 7 deletions CI2GoTodayExtension/TodayViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ class TodayViewController: UIViewController {
if let cache = [Build].fromCache() {
diffCalculator.sectionedValues = SectionedValues<Int, Build>([(0, cache)])
}
if let date = [Build].cacheFile.modifiedDate {
updatedTimeLabel.text = "Last update " + dateFormatter.string(from: date)
} else {
updatedTimeLabel.text = ""
}
updateLastUpdateLabel(date: [Build].cacheFile.modifiedDate)
}

@IBAction func refresh(_ sender: Any) {
Expand All @@ -67,7 +63,7 @@ class TodayViewController: UIViewController {
guard
let activeDisplayMode = activeDisplayMode ?? self.extensionContext?.widgetActiveDisplayMode,
!builds.isEmpty else {
return
return
}
let width = width ?? preferredContentSize.width

Expand Down Expand Up @@ -114,12 +110,19 @@ class TodayViewController: UIViewController {
DispatchQueue.main.async {
self.diffCalculator.sectionedValues = SectionedValues<Int, Build>([(0, newBuilds)])
self.updatePreferredContentSize()
self.updatedTimeLabel.text = "Last update: " + self.dateFormatter.string(from: Date())
self.updateLastUpdateLabel(date: Date())
completionHandler?(.newData)
}
}.resume()
}

func updateLastUpdateLabel(date: Date?) {
if let date = date {
updatedTimeLabel.text = "Last update " + dateFormatter.string(from: date)
} else {
updatedTimeLabel.text = ""
}
}
}

extension TodayViewController: NCWidgetProviding {
Expand Down
2 changes: 1 addition & 1 deletion CI2GoUITests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>2.2.0</string>
<string>2.2.1</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion CI2GoWatch/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.2.0</string>
<string>2.2.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>UISupportedInterfaceOrientations</key>
Expand Down
2 changes: 1 addition & 1 deletion CI2GoWatchExtension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>2.2.0</string>
<string>2.2.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>CLKComplicationPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ github "icanzilb/TaskQueue" "1.1.1"
github "jdg/MBProgressHUD" "1.1.0"
github "jflinter/Dwifft" "0.8"
github "kishikawakatsumi/KeychainAccess" "v3.1.1"
github "krzyzanowskim/CryptoSwift" "0.10.0"
github "krzyzanowskim/CryptoSwift" "0.11.0"
github "ngs/pusher-websocket-swift" "41d16860bfe27997d9079280e18fb38c88979e14"
github "nvzqz/FileKit" "v5.1.0"
27 changes: 11 additions & 16 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ GEM
CFPropertyList (3.0.0)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
atomos (0.1.2)
atomos (0.1.3)
babosa (1.0.2)
claide (1.0.2)
coderay (1.1.2)
Expand Down Expand Up @@ -46,7 +46,7 @@ GEM
faraday_middleware (0.12.2)
faraday (>= 0.7.4, < 1.0)
fastimage (2.1.3)
fastlane (2.99.0)
fastlane (2.101.1)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.3, < 3.0.0)
babosa (>= 1.0.2, < 2.0.0)
Expand All @@ -61,7 +61,7 @@ GEM
faraday_middleware (~> 0.9)
fastimage (>= 2.1.0, < 3.0.0)
gh_inspector (>= 1.1.2, < 2.0.0)
google-api-client (>= 0.21.2, < 0.22.0)
google-api-client (>= 0.21.2, < 0.24.0)
highline (>= 1.7.2, < 2.0.0)
json (< 3.0.0)
mini_magick (~> 4.5.1)
Expand All @@ -85,34 +85,29 @@ GEM
fastlane-plugin-coveralls (1.0.1)
xccoveralls (= 1.0.0)
gh_inspector (1.1.3)
google-api-client (0.21.2)
google-api-client (0.23.4)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.5, < 0.7.0)
httpclient (>= 2.8.1, < 3.0)
mime-types (~> 3.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.0)
googleauth (0.6.2)
googleauth (0.6.4)
faraday (~> 0.12)
jwt (>= 1.4, < 3.0)
logging (~> 2.0)
memoist (~> 0.12)
multi_json (~> 1.11)
os (~> 0.9)
os (>= 0.9, < 2.0)
signet (~> 0.7)
highline (1.7.10)
http-cookie (1.0.3)
domain_name (~> 0.5)
httpclient (2.8.3)
json (2.1.0)
jwt (2.1.0)
little-plugger (1.1.4)
logging (2.2.2)
little-plugger (~> 1.1)
multi_json (~> 1.10)
memoist (0.16.0)
method_source (0.9.0)
mime-types (3.1)
mime-types (3.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_magick (4.5.1)
Expand All @@ -121,7 +116,7 @@ GEM
multipart-post (2.0.0)
nanaimo (0.2.6)
naturally (2.2.0)
os (0.9.6)
os (1.0.0)
plist (3.4.0)
pry (0.11.3)
coderay (~> 1.1.0)
Expand Down Expand Up @@ -156,8 +151,8 @@ GEM
unicode-display_width (~> 1.1, >= 1.1.1)
thor (0.19.4)
tins (1.16.3)
tty-cursor (0.5.0)
tty-screen (0.6.4)
tty-cursor (0.6.0)
tty-screen (0.6.5)
tty-spinner (0.8.0)
tty-cursor (>= 0.5.0)
uber (0.1.0)
Expand Down Expand Up @@ -190,4 +185,4 @@ DEPENDENCIES
xcov!

BUNDLED WITH
1.16.1
1.16.3
10 changes: 9 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ platform :ios do
xcode_select ENV['XCODE_PATH'] if ENV['XCODE_PATH']
build_app(
export_method: 'ad-hoc',
output_directory: './build/adhoc'
output_directory: './build/adhoc',
export_options: {
iCloudContainerEnvironment: 'Production'
}
)
end

Expand Down Expand Up @@ -115,6 +118,11 @@ platform :ios do
increment_version_number bump_type: 'minor'
end

desc 'Increment patch version'
lane :increment_patch_version do
increment_version_number bump_type: 'patch'
end

desc 'Upload Coverage data to Coveralls'
lane :send_coveralls do
coveralls(
Expand Down
5 changes: 5 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ Take screenshots
fastlane ios increment_minor_version
```
Increment minor version
### ios increment_patch_version
```
fastlane ios increment_patch_version
```
Increment patch version
### ios send_coveralls
```
fastlane ios send_coveralls
Expand Down
4 changes: 2 additions & 2 deletions fastlane/metadata/en-US/release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- Build Artifacts are now downloaded to iCloud Drive
- Change Application Icon on changing color scheme
- Make web view translucent while retrieving CircleCI token
- Update labelling

0 comments on commit 4268cc8

Please sign in to comment.