In JavaScript there is no better way:
var isInt = function (x) {
return (typeof Number(x) === 'number') && (x % 1 === 0);
}
var isInt = function (x) {
return (typeof Number(x) === 'number') && (x % 1 === 0);
}
cordova plugin rm cordova-plugin-console
cordova build --release android
If you have already the key then skip this step (keep in mind to save that file, otherwise you can not update your app).
keytool -genkey -v -keystore my-release-key.keystore -alias myApp -keyalg RSA -keysize 2048 -validity 10000
(if you can't remember the information you put in there you can run this command)
keytool -keystore formconnect.keystore -list -v
Go to the /platform/android/build/outputs/apk/ and copy the file android-release-unsigned.apk to root foldercd to root folder
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore android-release-unsigned.apk myApp
copy my-release-key.keystore and android-release-unsigned.apk to android-sdk-linux version folder (android-sdk-linux/build-tools -> select the version you want)
cd to that folder
./zipalign -v 4 android-release-unsigned.apk myApp.apk
After you have done this, you can upload it to google play store.sudo npm install -g cordova
download android sdk (go down to "SDK only"):ionic start app_name blank
Selecting "blank" gives you a blank project. Optionally you can also choose "tabs", or "sidemenu".ionic platform add android
makegit clone https://github.com/microsoft/vscode
cd vscode && npm install -g mocha gulp
./scripts/npm.sh install --arch=x64
# for 32bit Linux
#./scripts/npm.sh install --arch=ia32
In order to run it type in this code:./scripts/code.sh
.linebreakWithCSS {
display: block;
white-space: pre;
content: "Line 1 \ALine 2\A...";
}