Swiftpack.co - Package - naithar/Notifications

Notifications

A library for delivering PUSH Notifications to iOS and Android devices.

Tested on MacOS and Ubuntu 16.04

Installation

Install Curl with HTTP2 support

MacOS

brew reinstall curl --with-openssl --with-nghttp2
brew link curl --force

Linux

Install nghttp2

git clone https://github.com/tatsuhiro-t/nghttp2.git
cd nghttp2
autoreconf -i
automake
autoconf
./configure
make
sudo make install

Reintall curl with HTTP2 and SSL support.

sudo apt-get build-dep curl
wget http://curl.haxx.se/download/curl-7.46.0.tar.bz2
tar -xvjf curl-7.46.0.tar.bz2
cd curl-7.46.0
./configure --with-nghttp2=/usr/local --with-ssl
make
sudo make install
sudo ldconfig

Add package

Add this package to dependencies in your Package.swift file.

.Package(url: "https://github.com/naithar/Notifications.git", majorVersion: 0)

Building and Testing

MacOS

swift build -Xcc -I/usr/local/opt/openssl/include -Xlinker -L/usr/local/opt/openssl/lib
swift test -Xcc -I/usr/local/opt/openssl/include -Xlinker -L/usr/local/opt/openssl/lib

Linux

swift build
swift test

Github

link
Stars: 3
Help us keep the lights on

Used By

Total: 1

Releases

0.3.1 - Dec 26, 2017

0.3.0 - Dec 26, 2017

0.2.4 - Jul 24, 2017

0.2.3 - Jul 9, 2017

0.2.2 - May 21, 2017