Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Commit

Permalink
Merge branch 'release/3.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
vmartinelli committed Dec 30, 2016
2 parents 0543100 + 8a9e3e5 commit 0a62aec
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 8 deletions.
2 changes: 1 addition & 1 deletion AlecrimAsyncKit.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "AlecrimAsyncKit"
s.version = "3.0"
s.version = "3.0.1"
s.summary = "Bringing async and await to Swift world with some flavouring."
s.homepage = "https://github.com/Alecrim/AlecrimAsyncKit"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
14BC230B1B8EFC3000EC2AED /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0800;
LastUpgradeCheck = 0820;
ORGANIZATIONNAME = Alecrim;
TargetAttributes = {
14BC23121B8EFC3000EC2AED = {
Expand Down Expand Up @@ -203,8 +203,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand Down Expand Up @@ -248,8 +250,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand Down
14 changes: 14 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// Package.swift
// AlecrimAsyncKit
//
// Created by Vanderlei Martinelli on 2016-12-30.
// Copyright © 2016 Alecrim. All rights reserved.
//

import PackageDescription

let package = Package(
name: "AlecrimAsyncKit",
exclude: ["Examples"]
)
14 changes: 11 additions & 3 deletions Source/AlecrimAsyncKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
1410E17C1DF298A200FA2945 /* DispatchQueue+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1410E17B1DF298A200FA2945 /* DispatchQueue+Extensions.swift */; };
1413F62E1BDCAE8B001049D5 /* Protocols.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1413F62D1BDCAE8B001049D5 /* Protocols.swift */; };
1416E08D1BDC931A00F1EA73 /* TaskObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1416E08C1BDC931A00F1EA73 /* TaskObserver.swift */; };
142561B51BE31B9D00A4C974 /* TaskOperation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 142561B41BE31B9D00A4C974 /* TaskOperation.swift */; };
Expand Down Expand Up @@ -38,6 +39,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
1410E17B1DF298A200FA2945 /* DispatchQueue+Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "DispatchQueue+Extensions.swift"; sourceTree = "<group>"; };
1413F62D1BDCAE8B001049D5 /* Protocols.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Protocols.swift; sourceTree = "<group>"; };
1416E08C1BDC931A00F1EA73 /* TaskObserver.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TaskObserver.swift; sourceTree = "<group>"; };
142561B41BE31B9D00A4C974 /* TaskOperation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TaskOperation.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -145,6 +147,7 @@
14A701751CF9738300566C11 /* Extensions */ = {
isa = PBXGroup;
children = (
1410E17B1DF298A200FA2945 /* DispatchQueue+Extensions.swift */,
14A701761CF9738300566C11 /* SequenceType+Extensions.swift */,
);
path = Extensions;
Expand Down Expand Up @@ -228,7 +231,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0700;
LastUpgradeCheck = 0800;
LastUpgradeCheck = 0810;
ORGANIZATIONNAME = Alecrim;
TargetAttributes = {
14E585BA1B7803EC003EC4DC = {
Expand Down Expand Up @@ -287,6 +290,7 @@
148513A51B9BD15100FAB0FA /* Errors.swift in Sources */,
1437EC371D105946000D5C02 /* Queue.swift in Sources */,
148513A41B9BD15100FAB0FA /* AsyncAwait.swift in Sources */,
1410E17C1DF298A200FA2945 /* DispatchQueue+Extensions.swift in Sources */,
148513AE1B9BD38100FAB0FA /* LocationPermissionCondition.swift in Sources */,
1485139D1B9BD15100FAB0FA /* DelayCondition.swift in Sources */,
1485139F1B9BD15100FAB0FA /* SilentCondition.swift in Sources */,
Expand Down Expand Up @@ -315,8 +319,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand Down Expand Up @@ -368,8 +374,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand Down Expand Up @@ -406,7 +414,7 @@
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ENABLE_MODULES = YES;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 275;
CURRENT_PROJECT_VERSION = 301;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -429,7 +437,7 @@
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ENABLE_MODULES = YES;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 275;
CURRENT_PROJECT_VERSION = 301;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0810"
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public final class MutuallyExclusiveCondition: TaskCondition {
/// An enumeration with the default categories used by the condition.
///
/// - Alert: The category that represents a potential modal alert to the user.
private enum Category: String {
fileprivate enum Category: String {
case alert = "_CAAAK.METC.DC.Alert"
}

Expand Down
22 changes: 22 additions & 0 deletions Source/AlecrimAsyncKit/Extensions/DispatchQueue+Extensions.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// DispatchQueue+Extensions.swift
// AlecrimAsyncKit
//
// Created by Vanderlei Martinelli on 2016-12-03.
// Copyright © 2016 Alecrim. All rights reserved.
//

import Foundation

extension DispatchQueue {

@discardableResult
public func asyncTask<V>(using closure: @escaping () -> V) -> NonFailableTask<V> {
return asyncEx { task in
self.async {
task.finish(with: closure())
}
}
}

}
2 changes: 1 addition & 1 deletion Source/AlecrimAsyncKit/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.0</string>
<string>3.0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit 0a62aec

Please sign in to comment.