Skip to content

Commit

Permalink
Prepare for new release.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdhejazi committed Mar 20, 2020
1 parent d2929ee commit fafb22c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Corona.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -663,15 +663,15 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Corona/App.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.3.1;
CURRENT_PROJECT_VERSION = 1.4;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
DEVELOPMENT_TEAM = 37BYKL96J7;
INFOPLIST_FILE = Corona/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.3.1;
MARKETING_VERSION = 1.4;
PRODUCT_BUNDLE_IDENTIFIER = com.samabox.corona;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = YES;
Expand All @@ -687,15 +687,15 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Corona/App.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.3.1;
CURRENT_PROJECT_VERSION = 1.4;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
DEVELOPMENT_TEAM = 37BYKL96J7;
INFOPLIST_FILE = Corona/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.3.1;
MARKETING_VERSION = 1.4;
PRODUCT_BUNDLE_IDENTIFIER = com.samabox.corona;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"repositoryURL": "https://github.com/MhdHejazi/FloatingPanel",
"state": {
"branch": "master",
"revision": "53ce8282f60964f946c3468de97ba414e563a3d0",
"revision": "7db5b234f825dc34a0ed52045f2b4118fcd1a004",
"version": null
}
}
Expand Down
2 changes: 1 addition & 1 deletion Corona/Controller/MapController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class MapController: UIViewController {
@IBAction func buttonUpdateTapped(_ sender: Any) {
let alertController = UIAlertController.init(
title: "New Version Available",
message: "Please update from https://github.com/MhdHejazi/CoronaTracker",
message: "Please update from \(App.updateURL.absoluteString)",
preferredStyle: .alert)

#if targetEnvironment(macCatalyst)
Expand Down
4 changes: 2 additions & 2 deletions Corona/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<string>public.app-category.medical</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>The app needs permission to save the shared image on your device.</string>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
Expand Down Expand Up @@ -62,7 +64,5 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>The app needs permission to save the shared image on your device.</string>
</dict>
</plist>
9 changes: 7 additions & 2 deletions Corona/Main/App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import UIKit
import SafariServices

class App {
#if targetEnvironment(macCatalyst)
static let updateURL = URL(string: "https://coronatracker.samabox.com/")!
#else
static let updateURL = URL(string: "https://github.com/MhdHejazi/CoronaTracker")!
#endif

static func checkForAppUpdate(completion: @escaping (_ updateAvailable: Bool) -> Void) {
let checkForUpdateURL = URL(string: "https://api.github.com/repos/MhdHejazi/CoronaTracker/releases/latest")!
_ = URLSession.shared.dataTask(with: checkForUpdateURL) { (data, response, error) in
Expand All @@ -33,8 +39,7 @@ class App {
}

public static func openUpdatePage(viewController: UIViewController) {
let url = URL(string: "https://github.com/MhdHejazi/CoronaTracker/releases/latest")!
let safariController = SFSafariViewController(url: url)
let safariController = SFSafariViewController(url: updateURL)
safariController.modalPresentationStyle = .pageSheet
viewController.present(safariController, animated: true)
}
Expand Down
4 changes: 2 additions & 2 deletions Corona/Map/RegionAnnotationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class RegionAnnotationView: MKAnnotationView {
didSet {
configure()

// BUG FIX: the data within detailAccessoryView would become stale in some cases. To address this, we now ensure that the report text is set each time the annotation is updated
detailAccessoryView?.attributedText = detailsString
/// Ensure that the report text is set each time the annotation is updated
detailAccessoryView?.attributedText = detailsString
}
}

Expand Down

0 comments on commit fafb22c

Please sign in to comment.