The first step you performed in this recipe was generating a private key and a keystore with the keytool command-line utility.
For instance, say you have the following instruction:
keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
This does the following:
- You generate a new private key with the -genkey option.
- You create an alias for this key named key with the -alias option.
- You store the private key in a file called key.jks with the -keystore option.
- You specify the size (in bytes) and validity (in days) with the -keysize and -validity options.
A build.gradle file is an Android build configuration file. In Flutter, you generally need to interact with two build.gradle files: one is at the project level, in the android directory, and one is at the app level, in the android/app folder. In order to add the signing configuration, you need the app-level build.gradle file.
The app build.gradle file contains the keystore...