-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* π¨ Basic credit UI * π¨ Division par section * π¨ Role under name in credits * π½ Fetch contributors from backend * π Removing hardcoded store * π¨ Updating header view with a description label * π§ Last fixes before merge * β©οΈ Reverted code that should not be deleted * π String localization + Linting * π§ Updating API Service to use Result * β¨ Fixed problems after merging 'develop' * π§ Updating app to match new contributors endpoint * β¨ Fixed Xcode errors after merge * β¨ Adding contributors cell to settings * Fixing issues about requested changes * Adding an image button for contributor link * refactor: #37 - list of contributors - Improve icon of hyperlink - Display icon of hyperlink only if hyperlink defined and working - Keep unique contirbutors Signed-off-by: Pierre-Yves Lapersonne <[email protected]> * refactor: #37 - roles and profiles - Improve display of role with correct syntax - Improve vocalization of roles - Add label and hint for profil button Signed-off-by: Pierre-Yves Lapersonne <[email protected]> * refactor: #37 - hide role if too big text size in use for a11y reasons Signed-off-by: Pierre-Yves Lapersonne <[email protected]> * refactor: #37 - remove warnings Signed-off-by: Pierre-Yves Lapersonne <[email protected]> * doc: #37 - add licence of KingFisher Signed-off-by: Pierre-Yves Lapersonne <[email protected]> Co-authored-by: Pierre-Yves Lapersonne <[email protected]>
- Loading branch information
1 parent
907eebf
commit c027f37
Showing
27 changed files
with
985 additions
and
38 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
ViteMaDose.xcodeproj/xcshareddata/xcschemes/ViteMaDoseTests.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// DoubledString.swift | ||
// ViteMaDose | ||
// | ||
// Created by Pierre-Yves Lapersonne on 01/01/2022. | ||
// | ||
|
||
import Foundation | ||
|
||
/// Allows to gather two strings in one `Hashable` object | ||
struct DoubledString: Hashable { | ||
/// The string which can be displayed in the GUI | ||
let toDisplay: String | ||
/// The string which can be vocalized with VoiceOver | ||
let toVocalize: String | ||
} |
25 changes: 25 additions & 0 deletions
25
ViteMaDose/Helpers/Extensions/UIContentSizeCategory+Commons.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Software Name: vitemadose-ios | ||
// SPDX-FileCopyrightText: Copyright (c) 2021 CovidTracker | ||
// SPDX-License-Identifier: GNU General Public License v3.0 or later | ||
// | ||
// This software is distributed under the GPL-3.0-or-later license. | ||
|
||
import Foundation | ||
import UIKit | ||
|
||
extension UIContentSizeCategory { | ||
|
||
/// True if big text size is in use with accessibility feature enabled, false otherwise | ||
var isAccessibleLargeTextSize: Bool { | ||
switch self { | ||
case UIContentSizeCategory.accessibilityExtraExtraExtraLarge, | ||
UIContentSizeCategory.accessibilityExtraExtraLarge, | ||
UIContentSizeCategory.accessibilityExtraLarge, | ||
UIContentSizeCategory.accessibilityLarge, | ||
UIContentSizeCategory.accessibilityMedium: | ||
return true | ||
default: | ||
return false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// Credit.swift | ||
// ViteMaDose | ||
// | ||
// Created by Nathan FALLET on 20/04/2021. | ||
// | ||
|
||
import Foundation | ||
|
||
// MARK: - Credit | ||
|
||
struct Credit: Codable { | ||
let id: String? | ||
let nom: String? | ||
let pseudo: String? | ||
let photo: String? | ||
let site_web: String? | ||
let job: String? | ||
let localisation: String? | ||
let company: String? | ||
let teams: [String]? | ||
let links: [CreditLink]? | ||
|
||
var shownName: String { | ||
nom ?? pseudo ?? id ?? Localization.Credits.noName | ||
} | ||
|
||
var shownRole: String { | ||
teams?.joined(separator: ", ") ?? Localization.Credits.noRole | ||
} | ||
} | ||
|
||
// MARK: - Credit Link | ||
|
||
struct CreditLink: Codable { | ||
let site: String? | ||
let url: String? | ||
} | ||
|
||
extension CreditLink: Hashable {} | ||
|
||
// MARK: - Credits | ||
|
||
struct Credits: Codable { | ||
let contributors: [Credit]? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
ViteMaDose/Settings.bundle/com.mono0926.LicensePlist/Kingfisher.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>PreferenceSpecifiers</key> | ||
<array> | ||
<dict> | ||
<key>FooterText</key> | ||
<string>The MIT License (MIT) | ||
Copyright (c) 2019 Wei Wang | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
</string> | ||
<key>Type</key> | ||
<string>PSGroupSpecifier</string> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.