From 276f97427ddf9db2bdb01586db292fba9399c6ce Mon Sep 17 00:00:00 2001 From: Rody Davis Date: Fri, 24 May 2019 14:20:18 -0400 Subject: [PATCH] moving to flutter comm --- CHANGELOG.md | 33 +++++ README.md | 58 +++++++- android/.classpath | 0 android/.gitignore | 0 android/.idea/.name | 0 android/.idea/caches/build_file_checksums.ser | Bin 494 -> 494 bytes android/.idea/codeStyles/Project.xml | 0 android/.idea/gradle.xml | 3 + android/.idea/misc.xml | 14 +- android/.idea/modules.xml | 1 + android/.idea/runConfigurations.xml | 0 android/.project | 0 .../org.eclipse.buildship.core.prefs | 2 +- android/app/build.gradle | 62 -------- android/app/src/main/AndroidManifest.xml | 39 ----- .../appleeducate/fluttersms/MainActivity.java | 13 -- .../main/res/drawable/launch_background.xml | 12 -- .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 544 -> 0 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 442 -> 0 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 721 -> 0 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 1031 -> 0 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 1443 -> 0 bytes android/app/src/main/res/values/styles.xml | 8 - android/build.gradle | 13 +- android/gradle.properties | 0 android/gradle/wrapper/gradle-wrapper.jar | Bin .../gradle/wrapper/gradle-wrapper.properties | 4 +- android/gradlew.bat | 0 android/settings.gradle | 0 android/src/main/AndroidManifest.xml | 0 .../fluttersms/FlutterSmsPlugin.java | 137 +++++++----------- example/android/app/build.gradle | 12 +- .../android/app/src/main/AndroidManifest.xml | 1 - example/android/build.gradle | 2 +- example/android/gradle.properties | 2 + .../gradle/wrapper/gradle-wrapper.properties | 2 +- example/ios/Podfile.lock | 2 +- .../xcshareddata/WorkspaceSettings.xcsettings | 8 + example/lib/main.dart | 74 +++++++++- ios/Classes/SwiftFlutterSmsPlugin.swift | 14 +- lib/flutter_sms.dart | 27 ++-- pubspec.yaml | 9 +- 42 files changed, 292 insertions(+), 260 deletions(-) mode change 100644 => 100755 android/.classpath mode change 100644 => 100755 android/.gitignore mode change 100644 => 100755 android/.idea/.name mode change 100644 => 100755 android/.idea/caches/build_file_checksums.ser mode change 100644 => 100755 android/.idea/codeStyles/Project.xml mode change 100644 => 100755 android/.idea/gradle.xml mode change 100644 => 100755 android/.idea/misc.xml mode change 100644 => 100755 android/.idea/modules.xml mode change 100644 => 100755 android/.idea/runConfigurations.xml mode change 100644 => 100755 android/.project mode change 100644 => 100755 android/.settings/org.eclipse.buildship.core.prefs delete mode 100644 android/app/build.gradle delete mode 100644 android/app/src/main/AndroidManifest.xml delete mode 100644 android/app/src/main/java/com/appleeducate/fluttersms/MainActivity.java delete mode 100644 android/app/src/main/res/drawable/launch_background.xml delete mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher.png delete mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher.png delete mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher.png delete mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png delete mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png delete mode 100644 android/app/src/main/res/values/styles.xml mode change 100644 => 100755 android/build.gradle mode change 100644 => 100755 android/gradle.properties mode change 100644 => 100755 android/gradle/wrapper/gradle-wrapper.jar mode change 100644 => 100755 android/gradle/wrapper/gradle-wrapper.properties mode change 100644 => 100755 android/gradlew.bat mode change 100644 => 100755 android/settings.gradle mode change 100644 => 100755 android/src/main/AndroidManifest.xml mode change 100644 => 100755 android/src/main/java/com/appleeducate/fluttersms/FlutterSmsPlugin.java create mode 100644 example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings 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 1e5713d61348800c297e6533e37aa3f1c145e830..17c39c855ba03b4806ea0811d5691cd6cb090634 GIT binary patch delta 81 zcmV-X0IvV;1MUNmmj!9WEZ&2WoaR07;KoIwQsWQEW4%O nWpZ?BWpj0L0Db@l0000Gi=d!3PJp@}E~sMNseG!?lfMBk4OAnq delta 81 zcmV-X0IvV;1MUNmmjz`)*ow80oaQ}|(*W|Bx~$874Gl*RsdEN&01#|%V_|GAaB^>O nWpZ?BWpj0L0Db@l0000G#$k!AhwHXkn}