I want to get my native dart software build and version number which exists in pubspac.yaml
My software gets converted in the end to executable using the dart2native so I guess that the final executable file does not include the actual pubspec.yaml file.
I can't use package_info_plus as suggested in many places because I run native Dart code and not Flutter app.
You can read a pubspec file with pubspec_parse. Then you can retrieve the version number.
final file = File('pubspec.yaml');
final content = Pubspec.parse(await file.readAsString());
print(content.version); // 1.1.2+41
Related
I have a native C library (.so) build in versions for android and iOS. I want them to be used in a flutter app I am building.
For android I use System.loadLibrary() in Java to load the file (wrapped in JNI) and it is included via the Gradle build system/CMake.
But how do I get the same for iOS in objective C ?
Seems like I can use dlopen() on the library and then dlsym() every single function to get their symbol into the app at runtime. Seems pretty dump but I guess it could work (when I at some point have convinced the buildsystem to include the lib into the actual package it builds.
Im planning to add a text within an app stating what RestKit version the app is currently using. So I wonder if there is an easy way to get the current version number of the RestKit installed via CocoaPods.
...Or, is there a way to check the version of the staticlib libPods-RestKit.a?
No, there isn't. The version number is held in a file in the project but this file isn't built into the library and there is no API provided to get the version number. There is no standard method for providing version numbers in static libraries so this isn't a frequent requirement.
Anything you do would be an explicit solution on your part. Your best option would likely be to fork the RestKit repo and make some small changes or to reference the VERSION file from the RestKit project in your main project so it's copied into the app and you can read it from disk at runtime...
We have more time to release our a Chicagoboss framework project. Since we're thinking to update it to its latest version. But I don't know what's the way to find its current version.
Since - How can I find the version of ChicagoBoss?
The version number is stored in the .app file. In the original source code look for boss.app.src. On GitHub it can be viewed here: https://github.com/ChicagoBoss/ChicagoBoss/blob/v0.8.14/src/boss.app.src The relevant line is:
{vsn, "0.8.14"},
If Chicago Boss is already compiled and running you can still find the version by looking for a file named boss.app inside one of your ebin/ directories somewhere in your release.
I've already installed OpenCV from the sourceforge.net.
How can I get information about what settings were used to build it?
getBuildInformation() returns a string with
cmake output including version control system revision, compiler version, compiler flags, enabled modules and third party libraries, etc. Output format depends on target architecture.
Is there a way I can get application name, application version and application icon, for the package that is not yet installed by delphi?
*.apk files are basically zip files, so you can have a look at the single resources at least to get the app icon. The ApplicationManifest.xml is howewer compiled into some binary format, so this might be a bit harder to decode (but there are answers that show code for that task as well here: How to parse the AndroidManifest.xml file inside an .apk package).