Skip to content
Snippets Groups Projects
Commit e5088ee5 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Merge branch 'dev/refactor' into 'development'

Refactor

See merge request elixxir/elixxir-dapps-sdk-swift!32
parents 0fab8f45 20cf6c53
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!32Refactor
Showing
with 114 additions and 55 deletions
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1340"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "XXClient"
BuildableName = "XXClient"
BlueprintName = "XXClient"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "XXClientTests"
BuildableName = "XXClientTests"
BlueprintName = "XXClientTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "XXClient"
BuildableName = "XXClient"
BlueprintName = "XXClient"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
...@@ -14,23 +14,9 @@ ...@@ -14,23 +14,9 @@
buildForAnalyzing = "YES"> buildForAnalyzing = "YES">
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "ElixxirDAppsSDK" BlueprintIdentifier = "XXClient"
BuildableName = "ElixxirDAppsSDK" BuildableName = "XXClient"
BlueprintName = "ElixxirDAppsSDK" BlueprintName = "XXClient"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ElixxirDAppsSDKTests"
BuildableName = "ElixxirDAppsSDKTests"
BlueprintName = "ElixxirDAppsSDKTests"
ReferencedContainer = "container:"> ReferencedContainer = "container:">
</BuildableReference> </BuildableReference>
</BuildActionEntry> </BuildActionEntry>
...@@ -47,9 +33,9 @@ ...@@ -47,9 +33,9 @@
skipped = "NO"> skipped = "NO">
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "ElixxirDAppsSDKTests" BlueprintIdentifier = "XXClientTests"
BuildableName = "ElixxirDAppsSDKTests" BuildableName = "XXClientTests"
BlueprintName = "ElixxirDAppsSDKTests" BlueprintName = "XXClientTests"
ReferencedContainer = "container:"> ReferencedContainer = "container:">
</BuildableReference> </BuildableReference>
</TestableReference> </TestableReference>
...@@ -75,9 +61,9 @@ ...@@ -75,9 +61,9 @@
<MacroExpansion> <MacroExpansion>
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "ElixxirDAppsSDK" BlueprintIdentifier = "XXClient"
BuildableName = "ElixxirDAppsSDK" BuildableName = "XXClient"
BlueprintName = "ElixxirDAppsSDK" BlueprintName = "XXClient"
ReferencedContainer = "container:"> ReferencedContainer = "container:">
</BuildableReference> </BuildableReference>
</MacroExpansion> </MacroExpansion>
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/combine-schedulers", "location" : "https://github.com/pointfreeco/combine-schedulers",
"state" : { "state" : {
"revision" : "f7c8277f05f27a5bfb2f6ecccb0bad126ffcf472", "revision" : "8fee20f993e64bbbf22bc3e3f444758ac2d05692",
"version" : "0.7.0" "version" : "0.7.2"
} }
}, },
{ {
......
...@@ -4,10 +4,8 @@ import PackageDescription ...@@ -4,10 +4,8 @@ import PackageDescription
let swiftSettings: [SwiftSetting] = [ let swiftSettings: [SwiftSetting] = [
.unsafeFlags( .unsafeFlags(
[ [
"-Xfrontend", "-Xfrontend", "-debug-time-function-bodies",
"-debug-time-function-bodies", "-Xfrontend", "-debug-time-expression-type-checking",
"-Xfrontend",
"-debug-time-expression-type-checking",
], ],
.when(configuration: .debug) .when(configuration: .debug)
), ),
...@@ -25,6 +23,9 @@ let package = Package( ...@@ -25,6 +23,9 @@ let package = Package(
.library(name: "SessionFeature", targets: ["SessionFeature"]), .library(name: "SessionFeature", targets: ["SessionFeature"]),
], ],
dependencies: [ dependencies: [
.package(
path: "../../"
),
.package( .package(
url: "https://github.com/pointfreeco/swift-composable-architecture.git", url: "https://github.com/pointfreeco/swift-composable-architecture.git",
.upToNextMajor(from: "0.39.0") .upToNextMajor(from: "0.39.0")
...@@ -33,10 +34,6 @@ let package = Package( ...@@ -33,10 +34,6 @@ let package = Package(
url: "https://github.com/darrarski/swift-composable-presentation.git", url: "https://github.com/darrarski/swift-composable-presentation.git",
.upToNextMajor(from: "0.5.2") .upToNextMajor(from: "0.5.2")
), ),
.package(
// ElixxirDAppsSDK
path: "../../"
),
.package( .package(
url: "https://github.com/kishikawakatsumi/KeychainAccess.git", url: "https://github.com/kishikawakatsumi/KeychainAccess.git",
.upToNextMajor(from: "4.2.2") .upToNextMajor(from: "4.2.2")
...@@ -55,9 +52,9 @@ let package = Package( ...@@ -55,9 +52,9 @@ let package = Package(
.target(name: "SessionFeature"), .target(name: "SessionFeature"),
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"), .product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
.product(name: "ComposablePresentation", package: "swift-composable-presentation"), .product(name: "ComposablePresentation", package: "swift-composable-presentation"),
.product(name: "ElixxirDAppsSDK", package: "elixxir-dapps-sdk-swift"),
.product(name: "KeychainAccess", package: "KeychainAccess"), .product(name: "KeychainAccess", package: "KeychainAccess"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"), .product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "XXClient", package: "elixxir-dapps-sdk-swift"),
], ],
swiftSettings: swiftSettings swiftSettings: swiftSettings
), ),
...@@ -72,8 +69,8 @@ let package = Package( ...@@ -72,8 +69,8 @@ let package = Package(
name: "ErrorFeature", name: "ErrorFeature",
dependencies: [ dependencies: [
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"), .product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
.product(name: "ElixxirDAppsSDK", package: "elixxir-dapps-sdk-swift"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"), .product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "XXClient", package: "elixxir-dapps-sdk-swift"),
], ],
swiftSettings: swiftSettings swiftSettings: swiftSettings
), ),
...@@ -90,8 +87,8 @@ let package = Package( ...@@ -90,8 +87,8 @@ let package = Package(
.target(name: "ErrorFeature"), .target(name: "ErrorFeature"),
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"), .product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
.product(name: "ComposablePresentation", package: "swift-composable-presentation"), .product(name: "ComposablePresentation", package: "swift-composable-presentation"),
.product(name: "ElixxirDAppsSDK", package: "elixxir-dapps-sdk-swift"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"), .product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "XXClient", package: "elixxir-dapps-sdk-swift"),
], ],
swiftSettings: swiftSettings swiftSettings: swiftSettings
), ),
...@@ -108,8 +105,8 @@ let package = Package( ...@@ -108,8 +105,8 @@ let package = Package(
.target(name: "ErrorFeature"), .target(name: "ErrorFeature"),
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"), .product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
.product(name: "ComposablePresentation", package: "swift-composable-presentation"), .product(name: "ComposablePresentation", package: "swift-composable-presentation"),
.product(name: "ElixxirDAppsSDK", package: "elixxir-dapps-sdk-swift"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"), .product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "XXClient", package: "elixxir-dapps-sdk-swift"),
], ],
swiftSettings: swiftSettings swiftSettings: swiftSettings
), ),
......
import Combine import Combine
import ComposableArchitecture import ComposableArchitecture
import ElixxirDAppsSDK
import ErrorFeature import ErrorFeature
import LandingFeature import LandingFeature
import SessionFeature import SessionFeature
import SwiftUI import SwiftUI
import XXClient
@main @main
struct App: SwiftUI.App { struct App: SwiftUI.App {
......
import ElixxirDAppsSDK
import KeychainAccess import KeychainAccess
import XXClient
extension PasswordStorage { extension PasswordStorage {
static let keychain: PasswordStorage = { static let keychain: PasswordStorage = {
......
import Combine import Combine
import ComposableArchitecture import ComposableArchitecture
import ElixxirDAppsSDK
import ErrorFeature import ErrorFeature
import XCTestDynamicOverlay import XCTestDynamicOverlay
import XXClient
public struct LandingState: Equatable { public struct LandingState: Equatable {
public init( public init(
......
import ElixxirDAppsSDK
import SwiftUI import SwiftUI
import XXClient
struct NetworkFollowerStatusView: View { struct NetworkFollowerStatusView: View {
var status: NetworkFollowerStatus? var status: NetworkFollowerStatus?
......
import Combine import Combine
import ComposableArchitecture import ComposableArchitecture
import ElixxirDAppsSDK
import ErrorFeature import ErrorFeature
import XCTestDynamicOverlay import XCTestDynamicOverlay
import XXClient
public struct SessionState: Equatable { public struct SessionState: Equatable {
public init( public init(
......
import ComposableArchitecture import ComposableArchitecture
import ComposablePresentation import ComposablePresentation
import ElixxirDAppsSDK
import ErrorFeature import ErrorFeature
import SwiftUI import SwiftUI
import XXClient
public struct SessionView: View { public struct SessionView: View {
public init(store: Store<SessionState, SessionAction>) { public init(store: Store<SessionState, SessionAction>) {
......
import ComposableArchitecture import ComposableArchitecture
import ElixxirDAppsSDK
import ErrorFeature import ErrorFeature
import XCTest import XCTest
import XXClient
@testable import SessionFeature @testable import SessionFeature
final class SessionFeatureTests: XCTestCase { final class SessionFeatureTests: XCTestCase {
......
...@@ -5,10 +5,8 @@ import PackageDescription ...@@ -5,10 +5,8 @@ import PackageDescription
let swiftSettings: [SwiftSetting] = [ let swiftSettings: [SwiftSetting] = [
.unsafeFlags( .unsafeFlags(
[ [
"-Xfrontend", "-Xfrontend", "-debug-time-function-bodies",
"-debug-time-function-bodies", "-Xfrontend", "-debug-time-expression-type-checking",
"-Xfrontend",
"-debug-time-expression-type-checking",
], ],
.when(configuration: .debug) .when(configuration: .debug)
), ),
...@@ -21,7 +19,7 @@ let package = Package( ...@@ -21,7 +19,7 @@ let package = Package(
.iOS(.v14), .iOS(.v14),
], ],
products: [ products: [
.library(name: "ElixxirDAppsSDK", targets: ["ElixxirDAppsSDK"]), .library(name: "XXClient", targets: ["XXClient"]),
], ],
dependencies: [ dependencies: [
.package( .package(
...@@ -35,7 +33,7 @@ let package = Package( ...@@ -35,7 +33,7 @@ let package = Package(
], ],
targets: [ targets: [
.target( .target(
name: "ElixxirDAppsSDK", name: "XXClient",
dependencies: [ dependencies: [
.target(name: "Bindings"), .target(name: "Bindings"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"), .product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
...@@ -43,9 +41,9 @@ let package = Package( ...@@ -43,9 +41,9 @@ let package = Package(
swiftSettings: swiftSettings swiftSettings: swiftSettings
), ),
.testTarget( .testTarget(
name: "ElixxirDAppsSDKTests", name: "XXClientTests",
dependencies: [ dependencies: [
.target(name: "ElixxirDAppsSDK"), .target(name: "XXClient"),
.product(name: "CustomDump", package: "swift-custom-dump"), .product(name: "CustomDump", package: "swift-custom-dump"),
], ],
swiftSettings: swiftSettings swiftSettings: swiftSettings
......
...@@ -15,7 +15,7 @@ You can find full documentation with step by step guide [here](https://xxdk-dev. ...@@ -15,7 +15,7 @@ You can find full documentation with step by step guide [here](https://xxdk-dev.
## 🚀 Quick Start ## 🚀 Quick Start
Add `ElixxirDAppsSDK` library as a dependency to your project using Swift Package Manager. Add `XXClient` library as a dependency to your project using Swift Package Manager.
### ▶️ Instantiating cMix ### ▶️ Instantiating cMix
...@@ -139,7 +139,7 @@ Open `ElixxirDAppsSDK.xcworkspace` in Xcode (≥13.4). ...@@ -139,7 +139,7 @@ Open `ElixxirDAppsSDK.xcworkspace` in Xcode (≥13.4).
``` ```
ElixxirDAppsSDK [Xcode Workspace] ElixxirDAppsSDK [Xcode Workspace]
├─ elixxir-dapps-sdk-swift [Swift Package] ├─ elixxir-dapps-sdk-swift [Swift Package]
| └─ ElixxirDAppsSDK [Library] | └─ XXClient [Library]
└─ Example [Xcode Project] └─ Example [Xcode Project]
├─ ExampleApp (iOS) [iOS App Target] ├─ ExampleApp (iOS) [iOS App Target]
├─ example-app [Swift Package] ├─ example-app [Swift Package]
...@@ -152,7 +152,7 @@ ElixxirDAppsSDK [Xcode Workspace] ...@@ -152,7 +152,7 @@ ElixxirDAppsSDK [Xcode Workspace]
### Build schemes ### Build schemes
- Use `exlixxir-dapps-sdk-swift` scheme to build and test the package with `ElixxirDAppsSDK` library. - Use `exlixxir-dapps-sdk-swift` scheme to build and test the package.
- Use `ExampleApp (iOS)` to build and run the example app. - Use `ExampleApp (iOS)` to build and run the example app.
- Use `example-app` scheme to build and test the example app package with all contained libraries. - Use `example-app` scheme to build and test the example app package with all contained libraries.
- Use `ExampleAppIcon` scheme with macOS target to build and preview the example app icon. - Use `ExampleAppIcon` scheme with macOS target to build and preview the example app icon.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment