Posts

Showing posts with the label Build Automation

Automate Android APK Signing using Gulp for React Capacitor App (KeyStore, JarSigner, KeyTool)

Image
Hello , in this article we are going to discuss how we can automate android APK signing process using gulp. If you would like to know how we can automate build process of react-capacitor app you may check   Build Automation for React-Ionic-Capacitor App using Gulp We are going to use same app mentioned above, to create a signed APK. You can check  Ionicframework Playstore deployment  page to basic steps that are involved in this process. As a first step we are going to create the KeyStore file, this step should not be included in automation process as it should be done only once. So let's create. We will use command :  keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 You may change alias name, keystore filename etc as you wish. Once you put the command in command promt or terminal it will ask few details : Password, First Name/Last Name, As you can see keystore file has been saved in pr...

Build Automation for React-Ionic-Capacitor App using Gulp

Image
Hi Everyone, in this article we are going to automate build process of a React-Ionic-Capacitor app using Gulp. If you would like to know how to create a mobile app with React/Ionic/Capacitor combo feel free to visit my previous article  How to Make a Mobile App with React, Ionic and Capacitor I am going to use the same app codebase from above link for this tutorial. Initially my application look like below : As the first step I am going add few dependencies for this process (1) Gulp (2) Child_process I am also installing gulp as global Now we are going to create a file gulpfile.js in the root folder of the project. Below commands we are going to execute one by one by creating gulp task for each: 1. npm run build : to build the project 2. npm cap sync : to sync project with native code 3. gradlew clean : to clean gradle 4. gradlew assembleDebug : to create debug build 5. gradlew assembleRelease : to create release After those we will create a fina...