Skip to content
Merged
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
102 changes: 95 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,98 @@
# Created by https://www.toptal.com/developers/gitignore/api/swift,swiftpm
# Edit at https://www.toptal.com/developers/gitignore?templates=swift,swiftpm

### Swift ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
# Pods/
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

### SwiftPM ###
Packages
.build
xcuserdata
*.xcodeproj


# End of https://www.toptal.com/developers/gitignore/api/swift,swiftpm

.DS_Store
/*.xcodeproj
DerivedData/
Package.resolved
.swiftpm
Tests/LinuxMain.swift
.vscode
xcuserdata/
.vscode
1 change: 1 addition & 0 deletions Example/Wrp/WrpSample/WrpSampleReducer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ extension WrpSampleReducer {
.toPublisher()
.map { Double($0.value) }
.replaceError(with: 0.0)
.receive(on: DispatchQueue.main)
.catchToEffect()
.map(WrpSampleAction.getSliderValueResult)

Expand Down
1 change: 0 additions & 1 deletion Example/Wrp/WrpSample/WrpSampleTCAView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ struct WrpSampleView: View {
private let store: WrpSampleStore

let url: String = "https://pbkit.dev/wrp-example"
@State var wrpExampleClient: Pbkit_Wrp_Example_WrpExampleServiceWrpClient!

init(store: WrpSampleStore) {
self.viewStore = ViewStore(store)
Expand Down
10 changes: 5 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
// swift-tools-version: 5.6
// swift-tools-version: 5.5

import PackageDescription

let package = Package(
name: "wrp-swift",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.iOS(.v13)
],
products: [
.library(name: "Wrp", targets: ["Wrp"]),
.library(name: "Wrp", targets: ["Wrp"])
],
dependencies: [
// GRPC library for protobuf serializer/deserializer
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.7.3"),
// Protobuf library for en/decoding Wrp messages
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.19.0"),
// Swift logging API
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0")
],
targets: [
.target(
Expand All @@ -32,6 +32,6 @@ let package = Package(
.testTarget(
name: "WrpTests",
dependencies: ["Wrp"]
),
)
]
)
142 changes: 142 additions & 0 deletions WrpSwift.xcworkspace/xcshareddata/swiftpm/Package.resolved

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