Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

[Up for adoption] Bumping xcode to make the build work again #904

Merged
merged 36 commits into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e758700
Create UI for ProductAttributes in Detail View
jncosideout Oct 17, 2020
c4efdf9
Display AttributeCells and increase attributed string font size
jncosideout Nov 1, 2020
2f8f9eb
Attempt to show floatingPanel from closure
jncosideout Nov 7, 2020
f49d47f
Create custom VC for ProdAttr. and use delegation
jncosideout Nov 8, 2020
788eeb1
Display floating panel
jncosideout Nov 8, 2020
d6c4ee2
Dynamically update insets of floatingpanel
jncosideout Nov 19, 2020
9c52e88
Dynamically update FloatingPanel view insets
jncosideout Nov 22, 2020
ef3dbd1
Dismiss FloatingPanel from SummaryFormTableVC
jncosideout Nov 23, 2020
ca7a673
NOT READY FOR PROD. Wrap text around the image
jncosideout Nov 25, 2020
bd472c6
Text wraps image but only 1st time
jncosideout Nov 25, 2020
8a5ad31
Anchor icon in AttributeView to top corner so text wraps
jncosideout May 4, 2021
28b335e
Switch ImageView to UIWebView, add code to scale SVGs, regex search i…
jncosideout May 5, 2021
1a89da1
Fix SVG icon not centered
jncosideout May 6, 2021
04b4ca1
Add activity spinner to show loading Attr. Icon
jncosideout May 7, 2021
5a3bcba
Fix AttributeView heighth on FloatingPanelVC
jncosideout May 14, 2021
4c9a315
Cleanup minor SwiftLint warnings
jncosideout May 26, 2021
2839448
Move activitySpinner back to top for visibility
jncosideout May 26, 2021
6ea4111
Fix mem leak: IngrdAnlysCell retained SummaryForm
jncosideout May 29, 2021
42ae84a
Update ios-release.yml
teolemon Jun 12, 2021
246deec
Update ios-release.yml
teolemon Jun 12, 2021
941b938
Update Gemfile.lock
teolemon Jun 13, 2021
1c0ba90
rename
teolemon Jun 13, 2021
0d27e12
Update Gemfile.lock
teolemon Jun 13, 2021
8d9e273
Update ios-release.yml
teolemon Jun 13, 2021
ecc0185
Update Fastfile
teolemon Jun 13, 2021
c41e38a
Create carthage-build.sh
teolemon Jun 13, 2021
e764ace
Update ios-release.yml
teolemon Jun 13, 2021
bd0ddaf
Update Mintfile
teolemon Jun 13, 2021
afcea1a
Update setup.sh
teolemon Jun 13, 2021
002cc28
Update setup.sh
teolemon Jun 13, 2021
0ac414e
Update Fastfile
teolemon Jun 16, 2021
691b6f1
Update setup.sh
teolemon Jun 16, 2021
ee610e8
Update Fastfile
teolemon Jun 20, 2021
9cf9ab2
Merge branch 'develop' into release/3.4.5
teolemon Jun 20, 2021
b486307
Upgrade to Xcode 12 (#906)
slava-sh Jul 15, 2021
a6f33d6
Merge branch 'develop' into release/3.4.5
teolemon Jul 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ios-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:

- name: Prepare xcodeproj
run: sh scripts/setup.sh

# - name: Custom Carthage for Xcode12
#run: sh scripts/carthage-build.sh build --platform iOS --no-use-binaries libPhoneNumber-iOS
#and I generated the framework with all the architectures that I need
#lipo -info Carthage/Build/iOS/libPhoneNumberiOS.framework/libPhoneNumberiOS
#architectures in the fat file: Carthage/Build/iOS/libPhoneNumberiOS.framework/libPhoneNumberiOS are: armv7 i386 x86_64 arm64

- name: Run Fastlane beta lane
run: bundle exec fastlane beta
Expand Down
8 changes: 4 additions & 4 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ github "Alamofire/AlamofireImage" "3.5.2"
github "AliSoftware/OHHTTPStubs" "7.0.0"
github "Daltron/NotificationBanner" "3.0.0"
github "DaveWoodCom/XCGLogger" "7.0.0"
github "Quick/Nimble" "v8.0.5"
github "Quick/Quick" "v2.2.0"
github "Quick/Nimble" "v9.2.0"
github "Quick/Quick" "v4.0.0"
github "SVProgressHUD/SVProgressHUD" "2.2.5"
github "SnapKit/SnapKit" "5.0.1"
github "TimOliver/TOCropViewController" "2.5.1"
github "Tovkal/ImageViewer" "0.1.4"
github "alexaubry/BulletinBoard" "4.1.0"
github "cbpowell/MarqueeLabel" "4.0.2"
github "cbpowell/MarqueeLabel" "4.1.0"
github "getsentry/sentry-cocoa" "5.2.2"
github "hackiftekhar/IQKeyboardManager" "v5.0.6"
github "httpswift/swifter" "74d111d6bab7ccbfb5284b68d52ffb56f0f0d903"
github "httpswift/swifter" "718f82c26aa2ba558345d14e0730aba1266a1130"
github "jaharabari/IBLocalizable" "09b4c187aa9d1a126b6215610964f179536ae0a9"
github "kishikawakatsumi/KeychainAccess" "v3.2.0"
github "marmelroy/Zip" "1.1.0"
Expand Down
125 changes: 75 additions & 50 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,59 +1,70 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.2)
CFPropertyList (3.0.3)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.1.0)
aws-partitions (1.399.0)
aws-sdk-core (3.109.3)
aws-eventstream (1.1.1)
aws-partitions (1.467.0)
aws-sdk-core (3.114.2)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.239.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-kms (1.39.0)
aws-sdk-core (~> 3, >= 3.109.0)
aws-sdk-kms (1.43.0)
aws-sdk-core (~> 3, >= 3.112.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.85.0)
aws-sdk-core (~> 3, >= 3.109.0)
aws-sdk-s3 (1.96.1)
aws-sdk-core (~> 3, >= 3.112.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.1)
aws-sigv4 (1.2.2)
aws-sigv4 (1.2.3)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
blockenspiel (0.5.0)
claide (1.0.3)
colored (1.2)
colored2 (3.1.2)
commander-fastlane (4.4.6)
highline (~> 1.7.2)
commander (4.6.0)
highline (~> 2.0.0)
declarative (0.0.20)
declarative-option (0.1.0)
digest-crc (0.6.1)
rake (~> 13.0)
digest-crc (0.6.3)
rake (>= 12.0.0, < 14.0.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.6)
emoji_regex (3.2.1)
excon (0.78.0)
faraday (1.1.0)
emoji_regex (3.2.2)
excon (0.82.0)
faraday (1.4.2)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.1)
multipart-post (>= 1.2, < 3)
ruby2_keywords
ruby2_keywords (>= 0.0.4)
faraday-cookie_jar (0.0.7)
faraday (>= 0.8.0)
http-cookie (~> 1.0.0)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.1.0)
faraday_middleware (1.0.0)
faraday (~> 1.0)
fastimage (2.2.0)
fastlane (2.168.0)
fastimage (2.2.4)
fastlane (2.185.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.3, < 3.0.0)
artifactory (~> 3.0)
aws-sdk-s3 (~> 1.0)
babosa (>= 1.0.3, < 2.0.0)
bundler (>= 1.12.0, < 3.0.0)
colored
commander-fastlane (>= 4.4.6, < 5.0.0)
commander (~> 4.6)
dotenv (>= 2.1.1, < 3.0.0)
emoji_regex (>= 0.1, < 4.0)
excon (>= 0.71.0, < 1.0.0)
Expand All @@ -62,18 +73,19 @@ GEM
faraday_middleware (~> 1.0)
fastimage (>= 2.1.0, < 3.0.0)
gh_inspector (>= 1.1.2, < 2.0.0)
google-api-client (>= 0.37.0, < 0.39.0)
google-cloud-storage (>= 1.15.0, < 2.0.0)
highline (>= 1.7.2, < 2.0.0)
google-apis-androidpublisher_v3 (~> 0.1)
google-apis-playcustomapp_v1 (~> 0.1)
google-cloud-storage (~> 1.31)
highline (~> 2.0)
json (< 3.0.0)
jwt (>= 2.1.0, < 3)
mini_magick (>= 4.9.4, < 5.0.0)
multipart-post (~> 2.0.0)
naturally (~> 2.2)
plist (>= 3.1.0, < 4.0.0)
rubyzip (>= 2.0.0, < 3.0.0)
security (= 0.1.3)
simctl (~> 1.6.3)
slack-notifier (>= 2.0.0, < 3.0.0)
terminal-notifier (>= 2.0.0, < 3.0.0)
terminal-table (>= 1.4.5, < 2.0.0)
tty-screen (>= 0.6.3, < 1.0.0)
Expand All @@ -82,75 +94,87 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-sentry (1.6.0)
fastlane-plugin-sentry (1.8.1)
gh_inspector (1.1.3)
google-api-client (0.38.0)
google-apis-androidpublisher_v3 (0.5.0)
google-apis-core (~> 0.1)
google-apis-core (0.3.0)
addressable (~> 2.5, >= 2.5.1)
googleauth (~> 0.9)
googleauth (~> 0.14)
httpclient (>= 2.8.1, < 3.0)
mini_mime (~> 1.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.0)
signet (~> 0.12)
google-cloud-core (1.5.0)
rexml
signet (~> 0.14)
webrick
google-apis-iamcredentials_v1 (0.4.0)
google-apis-core (~> 0.1)
google-apis-playcustomapp_v1 (0.3.0)
google-apis-core (~> 0.1)
google-apis-storage_v1 (0.4.0)
google-apis-core (~> 0.1)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
google-cloud-errors (~> 1.0)
google-cloud-env (1.4.0)
google-cloud-env (1.5.0)
faraday (>= 0.17.3, < 2.0)
google-cloud-errors (1.0.1)
google-cloud-storage (1.29.1)
google-cloud-errors (1.1.0)
google-cloud-storage (1.31.1)
addressable (~> 2.5)
digest-crc (~> 0.4)
google-api-client (~> 0.33)
google-apis-iamcredentials_v1 (~> 0.1)
google-apis-storage_v1 (~> 0.1)
google-cloud-core (~> 1.2)
googleauth (~> 0.9)
mini_mime (~> 1.0)
googleauth (0.14.0)
googleauth (0.16.2)
faraday (>= 0.17.3, < 2.0)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (~> 0.14)
highline (1.7.10)
http-cookie (1.0.3)
highline (2.0.3)
http-cookie (1.0.4)
domain_name (~> 0.5)
httpclient (2.8.3)
jmespath (1.4.0)
json (2.3.1)
jwt (2.2.2)
json (2.5.1)
jwt (2.2.3)
memoist (0.16.2)
mini_magick (4.11.0)
mini_mime (1.0.2)
mini_mime (1.1.0)
multi_json (1.15.0)
multipart-post (2.0.0)
nanaimo (0.3.0)
naturally (2.2.0)
naturally (2.2.1)
os (1.1.1)
plist (3.5.0)
plist (3.6.0)
public_suffix (4.0.6)
rake (13.0.1)
representable (3.0.4)
rake (13.0.3)
representable (3.1.1)
declarative (< 0.1.0)
declarative-option (< 0.2.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rexml (3.2.5)
rouge (2.0.7)
ruby2_keywords (0.0.2)
ruby2_keywords (0.0.4)
rubyzip (2.3.0)
security (0.1.3)
signet (0.14.0)
signet (0.15.0)
addressable (~> 2.3)
faraday (>= 0.17.3, < 2.0)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simctl (1.6.8)
CFPropertyList
naturally
slack-notifier (2.3.2)
terminal-notifier (2.0.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
trailblazer-option (0.1.1)
tty-cursor (0.7.1)
tty-screen (0.8.1)
tty-spinner (0.9.3)
Expand All @@ -162,8 +186,9 @@ GEM
unicode-display_width (1.7.0)
versionomy (0.5.0)
blockenspiel (~> 0.5)
webrick (1.7.0)
word_wrap (1.0.0)
xcode-install (2.6.7)
xcode-install (2.7.0)
claide (>= 0.9.1, < 1.1.0)
fastlane (>= 2.1.0, < 3.0.0)
xcodeproj (1.19.0)
Expand All @@ -174,7 +199,7 @@ GEM
nanaimo (~> 0.3.0)
xcpretty (0.3.0)
rouge (~> 2.0.7)
xcpretty-travis-formatter (1.0.0)
xcpretty-travis-formatter (1.0.1)
xcpretty (~> 0.2, >= 0.0.7)

PLATFORMS
Expand Down
2 changes: 1 addition & 1 deletion Mintfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
yonaskolb/xcodegen@2.14.0
carthage/carthage@0.34.0
carthage/carthage@0.38.0
2 changes: 1 addition & 1 deletion OpenFoodFacts.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
<string>product:*.openfoodfacts.org</string>
</array>
</dict>
</plist>
</plist>
15 changes: 15 additions & 0 deletions Sources/Extensions/String.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,21 @@ extension String {
return decoded ?? self
}

func searchBetweenRegexes(from endOfRegexA: String, to endOfRegexB: String) throws -> String? {
guard endOfRegexB.contains(endOfRegexA) else {
throw NSError(domain: "RegexB must contain RegexA to find the difference between them", code: Errors.codes.regexSearchStringError.rawValue)
}

let startIndex = self.range(of: endOfRegexA, options: .regularExpression)?.upperBound
let endIndex = self.range(of: endOfRegexB, options: .regularExpression)?.upperBound
if let start = startIndex, let end = endIndex {
let result = self[start..<end]
return String(result)
}

return nil
}

}

extension String: Pickable {
Expand Down
18 changes: 18 additions & 0 deletions Sources/Models/Common/AttributeTableRow.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// AttributeTableRow.swift
// OpenFoodFacts
//
// Created by Alexander Scott Beaty on 11/6/20.
//

import Foundation

struct AttributeTableRow {
weak var delegate: AttributeTableViewCellDelegate?
let attribute: Attribute?

init(_ delegate: AttributeTableViewCellDelegate?, attribute: Attribute?) {
self.delegate = delegate
self.attribute = attribute
}
}
3 changes: 2 additions & 1 deletion Sources/Models/Common/Form.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ struct Form {
ProductDetailWebViewTableViewCell.self,
SummaryHeaderCell.self,
SummaryFooterCell.self,
HostedViewCell.self
HostedViewCell.self,
AttributeTableViewCell.self
]
}
}
Expand Down
1 change: 1 addition & 0 deletions Sources/Models/ErrorCodes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ struct Errors {
enum codes: Int {
case generic = 1
case wrongCredentials = 2
case regexSearchStringError = 3
}
}