diff --git a/CHANGELOG.md b/CHANGELOG.md index f20f910..126a75a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,36 @@ +## 1.0.1 + +* Android result added + +## 1.0.0 * 04.29.2019 + +* Reduce minSdkVersion to 16 +* Fix crash on android when `recipients` is empty (substring on empty string) +* Add `canSendSMS` API + - Checks if device is SMS capable (iOS and Android) + - Checks if `smsto:` Intent is resolved and resulting activity exported (Android) +* sendSMS: Return error when device is not SMS capable (Android) +* Remove unused AndroidX dependency +* Use Intent.ACTION_SENDTO and Intent.EXTRA_TEXT to increase message app support coverage + +## 0.2.0 * 04.06.2019 + +* Updating example to be desktop aware + +## 0.1.0 + +* Fix for Android Multiple People +* Fixes Issues #8 and #4 + +## 0.0.5 + +* Removed SMS Permissions on Android + +## 0.0.4 + +* Bug Fix Send Result +* Added Can Send Text + ## 0.0.3 * Bug Fix for iOS Simulator Error diff --git a/README.md b/README.md index 1b78a2d..d7fc234 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,59 @@ +[![Buy Me A Coffee](https://img.shields.io/badge/Donate-Buy%20Me%20A%20Coffee-yellow.svg)](https://www.buymeacoffee.com/rodydavis) +[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WSH3GVC49GNNJ) + # flutter_sms -

The flutter_sms plugin was moved to plugins/packages/flutter_sms

+![alt-text-1](https://github.com/AppleEducate/flutter_sms/blob/master/screenshots/ios_blank.PNG) + +## Description + +Flutter Plugin for sending SMS and MMS on Android and iOS. If you send to more than one person it will send as MMS. On the iOS if the number is an iPhone and iMessage is enabled it will send as an iMessage. + +## How To Use + +You can send multiple ways: + +1. Message and No People +2. People and No Message +3. Message and People + +This will populate the correct fields. + + +## Example + +Make sure to Install and Import the Package. + +``` dart +import 'package:flutter_sms/flutter_sms.dart'; +``` + +Create a function for sending messages. + +``` dart +void _sendSMS(String message, List recipents) async { + String _result = await FlutterSms + .sendSMS(message: message, recipients: recipents) + .catchError((onError) { + print(onError); + }); +print(_result); +} +``` + +You can quickly send the message with this function. + +``` dart +String message = "This is a test message!"; +List recipents = ["1234567890", "5556787676"]; + +_sendSMS(message, recipents); +``` + +## Screenshots + +iOS SMS | Android MMS +:-------------------------:|:-------------------------: +![alt-text-1](https://github.com/AppleEducate/flutter_sms/blob/master/screenshots/ios_sms.PNG) | ![alt-text-2](https://github.com/AppleEducate/flutter_sms/blob/master/screenshots/android_mms.png) + +You can find other [screenshots here](https://github.com/AppleEducate/flutter_sms/tree/master/screenshots). diff --git a/android/.classpath b/android/.classpath old mode 100644 new mode 100755 diff --git a/android/.gitignore b/android/.gitignore old mode 100644 new mode 100755 diff --git a/android/.idea/.name b/android/.idea/.name old mode 100644 new mode 100755 diff --git a/android/.idea/caches/build_file_checksums.ser b/android/.idea/caches/build_file_checksums.ser old mode 100644 new mode 100755 index 1e5713d..17c39c8 Binary files a/android/.idea/caches/build_file_checksums.ser and b/android/.idea/caches/build_file_checksums.ser differ diff --git a/android/.idea/codeStyles/Project.xml b/android/.idea/codeStyles/Project.xml old mode 100644 new mode 100755 diff --git a/android/.idea/gradle.xml b/android/.idea/gradle.xml old mode 100644 new mode 100755 index 47bd81f..7159109 --- a/android/.idea/gradle.xml +++ b/android/.idea/gradle.xml @@ -3,6 +3,9 @@