minor fixes

This commit is contained in:
Serhii 2023-01-26 20:05:09 +02:00
parent 5ef568ec50
commit 6825b6e625
3 changed files with 2 additions and 3 deletions

View file

@ -110,6 +110,7 @@ jobs:
echo "const onramperApiKey = '${{ secrets.ONRAMPER_API_KEY }}';" >> lib/.secrets.g.dart
echo "const anypayToken = '${{ secrets.ANY_PAY_TOKEN }}';" >> lib/.secrets.g.dart
echo "const ioniaClientId = '${{ secrets.IONIA_CLIENT_ID }}';" >> lib/.secrets.g.dart
echo "const ioniaClientId = '${{ secrets.TWITTER_BEARER_TOKEN }}';" >> lib/.secrets.g.dart
- name: Rename app
run: sed -i -e "s/\${APP_NAME}/$GITHUB_HEAD_REF/g" /opt/android/cake_wallet/android/app/src/main/AndroidManifest.xml

View file

@ -12,7 +12,7 @@ class TwitterApi {
static Future<TwitterUser> lookupUserByName({required String userName}) async {
final queryParams = {'user.fields': 'description'};
final headers = {'authorization': 'Bearer ${secrets.twitterBearerToken}'};
final headers = {'authorization': 'Bearer $twitterBearerToken'};
final uri = Uri(
scheme: httpsScheme,

View file

@ -29,8 +29,6 @@ class SecretKey {
SecretKey('anypayToken', () => ''),
SecretKey('onramperApiKey', () => ''),
SecretKey('ioniaClientId', () => ''),
SecretKey('twitterAPIKey', () => ''),
SecretKey('twitterAPIKeySecret', () => ''),
SecretKey('twitterBearerToken', () => ''),
];