Skip to content

Commit

Permalink
rename port to flutter-server-port
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 committed Jul 8, 2024
1 parent 2bd7e25 commit c927678
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/lib/src/runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'package:integration_test/integration_test.dart';
import 'package:package_info_plus/package_info_plus.dart';

const MAX_TEST_DURATION_SECS = 24 * 60 * 60;
const serverVersion = '0.0.17';
const serverVersion = '0.0.18';

void initializeTest({Widget? app, Function? callback}) async {
IntegrationTestWidgetsFlutterBinding binding =
Expand Down
6 changes: 3 additions & 3 deletions server/lib/src/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ class FlutterServer {
ABridge aBridge = ABridge();
Map<String, dynamic>? arguments = await aBridge.getArgumentPair();
log('Command line arguments: $arguments');
if (arguments != null && arguments.containsKey('port')) {
log('Command line port value for ios: ${arguments['port']}');
await triggerServer(int.parse(arguments['port']));
if (arguments != null && arguments.containsKey('flutter-server-port')) {
log('Command line port value for ios: ${arguments['flutter-server-port']}');
await triggerServer(int.parse(arguments['flutter-server-port']));
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion server/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: appium_flutter_server
description: "Appium Flutter server using Integration Test package for testing Flutter apps with Appium"
version: 0.0.17
version: 0.0.18
homepage: "https://github.com/AppiumTestDistribution/appium-flutter-server"

environment:
Expand Down

0 comments on commit c927678

Please sign in to comment.