Skip to content

efraespada/desktop_info

 
 

Repository files navigation

Desktop Info

Desktop Info is a plugin to get on device information from desktop OS environments, currently only MacOS is Support, feel free to make PRs for others.

🚀 Usage

  
   String data = await MacOSInfo.systemInfo(
            resultType: MacOSInfoResultType.json, //return as JSON
            type: MacOSInfoType.basic // return Basic data
        );

   print(data);
   
  • resultType can either be json/xml
  • type can either be basic, or mini

🤔 MacOS setup

You might need to add the following to Release.entitlements file.

    <key>com.apple.security.device.audio-input</key>
	<true/>
	<key>com.apple.security.device.bluetooth</key>
	<true/>
	<key>com.apple.security.device.camera</key>
	<true/>
	<key>com.apple.security.device.usb</key>
	<true/>
	<key>com.apple.security.network.client</key>
	<true/>
	<key>com.apple.security.network.server</key>
  }

or just check as follows

✨ Contribution

Lots of PR's would be needed to improve this plugin. Suggestions and PRs are highly welcome.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 38.4%
  • Ruby 33.1%
  • Swift 28.5%