andrealufino / luminous Goto Github PK
View Code? Open in Web Editor NEWLuminous provides you a lot of information about the system and a lot of handy methods to quickly get useful data on the iOS platform.
License: MIT License
Luminous provides you a lot of information about the system and a lot of handy methods to quickly get useful data on the iOS platform.
License: MIT License
From a quick search in the code, I don't seem to find any reference to Deviice/Device in the current Luminous code; is the dependency actually used? or planned to be used? or could it be removed?
There are many functions without arguments.
It would be nice if parenthesis can be omitted.
Instead of invoking isConnectedViaWiFi()
, then invoke isConnectedViaWiFi
Hi,
Thanks for this really useful tool.
Will you update it for new iPhone
& iPad models for example 11, 12 etc.
Thanks again.
George
Can we create detailed releases notes for future releases, please?
It will be better for the community to follow evolutions ;)
Thanks!
[!] Unable to find a specification for Luminous
Here is the podfile
platform :ios, '10.0'
use_frameworks!
target 'my_tutorial' do
pod 'Luminous'
end
Hi,
In the file Luminous.swift
, var usedSpace
:
/// The used disk space in string format (megabytes)
public static var usedSpace: String {
return ByteCountFormatter.string(fromByteCount: freeSpaceInBytes, countStyle: ByteCountFormatter.CountStyle.binary)
}
freeSpaceInBytes
are called, instead of usedSpaceInBytes
I haven't use this library, just saw your source code.
I think Luminous.Carrier.networkCountryCode should be .mobileNetworkCode(MNC) in
https://github.com/andrealufino/Luminous/blob/master/Luminous/Classes/Luminous.swift
I saw Swift 4.2 compatibility but no related release.
It's time to create a 1.1
, is it possible to release and submit it on Cocoapods?
Thanks
It seems that, in addition to reachability information, there could be a way to check for Wi-Fi enabled/disabled:
https://github.com/alirp88/SMTWiFiStatus
It could be an interesting information to add.
What do you think?
This is a really awesome project!!
Would love to see a macOS support!!
Apple does not grant access to CNCopyCurrentNetworkInfo
API anymore, as communicated by Apple on August 7th, 2019 :
As we announced at WWDC19, we're making changes to further protect user privacy and prevent unauthorized location tracking. Starting with iOS 13, the
CNCopyCurrentNetworkInfo
API will no longer return valid Wi-Fi SSID and BSSID information.Instead, the information returned by default will be:
- SSID: “Wi-Fi” or “WLAN” (“WLAN" will be returned for the China SKU)
- BSSID: "00:00:00:00:00:00" If your app is using this API, we encourage you to adopt alternative approaches that don’t require Wi-Fi or network information.
Valid SSID and BSSID information from
CNCopyCurrentNetworkInfo
will still be provided to VPN apps, apps that have usedNEHotspotConfiguration
to configure the current Wi-Fi network, and apps that have obtained permission to access user location through Location Services. Test your app on the latest iOS 13 beta to make sure it works properly.If your app requires valid Wi-Fi SSID and BSSID information to function, you can do the following:
• For accessory setup apps, use theNEHotSpotConfiguration
API, which now has the option to pass a prefix of the SSID hotspot your app expects to connect to.
• For other types of apps, use the CoreLocation API to request the user’s consent to access location information.
Hi @andrealufino,
I have 2 issues with the SystemVersion struct:
1/ it seems that major, minor and path values are currently all set to the "first" component
major = Int(components.first!)!
minor = Int(components.first!)!
patch = Int(components.first!)!
which doesn't seem correct?
2/ there doesn't seem to be any way to retrieve any of the values, either major/minor/patch or the full string value as everything is private, which makes it mostly useless?
It could be possible to add current audio output volume information this way:
try? AVAudioSession.sharedInstance().setActive(true)
volume = AVAudioSession.sharedInstance().outputVolume
try? AVAudioSession.sharedInstance().setActive(false)
What do you think?
I realize that everything built in this library is a public struct, which means it isn't accessible via obj-c... any chance you can make an obj-c compatible version?
Would be FIRE
Thanks.
Please add Carthage as a way of installing Luminous!
Some are articles to help you:
On your README.md
add on top and add section for the installation with Carthage.
Hi,
You have updated Deviice here, but not the dependency linked with the Luminous pod.
Possible to have an update of Deviice ?
Thanks
CocoaPods
and Carthage
are awesome tools and make our life really easier, but there are some devs who still don't know how to use them.
It would be cool to add the Manual installation guide in your README.md
. You can take a look at my iOS Readme Template to see how you can do it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.