Latest 0.0.8
Homepage https://github.com/Hub-of-all-Things/HatForIOS
License MPL 2.0
Platforms ios 10.0
Dependencies SwiftyJSON, Alamofire, JWTDecode, SwiftyRSA, SwiftLint

HAT for iOS

Overview

This libary contains all the API calls needed to communicate with the HAT

  • Handle user Login
  • Request tokens for the user or services like Facebook, Twitter, Fitbit etc
  • Read and write data to endpoints
  • Upload files
  • Check HAT status

Requirements

Xcode build 9.0+. Requires iOS SDK 9.0+ and Swift 4.0+

Installing and Running HatForIOS

Install

Clone (using SSH) the repository to install the demo app (including any cocoapods) to your local machine

  1. Create a new folder
  2. Clone the app to the folder. While in the new folder, open a cmd terminal and run the following:
    git clone [email protected]:Hub-of-all-Things/HatForIOS.git

Once complete, the structure will be as follows:

[your project folder]
│
└───Notables
│   README.md
│
├───HAT
│   │   ...
│
├───HATTests
│   │   ...
│
├───HATUITests
│   │   ...
│
└───Pods
│   │   ...
│
└───HAT.xcworkspace

Run

  1. Navigate to the hat-mobile-ios.xcworkspace file (see project tree above). This is a workspace file
  2. Double click to open in Xcode
  3. Click Run (⌘R)

Notes

  1. If you need to create SSH keys, https://help.github.com/articles/generating-an-ssh-key/
  2. The app does not require cocoapods to be installed

Troubleshooting

If there are Xcode errors. Try the following:

  1. Make sure you ‘clean’ the project (Xcode -> Product -> Clean) or (⇧⌘K)
  2. Delete the Derived Data folder for the project. While in Xcode, go to ‘Window -> Projects’. hat-mobile-ios will be highlighted. Go ahead and click ‘Delete…’. Confirm deletion.
  3. Run pod install in order to install cocoapods

Latest podspec

{
    "name": "HAT-API-for-iOS",
    "version": "0.0.8",
    "summary": "The API to connect & exchange data with the HAT",
    "description": "Contains the basic tools to connect and talk to HAT",
    "homepage": "https://github.com/Hub-of-all-Things/HatForIOS",
    "license": {
        "type": "MPL 2.0"
    },
    "authors": "whiteshadow-gr",
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/Hub-of-all-Things/HatForIOS.git",
        "tag": "0.0.8"
    },
    "source_files": "HAT/**/*.{swift}",
    "exclude_files": "HAT/Pods",
    "dependencies": {
        "SwiftyJSON": [],
        "Alamofire": [],
        "JWTDecode": [],
        "SwiftyRSA": [],
        "SwiftLint": [
            "0.21.0"
        ]
    },
    "testspecs": [
        {
            "name": "Tests",
            "test_type": "unit",
            "requires_app_host": false,
            "source_files": [
                "HATTests/**/*.{swift}",
                "HATTests/*.{swift}",
                "HAT/**/*.{swift}"
            ],
            "frameworks": "HAT",
            "dependencies": {
                "SwiftyJSON": [],
                "Alamofire": [],
                "JWTDecode": [],
                "SwiftyRSA": [],
                "SwiftLint": [
                    "0.21.0"
                ],
                "Mockingjay": [],
                "URITemplate": []
            },
            "libraries": "XCTest"
        }
    ]
}

Pin It on Pinterest

Share This