Package Info
The library that allows you to obtain information about the current package installed in the system.
Features:
- Full package identifier.
- Application name identifier.
- Application Organization ID.
- Version of the application with the release.
- Package group.
- The size of the entire directory of the installed package.
- Size of bin directory with executable file.
- Size of package data directory.
- Size of the directory with package libraries.
Example
class AuroraPackageInfo {
fun getApplicationId(): String {
return PackageInfo.getApplicationId()
}
fun getAppName(): String {
return PackageInfo.getAppName()
}
fun getOrgName(): String {
return PackageInfo.getOrgName()
}
fun getAppVersion(): String {
return PackageInfo.getAppVersion()
}
fun getSubgroup(): String {
return PackageInfo.getSubgroup()
}
fun getSize(): ULong {
return PackageInfo.getSize()
}
fun getSizeBin(): ULong {
return PackageInfo.getSizeBin()
}
fun getSizeData(): ULong {
return PackageInfo.getSizeData()
}
fun getSizeDataLib(): ULong {
return PackageInfo.getSizeDataLib()
}
}