Skip to content
Draft
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Xcode
#
build/
.build/
*.pbxuser
!default.pbxuser
*.mode1v3
Expand Down
69 changes: 69 additions & 0 deletions .swift-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"fileScopedDeclarationPrivacy" : {
"accessLevel" : "private"
},
"indentation" : {
"spaces" : 2
},
"indentConditionalCompilationBlocks" : false,
"indentSwitchCaseLabels" : false,
"lineBreakAroundMultilineExpressionChainComponents" : false,
"lineBreakBeforeControlFlowKeywords" : false,
"lineBreakBeforeEachArgument" : false,
"lineBreakBeforeEachGenericRequirement" : false,
"lineLength" : 120,
"maximumBlankLines" : 1,
"multiElementCollectionTrailingCommas" : true,
"noAssignmentInExpressions" : {
"allowedFunctions" : [
"XCTAssertNoThrow"
]
},
"prioritizeKeepingFunctionOutputTogether" : false,
"respectsExistingLineBreaks" : true,
"rules" : {
"AllPublicDeclarationsHaveDocumentation" : false,
"AlwaysUseLiteralForEmptyCollectionInit" : false,
"AlwaysUseLowerCamelCase" : true,
"AmbiguousTrailingClosureOverload" : true,
"BeginDocumentationCommentWithOneLineSummary" : false,
"DoNotUseSemicolons" : true,
"DontRepeatTypeInStaticProperties" : true,
"FileScopedDeclarationPrivacy" : true,
"FullyIndirectEnum" : true,
"GroupNumericLiterals" : true,
"IdentifiersMustBeASCII" : true,
"NeverForceUnwrap" : false,
"NeverUseForceTry" : false,
"NeverUseImplicitlyUnwrappedOptionals" : false,
"NoAccessLevelOnExtensionDeclaration" : true,
"NoAssignmentInExpressions" : true,
"NoBlockComments" : true,
"NoCasesWithOnlyFallthrough" : true,
"NoEmptyTrailingClosureParentheses" : true,
"NoLabelsInCasePatterns" : true,
"NoLeadingUnderscores" : false,
"NoParensAroundConditions" : true,
"NoPlaygroundLiterals" : true,
"NoVoidReturnOnFunctionSignature" : true,
"OmitExplicitReturns" : false,
"OneCasePerLine" : true,
"OneVariableDeclarationPerLine" : true,
"OnlyOneTrailingClosureArgument" : true,
"OrderedImports" : true,
"ReplaceForEachWithForLoop" : true,
"ReturnVoidInsteadOfEmptyTuple" : true,
"TypeNamesShouldBeCapitalized" : true,
"UseEarlyExits" : false,
"UseLetInEveryBoundCaseVariable" : true,
"UseShorthandTypeNames" : true,
"UseSingleLinePropertyGetter" : true,
"UseSynthesizedInitializer" : true,
"UseTripleSlashForDocumentationComments" : true,
"UseWhereClausesInForLoops" : false,
"ValidateDocumentationComments" : false
},
"spacesAroundRangeFormationOperators" : false,
"tabWidth" : 8,
"version" : 1
}
34 changes: 19 additions & 15 deletions MIOSwiftyArchitecture.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,49 +11,53 @@ Pod::Spec.new do |s|
s.version = '2.0.0'
s.summary = 'Breezy architecture in Swift for building iOS applications.'
s.description = <<-DESC
* Breezy architecture in Swift for building iOS applications. It offers lots of functions which simple and easy to use for developer.
* Breezy architecture in Swift for building iOS applications. It offers lots of functions which is simple and easy to use for developers.
DESC
s.homepage = 'https://github.com/Mioke/SwiftArchitectureWithPOP'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Mioke Klein' => 'mioke0428@gmail.com' }
s.source = { :git => 'https://github.com/Mioke/SwiftArchitectureWithPOP.git', :tag => s.version.to_s }

s.ios.deployment_target = '13.0'
s.swift_versions = '5'

# s.frameworks = 'UIKit', 'Foundation'
# s.libraries = 'c++', 'sqlite3'

# s.source_files = 'SwiftyArchitecture/Base/**/*.swift'
s.default_subspecs = 'Assistance', 'Networking', 'RxExtension', 'AppDock', 'Componentize'

s.preserve_paths = 'SwiftyArchitecture/Base/Resource/PrivacyManifest/*'

s.subspec 'Assistance' do |ss|
ss.frameworks = 'UIKit', 'Foundation'
ss.source_files = 'SwiftyArchitecture/Base/Assistance/**/*.swift'

ss.dependency 'SwiftyArchitectureMacrosPackage'
ss.dependency 'SwiftConcurrencySupport'
end

s.subspec 'Networking' do |ss|
ss.frameworks = 'UIKit', 'Foundation'
ss.source_files = 'SwiftyArchitecture/Base/Networking/**/*.swift'
ss.dependency 'Alamofire', '~> 5.4'
ss.dependency 'ObjectMapper', '~> 4.2'
ss.dependency 'MIOSwiftyArchitecture/Assistance'
end

# s.subspec 'Persistance' do |ss|
# ss.frameworks = 'UIKit', 'Foundation'
# ss.source_files = 'SwiftyArchitecture/Base/Persistance/**/*.swift'
# ss.dependency 'FMDB'
# ss.dependency 'MIOSwiftyArchitecture/Assistance'
# end

s.subspec 'RxExtension' do |ss|
ss.source_files = 'SwiftyArchitecture/Base/RxExtension/**/*.swift'
ss.dependency 'MIOSwiftyArchitecture/Assistance'
ss.dependency 'MIOSwiftyArchitecture/Networking'
ss.dependency 'RxSwift', '~> 6.2'
end

s.subspec 'AppDock' do |ss|
ss.source_files = 'SwiftyArchitecture/Base/AppDock/**/*.swift'
ss.dependency 'MIOSwiftyArchitecture/Assistance'
Expand All @@ -65,14 +69,14 @@ Pod::Spec.new do |s|
ss.dependency 'RealmSwift' # 10.45.2
ss.dependency "Realm"
end

s.subspec 'Componentize' do |ss|
ss.source_files = 'SwiftyArchitecture/Base/Componentize/**/*.swift'
ss.dependency 'MIOSwiftyArchitecture/Assistance'
ss.dependency 'Swinject', '~> 2.8'
ss.dependency 'RxSwift', '~> 6.2'
end

s.subspec 'Testable' do |ss|
ss.source_files = 'SwiftyArchitecture/Base/Testable/**/*.swift'
ss.dependency 'MIOSwiftyArchitecture/Assistance'
Expand All @@ -81,7 +85,7 @@ Pod::Spec.new do |s|
ss.dependency 'MIOSwiftyArchitecture/AppDock'
ss.dependency 'MIOSwiftyArchitecture/Componentize'
end

s.test_spec 'Tests' do |test_spec|
test_spec.source_files = 'SwiftyArchitecture/Base/Tests/**/*.swift'
# test_spec.dependency 'OCMock' # This dependency will only be linked with your tests.
Expand All @@ -91,11 +95,11 @@ Pod::Spec.new do |s|
test_spec.dependency 'MIOSwiftyArchitecture/AppDock'
test_spec.dependency 'MIOSwiftyArchitecture/Componentize'
test_spec.dependency 'MIOSwiftyArchitecture/Testable'

test_spec.dependency 'RxSwift', '~> 6.2'
end

# s.xcconfig = { "SWIFT_OBJC_BRIDGING_HEADER" => "SwiftyArchitecture/Resource/swiftArchitecture-Bridging-Header.h" }
# s.module_map = 'SwiftyArchitecture/Resource/module.modulemap'

end
47 changes: 37 additions & 10 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 49 additions & 36 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,53 @@
import PackageDescription

let package = Package(
name: "SwiftyAppArch",
platforms: [.iOS(.v13)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "SwiftyAppArch",
targets: ["SwiftyAppArch"]),
],
dependencies: [
.package(url: "https://github.com/realm/realm-swift.git", from: "10.45.2"),
.package(url: "https://github.com/Alamofire/Alamofire.git", from: "5.8.0"),
.package(url: "https://github.com/tristanhimmelman/ObjectMapper.git", from: "4.2.0"),
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "6.6.0"),
// .package(url: "https://github.com/Swinject/Swinject.git", from: "2.8.4"),
.package(url: "https://github.com/Mioke/RxRealm.git", branch: "main"),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "SwiftyAppArch",
dependencies: [
.product(name: "RealmSwift", package: "realm-swift"),
.product(name: "Alamofire", package: "Alamofire"),
.product(name: "ObjectMapper", package: "ObjectMapper"),
.product(name: "RxSwift", package: "RxSwift"),
.product(name: "RxCocoa", package: "RxSwift"),
.product(name: "RxRealm", package: "RxRealm"),
],
path: "./SwiftyArchitecture/Base",
exclude: ["Persistance", "Tests"]),
// .testTarget(
// name: "SwiftyAppArchTests",
// dependencies: ["SwiftyAppArch"]),
],
swiftLanguageVersions: [.v5]
name: "MIOSwiftyArchitecture",
platforms: [.iOS(.v13)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "MIOSwiftyArchitecture",
targets: ["MIOSwiftyArchitecture"]),
],
dependencies: [
.package(url: "https://github.com/realm/realm-swift.git", from: "10.45.2"),
.package(url: "https://github.com/Alamofire/Alamofire.git", from: "5.8.0"),
.package(url: "https://github.com/tristanhimmelman/ObjectMapper.git", from: "4.2.0"),
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "6.6.0"),
.package(url: "https://github.com/Mioke/RxRealm.git", branch: "main"),
.package(url: "https://github.com/Mioke/SwiftyArchitectureMacros.git", branch: "master"),
.package(url: "https://github.com/Mioke/swift-concurrency-support.git", branch: "master"),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "MIOSwiftyArchitecture",
dependencies: [
.product(name: "RealmSwift", package: "realm-swift"),
.product(name: "Alamofire", package: "Alamofire"),
.product(name: "ObjectMapper", package: "ObjectMapper"),
.product(name: "RxSwift", package: "RxSwift"),
.product(name: "RxCocoa", package: "RxSwift"),
.product(name: "RxRealm", package: "RxRealm"),
// .product(name: "SwiftyArchitectureMacros", package: "SwiftyArchitectureMacros"),
.product(name: "SwiftConcurrencySupport", package: "swift-concurrency-support"),
],
path: "./SwiftyArchitecture/Base",
exclude: ["Persistance", "Tests"],
resources: [
.copy("Resource/PrivacyManifest/SwiftyArchitecturePrivacyInfo.xcprivacy"),
]
),

// SwiftyArchitecture Tests
.testTarget(
name: "MIOSwiftyArchitectureTests",
dependencies: [
"MIOSwiftyArchitecture",
],
path: "./SwiftyArchitecture/Base/Tests"
),
],
swiftLanguageVersions: [.v5]
)
Loading