Swiftpack.co - virtualstores/ios-sdk as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by virtualstores.
virtualstores/ios-sdk 1.0.0
Main SDK with the Public Interfaces to be consumed by our clients
⭐️ 0
🕓 27 weeks ago
iOS macOS watchOS
.package(url: "https://github.com/virtualstores/ios-sdk.git", from: "1.0.0")

Virtual Stores SDK

Our main SDK.

Swift 5.5 Platforms Platforms Swift Package Manager compatible

Features

  • ☑ TBD

Requirements

  • Xcode 12+
  • If using M1: ```gem install --user-install ffi -- --enable-libffi-alloc
- **Jazzy** ```[sudo] gem install jazzy```
- **Brew** ```/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"```
- **Make** ```brew install make```
- **Swiftlint** ```brew install swiftlint```


## Style Guide

Following our style guide should:

* Make it easier to read and begin understanding the unfamiliar code.
* Make code easier to maintain.
* Reduce simple programmer errors.
* Reduce cognitive load while coding.
* Keep discussions on diffs focused on the code's logic rather than its style.

*Note that brevity is not a primary goal.*

[Official Style Guide] (https://github.com/virtualstores/ios-style-guide)

## Installation

####Using as a dependency

``` swift
// swift-tools-version:5.5

import PackageDescription

let package = Package(
  name: "YourTestProject",
  dependencies: [
    .package(url: "https://github.com/virtualstores/ios-sdk.git", from: "0.0.1")
  ],
  targets: [
    .target(name: "YourTestProject", dependencies: ["VSTT2"])
  ]
)

And then import wherever needed: import VSTT2

Adding it to an existent iOS Project via Swift Package Manager

  1. Using Xcode 11 go to File > Swift Packages > Add Package Dependency
  2. Paste the project URL: https://github.com/virtualstores/ios-sdk.git
  3. Click on next and select the project target

If you have doubts, please, check the following links:

How to use

Creating Swift Packages

After successfully retrieved the package and added it to your project, just import VSTT2 and you can get the full benefits of it.

Usage example

import VSTT2

// Add some example here

Distribution

[Read Apple's official documentation] (https://developer.apple.com/documentation/swift_packages/distributing_binary_frameworks_as_swift_packages)

[Read About code obfuscation] (https://github.com/rockbruno/swiftshield)

Contributing to the library

  1. Clone the repository
  2. Create your feature branch
  3. Open the Package.swift file
  4. Perform your changes, debug, run the unit tests
  5. Make sure that all the tests pass and there are no Xcode warnings or lint issues
  6. Open a pull request

We have added a few helpers to make your life easier:

  1. make build to build the project via command line
  2. make test to test the project via command line
  3. make docs to generate the documentation and output to the Docs folder
  4. make lint to execute Swiftlint
  5. make fixlint to auto-correct Swiftlint warnings

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics