diff --git a/stream_chat_v1/android/app/src/main/kotlin/com/example/example/Application.kt b/stream_chat_v1/android/app/src/main/kotlin/com/example/example/Application.kt index dd47a03..d32cec4 100644 --- a/stream_chat_v1/android/app/src/main/kotlin/com/example/example/Application.kt +++ b/stream_chat_v1/android/app/src/main/kotlin/com/example/example/Application.kt @@ -4,15 +4,12 @@ import com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin import io.flutter.app.FlutterApplication import io.flutter.plugin.common.PluginRegistry import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback -import io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin -import io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService import io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin import io.flutter.plugins.pathprovider.PathProviderPlugin class Application : FlutterApplication(), PluginRegistrantCallback { override fun onCreate() { super.onCreate() - FlutterFirebaseMessagingService.setPluginRegistrant(this) } override fun registerWith(registry: PluginRegistry?) { @@ -22,6 +19,5 @@ class Application : FlutterApplication(), PluginRegistrantCallback { "io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin")) FlutterLocalNotificationsPlugin.registerWith(registry?.registrarFor( "com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin")) - FirebaseMessagingPlugin.registerWith(registry?.registrarFor("io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin")) } } \ No newline at end of file diff --git a/stream_chat_v1/ios/Flutter/.last_build_id b/stream_chat_v1/ios/Flutter/.last_build_id new file mode 100644 index 0000000..4e6b476 --- /dev/null +++ b/stream_chat_v1/ios/Flutter/.last_build_id @@ -0,0 +1 @@ +15590bfc713ca5ccd71d79a75eb28980 \ No newline at end of file diff --git a/stream_chat_v1/ios/Runner.xcodeproj/project.pbxproj b/stream_chat_v1/ios/Runner.xcodeproj/project.pbxproj index 1e7527e..b104218 100644 --- a/stream_chat_v1/ios/Runner.xcodeproj/project.pbxproj +++ b/stream_chat_v1/ios/Runner.xcodeproj/project.pbxproj @@ -309,27 +309,20 @@ ); inputPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", - "${BUILT_PRODUCTS_DIR}/Starscream-framework/Starscream.framework", - "${BUILT_PRODUCTS_DIR}/StreamChatClient-framework/StreamChatClient.framework", "${BUILT_PRODUCTS_DIR}/DKImagePickerController/DKImagePickerController.framework", "${BUILT_PRODUCTS_DIR}/DKPhotoGallery/DKPhotoGallery.framework", "${BUILT_PRODUCTS_DIR}/FMDB/FMDB.framework", "${PODS_ROOT}/../Flutter/Flutter.framework", - "${BUILT_PRODUCTS_DIR}/GoogleUtilities/GoogleUtilities.framework", - "${BUILT_PRODUCTS_DIR}/PromisesObjC/FBLPromises.framework", - "${BUILT_PRODUCTS_DIR}/Protobuf/Protobuf.framework", "${BUILT_PRODUCTS_DIR}/SDWebImage/SDWebImage.framework", "${BUILT_PRODUCTS_DIR}/SwiftyGif/SwiftyGif.framework", "${BUILT_PRODUCTS_DIR}/esys_flutter_share/esys_flutter_share.framework", "${BUILT_PRODUCTS_DIR}/file_picker/file_picker.framework", - "${BUILT_PRODUCTS_DIR}/flutter_apns/flutter_apns.framework", "${BUILT_PRODUCTS_DIR}/flutter_app_badger/flutter_app_badger.framework", "${BUILT_PRODUCTS_DIR}/flutter_keyboard_visibility/flutter_keyboard_visibility.framework", "${BUILT_PRODUCTS_DIR}/flutter_local_notifications/flutter_local_notifications.framework", "${BUILT_PRODUCTS_DIR}/flutter_secure_storage/flutter_secure_storage.framework", "${BUILT_PRODUCTS_DIR}/image_gallery_saver/image_gallery_saver.framework", "${BUILT_PRODUCTS_DIR}/image_picker/image_picker.framework", - "${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework", "${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework", "${BUILT_PRODUCTS_DIR}/photo_manager/photo_manager.framework", "${BUILT_PRODUCTS_DIR}/shared_preferences/shared_preferences.framework", @@ -343,27 +336,20 @@ ); name = "[CP] Embed Pods Frameworks"; outputPaths = ( - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Starscream.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/StreamChatClient.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DKImagePickerController.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DKPhotoGallery.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FMDB.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleUtilities.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBLPromises.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Protobuf.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftyGif.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/esys_flutter_share.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/file_picker.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_apns.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_app_badger.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_keyboard_visibility.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_local_notifications.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_secure_storage.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/image_gallery_saver.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/image_picker.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/photo_manager.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences.framework", diff --git a/stream_chat_v1/pubspec.yaml b/stream_chat_v1/pubspec.yaml index e5e9f08..dc9af8a 100644 --- a/stream_chat_v1/pubspec.yaml +++ b/stream_chat_v1/pubspec.yaml @@ -11,7 +11,6 @@ dependencies: sdk: flutter stream_chat_flutter: ^1.0.0-beta stream_chat_persistence: ^1.0.0-beta - flutter_apns: ^1.4.1 flutter_local_notifications: ^2.0.2 flutter_svg: ^0.19.1 flutter_secure_storage: ^3.3.5 diff --git a/stream_chat_v1/test_driver/single_conversation.dart b/stream_chat_v1/test_driver/single_conversation.dart deleted file mode 100644 index 28ec8e5..0000000 --- a/stream_chat_v1/test_driver/single_conversation.dart +++ /dev/null @@ -1,9 +0,0 @@ -import 'package:flutter_driver/driver_extension.dart'; - -import '../lib/single_conversation.dart' as app; - -void main() async { - enableFlutterDriverExtension(); - - await app.main(); -} diff --git a/stream_chat_v1/test_driver/single_conversation_test.dart b/stream_chat_v1/test_driver/single_conversation_test.dart deleted file mode 100644 index c4f7b99..0000000 --- a/stream_chat_v1/test_driver/single_conversation_test.dart +++ /dev/null @@ -1,46 +0,0 @@ -import 'dart:io'; - -import 'package:flutter_driver/flutter_driver.dart'; -import 'package:test/test.dart'; - -void main() { - test('Single conversation', () async { - final inputFinder = find.byValueKey('messageInputText'); - final sendButtonFinder = find.byValueKey('sendButton'); - final messageListViewFinder = find.byValueKey('messageListView'); - - FlutterDriver driver = await FlutterDriver.connect(); - // Connect to the Flutter driver before running any tests. - - sleep(Duration(seconds: 5)); - - await driver.waitFor(inputFinder); - - await driver.tap(inputFinder); - - sleep(Duration(seconds: 1)); - - await driver.enterText('hey'); - - sleep(Duration(seconds: 1)); - - await driver.tap(sendButtonFinder); - - sleep(Duration(seconds: 1)); - - await driver.scroll( - messageListViewFinder, - 0, - 2000, - Duration(seconds: 1), - ); - - sleep(Duration(seconds: 1)); - - // Close the connection to the driver after the tests have completed. - sleep(Duration(seconds: 5)); - if (driver != null) { - await driver.close(); - } - }); -}