Can the extension check it's own version number and does it change between platforms (browsers)? And is it possible to specify a specific version number for the extension?
I think you'll find that appAPI.appInfo.version is what you're after to obtain the extension's own version number. To create you own version number, simply save it as a JavaScript variable in your code.
[Disclosure: I am a Crossrider employee]
Related
I am using Flutter and the FontAwesome library and I need to create icons based on their name. So, I need to get the following:
FaIcon(FontAwesomeIcons.lightWalking);
...but from its name as a String.
Something like this:
FaIcon(FontAwesomeIcons["lightWalking"]); // <== this doesn't work in Dart
I can then build a function to return icons based on the name that I get out of a database.
I don't think this is a dart related question on first sight but rather a FontAwesomeIcons question unless you want to use reflection in dart. You need to access the Icons here which are simply not accessible the way you tried it.
See the following issue:
https://github.com/fluttercommunity/font_awesome_flutter/issues/102
Quote:
Hi, we don't support icon maps officially, but you can use this
generator by calling it in the updater tool. You will need a local
installation of font awesome for this, please follow the instructions
for pro icons and ignore steps that mention icons.json or .ttf files.
If you need further assistance feel free to ask.
That means the way you are trying to access your icons is not supported directly.
However you could use the generator tools to create such a map, iterate it and find a suitable icon. See the FontAwesome example for that (they generated a map and iterated it).
https://github.com/fluttercommunity/font_awesome_flutter/tree/master/example/lib
What might be a little more convenient might be a third party tool which already has such a map and allows you to search it.
https://pub.dev/packages/icons_helper/example
You can then do the following:
getIconUsingPrefix(name: "PREFIX.ICON_NAME")
You can achieve this only using reflection. There is a library called reflectable for Flutter. It will generate some code for you and then you will be able to access the class members of FontAwesomeIcons by their name as String.
I am using the ITD tools plugin to download a file file over the internet and i need the Wizardpage's id after which i want the download screen. I need the welcome screens id. How can i know this? I searched for this online and couldn't find it. I need this as an argument in my ITD_DownloadAfter() function.
Do not use hardcoded IDs but use Inno Setup Constants:
PageID values for predefined wizard pages:
wpWelcome, wpLicense,
wpPassword, wpInfoBefore, wpUserInfo, wpSelectDir, wpSelectComponents,
wpSelectProgramGroup, wpSelectTasks, wpReady, wpPreparing,
wpInstalling, wpInfoAfter, wpFinished
See the manual for more info.
Is there someway to determine the Chrome platform version in order to verify that I can use APIs that are marked v37 and later? If there is an alternative way of verifying that these new parameters are supported by the current install that works as well. My current solution is to check for the existence of a different v37 API which seems to be working, however if there is a sanctioned way that would make me feel a bit better about the whole thing :).
I need to use the 'scopes' portion of this API:
chrome.identity.getAuthToken.
In its Cog Chrome App, François Beaufort is using userAgent with a regex to get the chrome version:
window.alert(
navigator.userAgent.match('Chrome/([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*)')[1]
);
But there is maybe a better way to check if some html/js API are available or not...
Try adding a minimum version to your manifest, so you don't even have to check in your code. This will prevent the app from webstore installs who are on older versions.
"minimum_chrome_version": "37",
I'm now trying to add a new language for Anysoftkeyboard.
But I don't quite sure how create a language wordlist and make it a language package for Anysoftkeyboard.
I'm now creating a Binary Dictionaries as this URL but don't know what the next step is.
Could anyone be so kind to tell me the steps of add a new language to AnysoftKeyboard?
Besides I download the database from here and what I trying to add is Chinese and Vietnamese.
Other method for making a Android softkeyboard is also appreciated.
You can create an android app language pack for AnySoftKeyboard https://github.com/azzamsa/LanguagePack
You need to put the new binary dictionary in the assets/path, and add a similar entry into res/xml/dictionaries.xml: dictionaryAssertName="dict.mp3".
You may find a full example of a language pack here :
https://github.com/ludovig/vimboard/tree/master/android-vimboard-ask
I'm using AIDE to clone package and build it on my android device.
I want to submit my app on app store.All step i understand well But little confusing about version Number.I have following query.
1- Is it compulsory to put version number numeric only like e.g- 1.0,1.1 etc?
2- Can we put any text instead numeric value on the version number like e.g- hair style, maintain body?
Thanks in advance.
Here is the guide
It says this about the version number:
Numbering should follow typical software versioning conventions (for example, 1.0 or 1.0.1, or 1.1).
"MyApp v.maintain body" makes no sense and cannot be compared for update notifications, etc.