Skip to content

Commit b9c7fb1

Browse files
Copilot0xrinegade
andcommitted
Fix Flutter SDK build errors: package imports, dependencies, and test files
Co-authored-by: 0xrinegade <[email protected]>
1 parent 3e23984 commit b9c7fb1

File tree

3 files changed

+25
-8
lines changed

3 files changed

+25
-8
lines changed

flutter_sdk/example/integration_test/plugin_integration_test.dart

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,31 @@
1010
import 'package:flutter_test/flutter_test.dart';
1111
import 'package:integration_test/integration_test.dart';
1212

13-
import 'package:flutter_sdk/flutter_sdk.dart';
13+
import 'package:svm_pay/svm_pay.dart';
1414

1515
void main() {
1616
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
1717

18-
testWidgets('getPlatformVersion test', (WidgetTester tester) async {
19-
final FlutterSdk plugin = FlutterSdk();
20-
final String? version = await plugin.getPlatformVersion();
21-
// The version string depends on the host platform running the test, so
22-
// just assert that some non-empty string is returned.
23-
expect(version?.isNotEmpty, true);
18+
testWidgets('SVMPay integration test', (WidgetTester tester) async {
19+
final SVMPay svmPay = SVMPay();
20+
21+
// Test basic SDK functionality
22+
const testRecipient = '11111111111111111111111111111112';
23+
const testAmount = '1.0';
24+
25+
final url = svmPay.createTransferUrl(
26+
testRecipient,
27+
testAmount,
28+
label: 'Test Payment',
29+
message: 'Integration test payment',
30+
);
31+
32+
// Verify URL was generated successfully
33+
expect(url.isNotEmpty, true);
34+
expect(url.contains(testRecipient), true);
35+
expect(url.contains(testAmount), true);
36+
37+
// Clean up
38+
svmPay.dispose();
2439
});
2540
}

flutter_sdk/example/test/widget_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import 'package:flutter/material.dart';
99
import 'package:flutter_test/flutter_test.dart';
1010

11-
import 'package:flutter_sdk_example/main.dart';
11+
import 'package:svm_pay_example/main.dart';
1212

1313
void main() {
1414
testWidgets('Verify Platform version', (WidgetTester tester) async {

flutter_sdk/pubspec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ dependencies:
1717
dev_dependencies:
1818
flutter_test:
1919
sdk: flutter
20+
integration_test:
21+
sdk: flutter
2022
flutter_lints: ^4.0.0
2123

2224
# For information on the generic Dart part of this file, see the

0 commit comments

Comments
 (0)