What are the benefits of using gradle in AndroidStudio
This article mainly introduces the advantages of using gradle in AndroidStudio. It is very detailed and has certain reference value. Friends who are interested must finish reading it.
AndroidStudio uses gradle for project construction, which makes it much more convenient for us to develop app. Today, I will list a few points that are convenient to use gradle.
First, AndroidStudio Gradle third relies on unified management
Second, AndroidStudio Gradle based on the multi-channel packaging of friendly alliance.
3. AndroidStudio Security Management signature File keystroe and signature password
When we use AndroidStudio for release version of apk signature, we often put the signature file keystore in the project, the password is written in build.gradle, and the keystore and password are uploaded to the Git repository with the code, which is often very insecure because it is obtained.
This is to modify the build.gradle signature configuration in the previous app
So how can we manage our keystore and passwords more securely? Today I will teach you how to implement the security management of keystroe.
First of all, we create a new "keystore.properties" file under project and configure the absolute path and password, aliases and other information of the keystroe.
Next, we configure the signature information in build.gradle in three steps.
Modified configuration
The above three steps are
Step 1: create a file input stream FileInputStream to get the keystore.properties file stream
Step 2: get the configuration content of keystore.properties through the input stream
The third cloth: citation signature
How can that side show that it is safer than before? In fact, there is still one step left to do? Add keystore.properties to ignore so that the keystore.properties file is not uploaded to the git repository, isolating the sensitive information of the signature from the code uploaded to the git repository, so that our signature information is secure.
The above is all the content of the article "what are the benefits of AndroidStudio using gradle?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!