Instead of searching everywhere for the most used variables, these are provided here.
- Application name:
GlobalInfo.App.displayName
- Copyright:
GlobalInfo.App.copyright
- Identifier:
GlobalInfo.App.bundleIdentifier
- Version:
GlobalInfo.App.bundleShortVersion
,GlobalInfo.App.bundleVersion
, andGlobalInfo.App.bundleVersionAsInt
. - Environment:
GlobalInfo.App.isiOSOnMac
,GlobalInfo.App.isMacCatalyst
,GlobalInfo.App.isMacAppleSiliconNativeCode
. - Execution environment:
GlobalInfo.App.isPreview
,GlobalInfo.App.isRunningTests
- Build architecture:
GlobalInfo.App.buildArchitecture
- Argument detection:
GlobalInfo.App.hasArgument
- Argument value retrieval:
GlobalInfo.App.argumentValue
- Process Path:
GlobalInfo.App.processPathName
- Device is a Simulator:
GlobalInfo.HW.isSimulator
- Device code name:
GlobalInfo.HW.modelIdentifier
,GlobalInfo.HW.simulatorModelIdentifier
- Device family name (iPhone, iPad, ...):
GlobalInfo.HW.family
,GlobalInfo.HW.systemFamily
,GlobalInfo.HW.simulatorFamily
- OS version (localized):
GlobalInfo.OS.localizedVersion
- OS version:
GlobalInfo.OS.majorVersion
,GlobalInfo.OS.minorVersion
,GlobalInfo.OS.patchVersion
- App store receipt retrieval:
GlobalInfo.App.appStoreReceiptURL
andGlobalInfo.App.appStoreReceipt
- identifierForVendor's UUID retrieval (not for advertisement):
GlobalInfo.OS.uuid
- Defines the
subsystem
as thebundleIdentifier
automatically. Simply create your logger with the category:Logger(category: "SomeCategory")
- Defines the
subsystem
as well as thecategory
automatically from the file name:Logger(file: #file)
- Sends a one-liner on the current app execution context. Useful at app startup:
Logger.logAppContext()
andLogger.logAppContextOnce()
- Added basic tests. Fixed macOS OS.uuid. Improved HW family facilities.
- Removing Architecture (Private API; Deprecated). Using HW_PRODUCT. Added Apple Vision family.
- OSS-74 Execute complex operations only once
- OSS-75 Add one-liner app info logging
- OSS-76 Add command-line arguments parsing
- OSS-77 Add Rosetta detection
- OSS-78 Add OS version detection
- OSS-73 Added isPreview and isRunningTests to App
- OSS-72 Added
Logger(file: #file)
simplification
- Added version history.
- OSS-69 Removed
GlobalInfo.App.hasAppStoreReceipt
as it breaks Apple suggestion for file retrieval's good practice.Data
will returnnil
if invalid. - OSS-70 Added macOS app environment information (running an iOS app on Mac, running on Mac Catalyst, running an Apple Silicon native version).
- OSS-68 Added simple
Logger
for macOS 11 / IOS 14 - OSS-67 Improved
sysctl
calls for macOS
- Initial Revision
The official address for this package
This package is created and maintained by Misoservices Inc. and is licensed under the BSL-1.0: Boost Software License - Version 1.0.