- Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
| apply from: rootProject.file('read_secrets.gradle') | |
| apply plugin: 'com.android.application' | |
| .... | |
| android { | |
| defaultConfig { | |
| buildConfigField 'String', 'SOMETHING_SECRET', getEnvVariable('SOMETHING_SECRET') | |
| } | |
| signingConfigs { |
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
| public class AccountAuthenticator extends AbstractAccountAuthenticator { | |
| private final Context context; | |
| @Inject @ClientId String clientId; | |
| @Inject @ClientSecret String clientSecret; | |
| @Inject ApiService apiService; | |
| public AccountAuthenticator(Context context) { | |
| super(context); |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/