Answers for "ionic release android"

3

ionic publish

// generate .keystore file
keytool -genkey -v -keystore app.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
// sign the apk
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore app.keystore app-release-unsigned.apk alias_name
// zip the apk
zipalign -v 4 app-release-unsigned.apk ReleaseSigned.apk
Posted by: Guest on May-08-2020
2

ionic project version

you can always do npm list ionic-angular should give you the version 
of ionic you project is using
Posted by: Guest on February-01-2021
0

ionic get current app version

import { AppVersion } from '@ionic-native/app-version';
export class appVersion {
   public version;

   constructor(private appVersion: AppVersion) { 
    this.platform.ready().then(()=> {
       this.appVersion.getVersionNumber().then((res)=>{
        console.log(res); 
       }, (err)=>{
        console.log(err); 
       });
    }); 
   }
}
Posted by: Guest on December-20-2020
0

publish ionic app

STEP 1
To generate a release build for Android, we can use the following cordova cli command:
$ ionic cordova build --release android

STEP 2
If you already have a signing key, skip these steps and use that one instead.
Let’s generate our private key using the keytool command that comes with the JDK. If this tool isn’t found, refer to the installation guide:
$ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

STEP 3
To sign the unsigned APK, run the jarsigner tool which is also included in the JDK:
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name
Posted by: Guest on May-12-2020

Browse Popular Code Answers by Language