Swiftpack.co - markangelohernandez/networkeeng as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
markangelohernandez/networkeeng
networkeeng monitors internet connection(wifi, cellular, no connection) and identifies VPN protocol(such as tun, ipsec, etc).
.package(url: "https://github.com/markangelohernandez/networkeeng.git", from: "0.1.0")

👑 networkeeng

Build Status


WiFi-No VPN Cellular-No VPN
WiFi-VPN Cellular-VPN
No Connection

Code Style
Swift Style Guide from Google

Code linter and formatter
I use swift-format for this project as I need to use a custom tab indentation and spacing.
Here are some commands I used during testing.

swift-format demo/*.swift --configuration .swift-format.json --in-place
swift-format networkeeng/*.swift --configuration .swift-format.json --in-place

Some good articles
How to start working with swift-format
Swift Code Formatters

💡 Tips
Here's a code snippet when formatting a long String so that swift-format doesn't complain.

let singleLineText =
"""
fames ac turpis egestas sed tempus urna et pharetra pharetra massa massa \
ultricies mi quis hendrerit dolor magna eget est lorem ipsum dolor sit amet\
consectetur adipiscing elit pellentesque habitant morbi tristique senectus \
et netus et malesuada fames ac turpis egestas integer eget aliquet nibh \
praesent tristique magna sit amet
"""

let multilineText =
"""
fames ac turpis egestas sed tempus urna et pharetra pharetra massa massa
ultricies mi quis hendrerit dolor magna eget est lorem ipsum dolor sit amet
consectetur adipiscing elit pellentesque habitant morbi tristique senectus
et netus et malesuada fames ac turpis egestas integer eget aliquet nibh
praesent tristique magna sit amet
"""

ℹ️ Note
This is my first time to try an open-source project and I appreciate your feedback or pointing me to the right direction to make networkeeng help the iOS open-source community.

GitHub

link
Stars: 2
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

Beta 0.1.0
5 weeks ago

This the very first beta of this framework. I'm just trying to get familiarized on how swift package works which is my goal on this open source and maybe someone will also benefit from networkeeng.

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