Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 31
compileSdkVersion 33

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand Down
8 changes: 4 additions & 4 deletions lib/services/ssh_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import 'package:get_it/get_it.dart';
import 'package:satnogs_visualization_tool/entities/ssh_entity.dart';
import 'package:satnogs_visualization_tool/services/settings_service.dart';
import 'package:ssh/ssh.dart';
import 'package:ssh2/ssh2.dart';

/// Service that deals with the SSH management.
class SSHService {
Expand Down Expand Up @@ -38,7 +38,7 @@ class SSHService {
/// Connects to the current client, executes a command into it and then
/// disconnects.
Future<String?> execute(String command) async {
String result = await connect();
String? result = await connect();

String? execResult;

Expand All @@ -51,7 +51,7 @@ class SSHService {
}

/// Connects to a machine using the current client.
Future<String> connect() async {
Future<String?> connect() async {
return _client.connect();
}

Expand All @@ -65,7 +65,7 @@ class SSHService {
/// then disconnects.
Future<void> upload(String filePath) async {
await connect();
String result = await _client.connectSFTP();
String? result = await _client.connectSFTP();

if (result == 'sftp_connected') {
await _client.sftpUpload(
Expand Down
Loading