Skip to content

Commit

Permalink
Prefer SSL, but fall back to TCP if not available.
Browse files Browse the repository at this point in the history
`coins_config_ssl` delists coins without SSL support whereas `coins_config_tcp` favours SSL but falls back to TCP if not available.
  • Loading branch information
CharlVS committed May 3, 2024
1 parent 2ea0013 commit 6d0a85d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
File renamed without changes.
7 changes: 5 additions & 2 deletions lib/app_config/coins_updater.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ class CoinUpdater {

static const isUpdateEnabled = true;

final String localAssetPathConfig = 'assets/coins_config_ssl.json';
final String localAssetPathConfig = 'assets/coins_config_tcp.json';
final String localAssetPathCoins = 'assets/coins.json';

// coins_config_tcp.json prefers SSL where available, but falls back to TCP
// when SSL is not available.
//Monitor post-release and revert in case expired certs area a common issue.
String get remotePathConfig =>
'$coinsRepoUrl/$coinsRepoBranch/utils/coins_config_ssl.json';
'$coinsRepoUrl/$coinsRepoBranch/utils/coins_config_tcp.json';
String get remotePathCoins => '$coinsRepoUrl/$coinsRepoBranch/coins';

String _cachedConfig;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ flutter:
- assets/svg_light/
- assets/swap_share/
- assets/coins.json
- assets/coins_config_ssl.json
- assets/coins_config_tcp.json
- assets/rebranding/

# The following line ensures that the Material Icons font is
Expand Down

0 comments on commit 6d0a85d

Please sign in to comment.