From 804c4cf77f2e87ba757ca231f3c8cf516a60c640 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Fri, 2 Oct 2020 12:22:09 +0200 Subject: [PATCH] - prepare project to xcode 12 (#22) --- Revill/Revill.xcodeproj/project.pbxproj | 4 +++- Revill/Revill/API/Providey.swift | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Revill/Revill.xcodeproj/project.pbxproj b/Revill/Revill.xcodeproj/project.pbxproj index fdb51a7..cf34a33 100644 --- a/Revill/Revill.xcodeproj/project.pbxproj +++ b/Revill/Revill.xcodeproj/project.pbxproj @@ -287,7 +287,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 1100; - LastUpgradeCheck = 1100; + LastUpgradeCheck = 1200; ORGANIZATIONNAME = Revill; TargetAttributes = { 578D1A1423421BE900211722 = { @@ -441,6 +441,7 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -501,6 +502,7 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; diff --git a/Revill/Revill/API/Providey.swift b/Revill/Revill/API/Providey.swift index d9daca8..edd4568 100644 --- a/Revill/Revill/API/Providey.swift +++ b/Revill/Revill/API/Providey.swift @@ -9,7 +9,7 @@ import Combine import SwiftUI -class Providey: BindableObject { +class Providey: ObservableObject { func get(withUrl url: String, completion: @escaping (Result) -> Void) { guard let url = URL(string: url) else {return print("Bug")} URLSession.shared.dataTask(with: url) { (data, _ , error) in