All Projects → MaxGraey → fuse-device

MaxGraey / fuse-device

Licence: MIT license
Use the basic Device functions such as UUID and current localization from Fuse

Programming Languages

Uno
12 projects

Projects that are alternatives of or similar to fuse-device

Fcuuid
iOS UUID / Universally Unique Identifiers library as alternative to UDID and identifierForVendor. 📱
Stars: ✭ 1,387 (+10569.23%)
Mutual labels:  device, uuid
www.gafam.info
Sources of the gafam.info web page
Stars: ✭ 14 (+7.69%)
Mutual labels:  localization, information
Easydeviceinfo
📱 [Android Library] Get device information in a super easy way.
Stars: ✭ 1,698 (+12961.54%)
Mutual labels:  device, information
Alsystemutilities
THIS REPO IS NO LONGER MAINTAINED! Check https://github.com/andrealufino/Luminous. This library provides a list of 80 methods to get every kind of system information!
Stars: ✭ 644 (+4853.85%)
Mutual labels:  device, information
Hardware.Info
Battery, BIOS, CPU - processor, storage drive, keyboard, RAM - memory, monitor, motherboard, mouse, NIC - network adapter, printer, sound card - audio card, graphics card - video card. Hardware.Info is a .NET Standard 2.0 library and uses WMI on Windows, /dev, /proc, /sys on Linux and sysctl, system_profiler on macOS.
Stars: ✭ 238 (+1730.77%)
Mutual labels:  device, information
sno
Compact, sortable and fast unique IDs with embedded metadata.
Stars: ✭ 77 (+492.31%)
Mutual labels:  uuid
update localization
A Python Script that helps dealing with localizations in Xcode. It keeps track of Items that are already translated and doesnt replace them like genstrings does but appends new items. Moreover it is possible to specify extensions of files that should be scanned and to specify ignore patterns for Files that should be ignored
Stars: ✭ 39 (+200%)
Mutual labels:  localization
learn flutter theme
Learn flutter theme in this project
Stars: ✭ 30 (+130.77%)
Mutual labels:  localization
schummar-translate
TypeScript powered translation library for React and Node.js.
Stars: ✭ 120 (+823.08%)
Mutual labels:  localization
locale-switcher
Browser Extension to quickly change your browser locale.
Stars: ✭ 75 (+476.92%)
Mutual labels:  localization
DevBrute-A Password Brute Forcer
DevBrute is a Password Brute Forcer, It can Brute Force almost all Social Media Accounts or Any Web Application.
Stars: ✭ 91 (+600%)
Mutual labels:  information
iXn
Control your localization of apps
Stars: ✭ 20 (+53.85%)
Mutual labels:  localization
Management
Management Endpoints used to allow insight into your applications
Stars: ✭ 31 (+138.46%)
Mutual labels:  information
JuliaAutonomy
Julia sample codes for Autonomy, Robotics and Self-Driving Algorithms.
Stars: ✭ 21 (+61.54%)
Mutual labels:  localization
ulid
Universally Unique Lexicographically Sortable Identifier (ULID) in Crystal
Stars: ✭ 28 (+115.38%)
Mutual labels:  uuid
UserFinder
OSINT tool for finding profiles by username
Stars: ✭ 379 (+2815.38%)
Mutual labels:  information
Temp-l10n
Frozen - checkout https://github.com/TartaricAcid/Minecraft-Mod-Language-Package for Minecraft 1.12+
Stars: ✭ 13 (+0%)
Mutual labels:  localization
profuse
An OCaml implementation of the FUSE protocol versions 7.8 and 7.23
Stars: ✭ 29 (+123.08%)
Mutual labels:  fuse
MultiplatformPlayground
Kotlin Multiplatform project in Jetpack Compose & SwiftUI with shared ViewModel layer and File upload
Stars: ✭ 72 (+453.85%)
Mutual labels:  localization
ngx-translate-module-loader
Highly configurable and flexible translations loader for @ngx-translate/core
Stars: ✭ 31 (+138.46%)
Mutual labels:  localization

fuse-device

Use the basic Device functions such as UUID and current localization from Fuse.

Installation

Using fusepm

$ fusepm install https://github.com/MaxGraey/fuse-device

Or manually copy Device.uno to your project and add link in .unoproj see example

Support

  • iOS
  • Android
  • Preview

JavaScript

    var Device = require('Device');

    console.log('Current device language: ' + Device.locale); // format in BCP-47 for all mobile platforms
    // output example: en-US

    console.log('UUID:'                + Device.UUID);
    // output example:
    // UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

    console.log('Vendor name: '        + Device.vendor);
    console.log('Model name: '         + Device.model);
    console.log('System: '             + Device.system);
    console.log('System version: '     + Device.systemVersion);
    console.log('System SDK ver: '     + Device.SDKVersion);
    console.log('Logical processors: ' + Device.cores);
    console.log('is retina?: '         + Device.isRetina);

Since reading UUID in Android requires a run-time permission to READ_PHONE_STATE, the UUID might not always be accessible via Device.UUID directly. To work around that, there is a getUUID() method that returns the UUID in a promise.

For convenience, getUUID() is available on all target platforms, but it only triggers the permission request on Android.

    var Device = require('Device');
    if (Device.UUID == '') {
        Device.getUUID().then(function(uuid) {
            console.log('UUID: ' + uuid);
            // output example:
            // UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
        }).catch(function(error) {
            console.log('UUID error: ' + error);
            // output example:
            // UUID error: Permissions could not be requested or granted.
        });
    }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].