Skip to content

Commit 5f4d18d

Browse files
committed
update deployment target
1 parent 2a3878d commit 5f4d18d

File tree

11 files changed

+35
-137
lines changed

11 files changed

+35
-137
lines changed

.travis.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,14 @@
22
# * http://www.objc.io/issue-6/travis-ci.html
33
# * https://github.com/supermarin/xcpretty#usage
44

5-
osx_image: xcode10.2
6-
language: objective-c
5+
osx_image: xcode11.3
6+
language: swift
77
xcode_project: DocumentScanner.xcodeproj
88
xcode_scheme: DocumentScanner-Example
99
xcode_sdk:
10-
- iphonesimulator12.2
10+
- iphoneos13.2
1111

1212
script:
1313
- xcodebuild -project xcode_project -scheme xcode_scheme -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c
1414

15-
# cache: cocoapods
16-
# podfile: Example/Podfile
17-
# before_install:
18-
# - gem install cocoapods # Since Travis is not always on latest version
19-
# - pod install --project-directory=Example
20-
#script:
21-
#- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/#Alerts.xcworkspace -scheme Alerts-Example -sdk iphonesimulator11.1 ONLY_ACTIVE_ARCH=NO | #xcpretty
2215
- pod lib lint

DocumentScanner.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'DocumentScanner'
3-
s.version = '1.0.9'
3+
s.version = '1.1.0'
44
s.summary = 'Simple documents scanner using Vision'
55

66
s.description = <<-DESC
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
1414
s.source = { :git => 'https://github.com/StanDimitroff/DocumentScanner.git', :tag => s.version.to_s }
1515
s.social_media_url = 'https://twitter.com/standimitroff'
1616

17-
s.ios.deployment_target = '10.0'
17+
s.ios.deployment_target = '11.0'
1818
s.swift_version = '5.0'
1919

2020
s.source_files = 'DocumentScanner/Source/*.swift'

DocumentScanner/Source/Camera.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import UIKit
22
import AVFoundation
33
import Vision
44

5-
@available (iOS 11.0, *)
65
open class Camera: NSObject {
76

87
private let capturePhotoOutput = AVCapturePhotoOutput()
@@ -177,7 +176,6 @@ open class Camera: NSObject {
177176
}
178177

179178
// MARK: - AVCaptureVideoDataOutputSampleBufferDelegate
180-
@available(iOS 11.0, *)
181179
extension Camera: AVCaptureVideoDataOutputSampleBufferDelegate {
182180
open func captureOutput(
183181
_ output: AVCaptureOutput,
@@ -192,7 +190,6 @@ extension Camera: AVCaptureVideoDataOutputSampleBufferDelegate {
192190
}
193191

194192
// MARK: - AVCapturePhotoCaptureDelegate
195-
@available(iOS 11.0, *)
196193
extension Camera: AVCapturePhotoCaptureDelegate {
197194
open func photoOutput(
198195
_ output: AVCapturePhotoOutput,

DocumentScanner/Source/DocScanner.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import UIKit
22

3-
@available (iOS 11.0, *)
43
@objcMembers open class DocScanner: NSObject {
54
public typealias ImageExport = (UIImage) -> Void
65
public typealias ImagesExport = ([UIImage]) -> Void

DocumentScanner/Source/RectangleDetector.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Foundation
22
import Vision
33

4-
@available (iOS 11.0, *)
54
open class RectangleDetector {
65

76
var onRectDetect: ((ObservationRectangle, CGRect) -> Void)?

Example/DocumentScanner.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
ONLY_ACTIVE_ARCH = YES;
327327
SDKROOT = iphoneos;
328328
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
329-
SWIFT_VERSION = 4.2;
329+
SWIFT_VERSION = 5.0;
330330
};
331331
name = Debug;
332332
};
@@ -375,7 +375,7 @@
375375
MTL_ENABLE_DEBUG_INFO = NO;
376376
SDKROOT = iphoneos;
377377
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
378-
SWIFT_VERSION = 4.2;
378+
SWIFT_VERSION = 5.0;
379379
VALIDATE_PRODUCT = YES;
380380
};
381381
name = Release;
@@ -389,13 +389,13 @@
389389
CODE_SIGN_STYLE = Automatic;
390390
DEVELOPMENT_TEAM = NXZW7962A8;
391391
INFOPLIST_FILE = DocumentScanner/Info.plist;
392-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
392+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
393393
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
394394
MODULE_NAME = ExampleApp;
395395
PRODUCT_BUNDLE_IDENTIFIER = com.getset.DocScannerExample;
396396
PRODUCT_NAME = "$(TARGET_NAME)";
397397
PROVISIONING_PROFILE_SPECIFIER = "";
398-
SWIFT_VERSION = 4.2;
398+
SWIFT_VERSION = 5.0;
399399
TARGETED_DEVICE_FAMILY = "1,2";
400400
};
401401
name = Debug;
@@ -409,13 +409,13 @@
409409
CODE_SIGN_STYLE = Automatic;
410410
DEVELOPMENT_TEAM = NXZW7962A8;
411411
INFOPLIST_FILE = DocumentScanner/Info.plist;
412-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
412+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
413413
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
414414
MODULE_NAME = ExampleApp;
415415
PRODUCT_BUNDLE_IDENTIFIER = com.getset.DocScannerExample;
416416
PRODUCT_NAME = "$(TARGET_NAME)";
417417
PROVISIONING_PROFILE_SPECIFIER = "";
418-
SWIFT_VERSION = 4.2;
418+
SWIFT_VERSION = 5.0;
419419
TARGETED_DEVICE_FAMILY = "1,2";
420420
};
421421
name = Release;

Example/DocumentScanner.xcodeproj/xcshareddata/xcschemes/DocumentScanner-Example.xcscheme

Lines changed: 0 additions & 105 deletions
This file was deleted.

Example/DocumentScanner/Images.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "20x20",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "20x20",
11+
"scale" : "3x"
12+
},
313
{
414
"idiom" : "iphone",
515
"size" : "29x29",
@@ -29,10 +39,15 @@
2939
"idiom" : "iphone",
3040
"size" : "60x60",
3141
"scale" : "3x"
42+
},
43+
{
44+
"idiom" : "ios-marketing",
45+
"size" : "1024x1024",
46+
"scale" : "1x"
3247
}
3348
],
3449
"info" : {
3550
"version" : 1,
3651
"author" : "xcode"
3752
}
38-
}
53+
}

Example/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
platform :ios, '10.0'
1+
platform :ios, '11.0'
22

33
use_frameworks!
44

Example/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- DocumentScanner (1.0.8)
2+
- DocumentScanner (1.1.0)
33

44
DEPENDENCIES:
55
- DocumentScanner (from `../`)
@@ -9,8 +9,8 @@ EXTERNAL SOURCES:
99
:path: "../"
1010

1111
SPEC CHECKSUMS:
12-
DocumentScanner: e99e3164154d38dd4c6c9e471cec08839c83e35e
12+
DocumentScanner: af7d08d1365d33799da5c7d32ac683948a92ff0c
1313

14-
PODFILE CHECKSUM: 17bd2e0c29a1621d1827cccff1cb72b77f989be3
14+
PODFILE CHECKSUM: 7cfc6a5ca9cae37b2543fa20083bbc420031f30d
1515

16-
COCOAPODS: 1.7.5
16+
COCOAPODS: 1.9.0

0 commit comments

Comments
 (0)