diff --git a/CHANGELOG.md b/CHANGELOG.md index 41cc7d8..6c03d1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ ## 0.0.1 -* TODO: Describe initial release. +* SMS and MMS for Android and iOS diff --git a/example/test/widget_test.dart b/example/test/widget_test.dart deleted file mode 100644 index 64074c6..0000000 --- a/example/test/widget_test.dart +++ /dev/null @@ -1,25 +0,0 @@ -// This is a basic Flutter widget test. -// To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter -// provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to -// find child widgets in the widget tree, read text, and verify that the values of widget properties -// are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:flutter_sms_example/main.dart'; - -void main() { - testWidgets('Verify Platform version', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(new MyApp()); - - // Verify that platform version is retrieved. - expect( - find.byWidgetPredicate( - (Widget widget) => - widget is Text && widget.data.startsWith('Running on:'), - ), - findsOneWidget); - }); -} diff --git a/lib/flutter_sms.dart b/lib/flutter_sms.dart index 52317f8..c78ef8c 100644 --- a/lib/flutter_sms.dart +++ b/lib/flutter_sms.dart @@ -19,8 +19,8 @@ class FlutterSms { mapData["message"] = message; mapData["recipients"] = recipients; final String result = await _channel.invokeMethod('sendSMS', mapData); - String _log = "SMS Message: $message"; - for (var person in recipients) _log += "\nSent: $person"; + // String _log = "SMS Message: $message"; + // for (var person in recipients) _log += "\nSent: $person"; // final String result = _log; return result; } diff --git a/pubspec.yaml b/pubspec.yaml index 78cc7b9..7433302 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,8 +1,10 @@ name: flutter_sms description: A Flutter plugin for Sending SMS on Android and iOS. version: 0.0.1 -author: -homepage: +author: Rody Davis +homepage: https://github.com/AppleEducate/flutter_sms +environment: + sdk: ">=1.19.0 <2.0.0" dependencies: flutter: diff --git a/test/widget_test.dart b/test/widget_test.dart deleted file mode 100644 index fd0ca02..0000000 --- a/test/widget_test.dart +++ /dev/null @@ -1,29 +0,0 @@ -// This is a basic Flutter widget test. -// To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter -// provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to -// find child widgets in the widget tree, read text, and verify that the values of widget properties -// are correct. - -import 'package:flutter/material.dart'; -// import 'package:flutter_test/flutter_test.dart'; - -// import 'package:flutter_sms/main.dart'; - -void main() { - // testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // // Build our app and trigger a frame. - // await tester.pumpWidget(new MyApp()); - - // // Verify that our counter starts at 0. - // expect(find.text('0'), findsOneWidget); - // expect(find.text('1'), findsNothing); - - // // Tap the '+' icon and trigger a frame. - // await tester.tap(find.byIcon(Icons.add)); - // await tester.pump(); - - // // Verify that our counter has incremented. - // expect(find.text('0'), findsNothing); - // expect(find.text('1'), findsOneWidget); - // }); -}