Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ target 'ios-module-architecture_Example' do
target 'ios-module-architecture_Tests' do
inherit! :search_paths

pod 'Quick', '~> 1.2'
pod 'Nimble', '~> 7.0'
pod 'Quick', '~> 2.0'
pod 'Nimble', '~> 8.0'
end
end
18 changes: 9 additions & 9 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PODS:
- ModuleArchitecture (0.15.0)
- Nimble (7.3.4)
- Quick (1.3.4)
- ModuleArchitecture (0.16.0)
- Nimble (8.0.2)
- Quick (2.1.0)

DEPENDENCIES:
- ModuleArchitecture (from `../`)
- Nimble (~> 7.0)
- Quick (~> 1.2)
- Nimble (~> 8.0)
- Quick (~> 2.0)

SPEC REPOS:
https://github.com/cocoapods/specs.git:
Expand All @@ -18,10 +18,10 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
ModuleArchitecture: 285b6ddd6444d904870df2a46739b9b67c808fd1
Nimble: 051e3d8912d40138fa5591c78594f95fb172af37
Quick: f4f7f063c524394c73ed93ac70983c609805d481
ModuleArchitecture: 4f837ffd141f0088e738d1f18c243b812e21693f
Nimble: 622629381bda1dd5678162f21f1368cec7cbba60
Quick: 4be43f6634acfa727dd106bdf3929ce125ffa79d

PODFILE CHECKSUM: 7d0dc07add0fc573f7b9be23e19514ad4dc10998
PODFILE CHECKSUM: e39515ecfbc10f05f5d49618ccf8c867f6caa134

COCOAPODS: 1.6.1
13 changes: 7 additions & 6 deletions Example/ios-module-architecture.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,11 @@
TargetAttributes = {
607FACCF1AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 1010;
LastSwiftMigration = 1030;
};
607FACE41AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 1010;
LastSwiftMigration = 1030;
TestTargetID = 607FACCF1AFB9204008FA782;
};
};
Expand All @@ -332,6 +332,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down Expand Up @@ -628,7 +629,7 @@
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -643,7 +644,7 @@
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand All @@ -663,7 +664,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -679,7 +680,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down
4 changes: 2 additions & 2 deletions ModuleArchitecture.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ModuleArchitecture'
s.version = '0.15.0'
s.version = '0.16.0'
s.summary = 'iOS Architecture'
s.description = <<-DESC
Protocols that define a module based iOS Architecture
Expand All @@ -16,5 +16,5 @@ Pod::Spec.new do |s|
s.ios.exclude_files = 'ModuleArchitecture/Classes/Protocols/WatchCoordinator.swift'
s.watchos.deployment_target = '2.0'
s.watchos.source_files = 'ModuleArchitecture/Classes/Protocols/WatchCoordinator.swift'
s.swift_version = '4.2'
s.swift_version = '5.0'
end
2 changes: 1 addition & 1 deletion ModuleArchitecture/Classes/Protocols/Coordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ open class Coordinator<Presentable>: CoordinatorType {

public func detach(_ child: CoordinatorType) {

guard let index = self.children.index(where: { $0 === child }) else { return }
guard let index = self.children.firstIndex(where: { $0 === child }) else { return }
self.children.remove(at: index)
}
}