Skip to main content

Posts

Showing posts with the label gradle

Build Automation on Android using Jenkins

So basically I’ve been spending time setting up Jenkins for a few reasons. to eliminate the hassle of internal employees bugging me for Android APK files when I’m focusing on doing my work. to ensure that the Android app can be compiled and built in the remote repository. So here are the steps to do automation on an Android project using Jenkins. This is based on the article from Digital Ocean on how to set up Jenkins on their Ubuntu instance.   Read more here ( https://medium.com/@S1lv3rd3m0n/build-automation-on-android-using-jenkins-85649e9f9364 )

How To Generate Signed APK using Gradle in Android Studio

So Android Studio doesn't encourage you to sign your APK the UI way using Android Studio, instead they're directing you to use Gradle to generate it (or in complex cases, there'll be a lot of APKs generated according to different build types and flavors) 1. Declare these inside the android bracket within the gradle file within your main Android project as shown below (while putting your keystore files in your project root directory): signingConfigs{         debug {             storeFile file("example.keystore")             storePassword "example"             keyAlias "example"             keyPassword "example"         }         release {             storeFile file("example-release.keystore")             storePassword "exam...