From d274888be605836d364d840b38345fb95c6fa12d Mon Sep 17 00:00:00 2001 From: Sarah Zakarias Date: Mon, 27 Mar 2017 11:17:31 +0200 Subject: [PATCH] Rename platform_services to platform_channel (#9018) * Rename platform_services to platform_channel * rename in README * renamed tests * update modules.xml --- ...form_services_test.dart => platform_channel_test.dart} | 0 ...vices_test_ios.dart => platform_channel_test_ios.dart} | 0 dev/devicelab/lib/tasks/perf_tests.dart | 2 +- dev/devicelab/manifest.yaml | 8 ++++---- examples/README.md | 2 +- .../{platform_services => platform_channel}/.gitignore | 0 .../.idea/modules.xml | 4 ++-- .../.idea/runConfiguration/platform_services.xml | 2 +- .../{platform_services => platform_channel}/README.md | 0 .../android/.gitignore | 0 .../android/app/.gitignore | 0 .../android/app/build.gradle | 0 .../java/com/example/flutter/ExampleInstrumentedTest.java | 0 .../android/app/src/main/AndroidManifest.xml | 0 .../src/main/java/com/example/flutter/MainActivity.java | 0 .../android/app/src/main/res/values/strings.xml | 2 +- .../android/build.gradle | 0 .../android/buildSrc/build.gradle | 0 .../resources/META-INF/gradle-plugins/flutter.properties | 0 .../android/gradle.properties | 0 .../android/settings.gradle | 0 .../ios/.gitignore | 0 .../ios/Flutter/AppFrameworkInfo.plist | 0 .../ios/Flutter/Flutter.xcconfig | 0 .../ios/Runner.xcodeproj/project.pbxproj | 4 ++-- .../project.xcworkspace/contents.xcworkspacedata | 2 +- .../ios/Runner/AppDelegate.h | 0 .../ios/Runner/AppDelegate.m | 0 .../Assets.xcassets/AppIcon.appiconset/Contents.json | 0 .../ios/Runner/Base.lproj/LaunchScreen.storyboard | 0 .../ios/Runner/Base.lproj/Main.storyboard | 0 .../ios/Runner/Info.plist | 2 +- .../ios/Runner/main.m | 0 .../{platform_services => platform_channel}/lib/main.dart | 8 ++++---- .../platform_services.iml | 0 .../{platform_services => platform_channel}/pubspec.yaml | 2 +- .../test_driver/button_tap.dart | 2 +- .../test_driver/button_tap_test.dart | 0 38 files changed, 20 insertions(+), 20 deletions(-) rename dev/devicelab/bin/tasks/{platform_services_test.dart => platform_channel_test.dart} (100%) rename dev/devicelab/bin/tasks/{platform_services_test_ios.dart => platform_channel_test_ios.dart} (100%) rename examples/{platform_services => platform_channel}/.gitignore (100%) rename examples/{platform_services => platform_channel}/.idea/modules.xml (53%) rename examples/{platform_services => platform_channel}/.idea/runConfiguration/platform_services.xml (58%) rename examples/{platform_services => platform_channel}/README.md (100%) rename examples/{platform_services => platform_channel}/android/.gitignore (100%) rename examples/{platform_services => platform_channel}/android/app/.gitignore (100%) rename examples/{platform_services => platform_channel}/android/app/build.gradle (100%) rename examples/{platform_services => platform_channel}/android/app/src/androidTest/java/com/example/flutter/ExampleInstrumentedTest.java (100%) rename examples/{platform_services => platform_channel}/android/app/src/main/AndroidManifest.xml (100%) rename examples/{platform_services => platform_channel}/android/app/src/main/java/com/example/flutter/MainActivity.java (100%) rename examples/{platform_services => platform_channel}/android/app/src/main/res/values/strings.xml (68%) rename examples/{platform_services => platform_channel}/android/build.gradle (100%) rename examples/{platform_services => platform_channel}/android/buildSrc/build.gradle (100%) rename examples/{platform_services => platform_channel}/android/buildSrc/src/main/resources/META-INF/gradle-plugins/flutter.properties (100%) rename examples/{platform_services => platform_channel}/android/gradle.properties (100%) rename examples/{platform_services => platform_channel}/android/settings.gradle (100%) rename examples/{platform_services => platform_channel}/ios/.gitignore (100%) rename examples/{platform_services => platform_channel}/ios/Flutter/AppFrameworkInfo.plist (100%) rename examples/{platform_services => platform_channel}/ios/Flutter/Flutter.xcconfig (100%) rename examples/{platform_services => platform_channel}/ios/Runner.xcodeproj/project.pbxproj (99%) rename examples/{platform_services => platform_channel}/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata (67%) rename examples/{platform_services => platform_channel}/ios/Runner/AppDelegate.h (100%) rename examples/{platform_services => platform_channel}/ios/Runner/AppDelegate.m (100%) rename examples/{platform_services => platform_channel}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename examples/{platform_services => platform_channel}/ios/Runner/Base.lproj/LaunchScreen.storyboard (100%) rename examples/{platform_services => platform_channel}/ios/Runner/Base.lproj/Main.storyboard (100%) rename examples/{platform_services => platform_channel}/ios/Runner/Info.plist (97%) rename examples/{platform_services => platform_channel}/ios/Runner/main.m (100%) rename examples/{platform_services => platform_channel}/lib/main.dart (85%) rename examples/{platform_services => platform_channel}/platform_services.iml (100%) rename examples/{platform_services => platform_channel}/pubspec.yaml (88%) rename examples/{platform_services => platform_channel}/test_driver/button_tap.dart (84%) rename examples/{platform_services => platform_channel}/test_driver/button_tap_test.dart (100%) diff --git a/dev/devicelab/bin/tasks/platform_services_test.dart b/dev/devicelab/bin/tasks/platform_channel_test.dart similarity index 100% rename from dev/devicelab/bin/tasks/platform_services_test.dart rename to dev/devicelab/bin/tasks/platform_channel_test.dart diff --git a/dev/devicelab/bin/tasks/platform_services_test_ios.dart b/dev/devicelab/bin/tasks/platform_channel_test_ios.dart similarity index 100% rename from dev/devicelab/bin/tasks/platform_services_test_ios.dart rename to dev/devicelab/bin/tasks/platform_channel_test_ios.dart diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index 4d73d77cee..a63ade4d69 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -13,7 +13,7 @@ import '../framework/utils.dart'; TaskFunction createPlatformServiceDriverTest() { return new DriverTest( - '${flutterDirectory.path}/examples/platform_services', + '${flutterDirectory.path}/examples/platform_channel', 'test_driver/button_tap.dart', ); } diff --git a/dev/devicelab/manifest.yaml b/dev/devicelab/manifest.yaml index 7f0d44d3b3..2a8960aab9 100644 --- a/dev/devicelab/manifest.yaml +++ b/dev/devicelab/manifest.yaml @@ -83,9 +83,9 @@ tasks: stage: devicelab required_agent_capabilities: ["has-android-device"] - platform_services_test: + platform_channel_test: description: > - Runs a driver test on the Platform Services sample app on Android. + Runs a driver test on the Platform Channel sample app on Android. stage: devicelab required_agent_capabilities: ["has-android-device"] @@ -152,9 +152,9 @@ tasks: # iOS on-device tests - platform_services_test_ios: + platform_channel_test_ios: description: > - Runs a driver test on the Platform Services sample app on iOS. + Runs a driver test on the Platform Channel sample app on iOS. stage: devicelab_ios required_agent_capabilities: ["has-ios-device"] diff --git a/examples/README.md b/examples/README.md index a471385cc4..2aa1d48c8a 100644 --- a/examples/README.md +++ b/examples/README.md @@ -25,7 +25,7 @@ Available examples include: - **Flutter gallery** The [flutter gallery app](flutter_gallery) showcases Flutter's implementation of [material design](https://material.google.com/). -- **Platform Services** The [platform services app](platform_services) +- **Platform Channel** The [platform channel app](platform_channel) demonstrates how to connect a Flutter app to platform-specific APIs. For documentation, see https://flutter.io/platform-channels/ . diff --git a/examples/platform_services/.gitignore b/examples/platform_channel/.gitignore similarity index 100% rename from examples/platform_services/.gitignore rename to examples/platform_channel/.gitignore diff --git a/examples/platform_services/.idea/modules.xml b/examples/platform_channel/.idea/modules.xml similarity index 53% rename from examples/platform_services/.idea/modules.xml rename to examples/platform_channel/.idea/modules.xml index 4da8abfb38..65b2dcbcc1 100644 --- a/examples/platform_services/.idea/modules.xml +++ b/examples/platform_channel/.idea/modules.xml @@ -2,7 +2,7 @@ - + - \ No newline at end of file + diff --git a/examples/platform_services/.idea/runConfiguration/platform_services.xml b/examples/platform_channel/.idea/runConfiguration/platform_services.xml similarity index 58% rename from examples/platform_services/.idea/runConfiguration/platform_services.xml rename to examples/platform_channel/.idea/runConfiguration/platform_services.xml index 3c9c19aa3d..4e03f3817e 100644 --- a/examples/platform_services/.idea/runConfiguration/platform_services.xml +++ b/examples/platform_channel/.idea/runConfiguration/platform_services.xml @@ -1,5 +1,5 @@ - + diff --git a/examples/platform_services/README.md b/examples/platform_channel/README.md similarity index 100% rename from examples/platform_services/README.md rename to examples/platform_channel/README.md diff --git a/examples/platform_services/android/.gitignore b/examples/platform_channel/android/.gitignore similarity index 100% rename from examples/platform_services/android/.gitignore rename to examples/platform_channel/android/.gitignore diff --git a/examples/platform_services/android/app/.gitignore b/examples/platform_channel/android/app/.gitignore similarity index 100% rename from examples/platform_services/android/app/.gitignore rename to examples/platform_channel/android/app/.gitignore diff --git a/examples/platform_services/android/app/build.gradle b/examples/platform_channel/android/app/build.gradle similarity index 100% rename from examples/platform_services/android/app/build.gradle rename to examples/platform_channel/android/app/build.gradle diff --git a/examples/platform_services/android/app/src/androidTest/java/com/example/flutter/ExampleInstrumentedTest.java b/examples/platform_channel/android/app/src/androidTest/java/com/example/flutter/ExampleInstrumentedTest.java similarity index 100% rename from examples/platform_services/android/app/src/androidTest/java/com/example/flutter/ExampleInstrumentedTest.java rename to examples/platform_channel/android/app/src/androidTest/java/com/example/flutter/ExampleInstrumentedTest.java diff --git a/examples/platform_services/android/app/src/main/AndroidManifest.xml b/examples/platform_channel/android/app/src/main/AndroidManifest.xml similarity index 100% rename from examples/platform_services/android/app/src/main/AndroidManifest.xml rename to examples/platform_channel/android/app/src/main/AndroidManifest.xml diff --git a/examples/platform_services/android/app/src/main/java/com/example/flutter/MainActivity.java b/examples/platform_channel/android/app/src/main/java/com/example/flutter/MainActivity.java similarity index 100% rename from examples/platform_services/android/app/src/main/java/com/example/flutter/MainActivity.java rename to examples/platform_channel/android/app/src/main/java/com/example/flutter/MainActivity.java diff --git a/examples/platform_services/android/app/src/main/res/values/strings.xml b/examples/platform_channel/android/app/src/main/res/values/strings.xml similarity index 68% rename from examples/platform_services/android/app/src/main/res/values/strings.xml rename to examples/platform_channel/android/app/src/main/res/values/strings.xml index 878e11ff6e..e3aeb2f2fb 100644 --- a/examples/platform_services/android/app/src/main/res/values/strings.xml +++ b/examples/platform_channel/android/app/src/main/res/values/strings.xml @@ -1,5 +1,5 @@ - Platform Services + Platform Channel Flutter Application diff --git a/examples/platform_services/android/build.gradle b/examples/platform_channel/android/build.gradle similarity index 100% rename from examples/platform_services/android/build.gradle rename to examples/platform_channel/android/build.gradle diff --git a/examples/platform_services/android/buildSrc/build.gradle b/examples/platform_channel/android/buildSrc/build.gradle similarity index 100% rename from examples/platform_services/android/buildSrc/build.gradle rename to examples/platform_channel/android/buildSrc/build.gradle diff --git a/examples/platform_services/android/buildSrc/src/main/resources/META-INF/gradle-plugins/flutter.properties b/examples/platform_channel/android/buildSrc/src/main/resources/META-INF/gradle-plugins/flutter.properties similarity index 100% rename from examples/platform_services/android/buildSrc/src/main/resources/META-INF/gradle-plugins/flutter.properties rename to examples/platform_channel/android/buildSrc/src/main/resources/META-INF/gradle-plugins/flutter.properties diff --git a/examples/platform_services/android/gradle.properties b/examples/platform_channel/android/gradle.properties similarity index 100% rename from examples/platform_services/android/gradle.properties rename to examples/platform_channel/android/gradle.properties diff --git a/examples/platform_services/android/settings.gradle b/examples/platform_channel/android/settings.gradle similarity index 100% rename from examples/platform_services/android/settings.gradle rename to examples/platform_channel/android/settings.gradle diff --git a/examples/platform_services/ios/.gitignore b/examples/platform_channel/ios/.gitignore similarity index 100% rename from examples/platform_services/ios/.gitignore rename to examples/platform_channel/ios/.gitignore diff --git a/examples/platform_services/ios/Flutter/AppFrameworkInfo.plist b/examples/platform_channel/ios/Flutter/AppFrameworkInfo.plist similarity index 100% rename from examples/platform_services/ios/Flutter/AppFrameworkInfo.plist rename to examples/platform_channel/ios/Flutter/AppFrameworkInfo.plist diff --git a/examples/platform_services/ios/Flutter/Flutter.xcconfig b/examples/platform_channel/ios/Flutter/Flutter.xcconfig similarity index 100% rename from examples/platform_services/ios/Flutter/Flutter.xcconfig rename to examples/platform_channel/ios/Flutter/Flutter.xcconfig diff --git a/examples/platform_services/ios/Runner.xcodeproj/project.pbxproj b/examples/platform_channel/ios/Runner.xcodeproj/project.pbxproj similarity index 99% rename from examples/platform_services/ios/Runner.xcodeproj/project.pbxproj rename to examples/platform_channel/ios/Runner.xcodeproj/project.pbxproj index 40208dfc2f..808f5f44af 100644 --- a/examples/platform_services/ios/Runner.xcodeproj/project.pbxproj +++ b/examples/platform_channel/ios/Runner.xcodeproj/project.pbxproj @@ -344,7 +344,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.PlatformServices; + PRODUCT_BUNDLE_IDENTIFIER = com.example.PlatformChannel; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; @@ -365,7 +365,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.PlatformServices; + PRODUCT_BUNDLE_IDENTIFIER = com.example.PlatformChannel; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; diff --git a/examples/platform_services/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/examples/platform_channel/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 67% rename from examples/platform_services/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to examples/platform_channel/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 4c42665156..fbf2f430f6 100644 --- a/examples/platform_services/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/examples/platform_channel/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:PlatformChannel.xcodeproj"> diff --git a/examples/platform_services/ios/Runner/AppDelegate.h b/examples/platform_channel/ios/Runner/AppDelegate.h similarity index 100% rename from examples/platform_services/ios/Runner/AppDelegate.h rename to examples/platform_channel/ios/Runner/AppDelegate.h diff --git a/examples/platform_services/ios/Runner/AppDelegate.m b/examples/platform_channel/ios/Runner/AppDelegate.m similarity index 100% rename from examples/platform_services/ios/Runner/AppDelegate.m rename to examples/platform_channel/ios/Runner/AppDelegate.m diff --git a/examples/platform_services/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/examples/platform_channel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from examples/platform_services/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to examples/platform_channel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/examples/platform_services/ios/Runner/Base.lproj/LaunchScreen.storyboard b/examples/platform_channel/ios/Runner/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from examples/platform_services/ios/Runner/Base.lproj/LaunchScreen.storyboard rename to examples/platform_channel/ios/Runner/Base.lproj/LaunchScreen.storyboard diff --git a/examples/platform_services/ios/Runner/Base.lproj/Main.storyboard b/examples/platform_channel/ios/Runner/Base.lproj/Main.storyboard similarity index 100% rename from examples/platform_services/ios/Runner/Base.lproj/Main.storyboard rename to examples/platform_channel/ios/Runner/Base.lproj/Main.storyboard diff --git a/examples/platform_services/ios/Runner/Info.plist b/examples/platform_channel/ios/Runner/Info.plist similarity index 97% rename from examples/platform_services/ios/Runner/Info.plist rename to examples/platform_channel/ios/Runner/Info.plist index 64f7ee4910..e5b912ab32 100644 --- a/examples/platform_services/ios/Runner/Info.plist +++ b/examples/platform_channel/ios/Runner/Info.plist @@ -11,7 +11,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - PlatformServices + PlatformChannel CFBundlePackageType APPL CFBundleShortVersionString diff --git a/examples/platform_services/ios/Runner/main.m b/examples/platform_channel/ios/Runner/main.m similarity index 100% rename from examples/platform_services/ios/Runner/main.m rename to examples/platform_channel/ios/Runner/main.m diff --git a/examples/platform_services/lib/main.dart b/examples/platform_channel/lib/main.dart similarity index 85% rename from examples/platform_services/lib/main.dart rename to examples/platform_channel/lib/main.dart index 63f15c5bcb..3b85f6cd97 100644 --- a/examples/platform_services/lib/main.dart +++ b/examples/platform_channel/lib/main.dart @@ -7,12 +7,12 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -class PlatformServices extends StatefulWidget { +class PlatformChannel extends StatefulWidget { @override - _PlatformServicesState createState() => new _PlatformServicesState(); + _PlatformChannelState createState() => new _PlatformChannelState(); } -class _PlatformServicesState extends State { +class _PlatformChannelState extends State { static const PlatformMethodChannel platform = const PlatformMethodChannel('battery'); String _batteryLevel = ''; @@ -49,5 +49,5 @@ class _PlatformServicesState extends State { } void main() { - runApp(new PlatformServices()); + runApp(new PlatformChannel()); } diff --git a/examples/platform_services/platform_services.iml b/examples/platform_channel/platform_services.iml similarity index 100% rename from examples/platform_services/platform_services.iml rename to examples/platform_channel/platform_services.iml diff --git a/examples/platform_services/pubspec.yaml b/examples/platform_channel/pubspec.yaml similarity index 88% rename from examples/platform_services/pubspec.yaml rename to examples/platform_channel/pubspec.yaml index fd421432b5..b05011cd9e 100644 --- a/examples/platform_services/pubspec.yaml +++ b/examples/platform_channel/pubspec.yaml @@ -1,4 +1,4 @@ -name: platform_services +name: platform_channel dependencies: flutter: diff --git a/examples/platform_services/test_driver/button_tap.dart b/examples/platform_channel/test_driver/button_tap.dart similarity index 84% rename from examples/platform_services/test_driver/button_tap.dart rename to examples/platform_channel/test_driver/button_tap.dart index 35b7d82216..afd333194d 100644 --- a/examples/platform_services/test_driver/button_tap.dart +++ b/examples/platform_channel/test_driver/button_tap.dart @@ -3,7 +3,7 @@ // found in the LICENSE file. import 'package:flutter_driver/driver_extension.dart'; -import 'package:platform_services/main.dart' as app; +import 'package:platform_channel/main.dart' as app; void main() { enableFlutterDriverExtension(); diff --git a/examples/platform_services/test_driver/button_tap_test.dart b/examples/platform_channel/test_driver/button_tap_test.dart similarity index 100% rename from examples/platform_services/test_driver/button_tap_test.dart rename to examples/platform_channel/test_driver/button_tap_test.dart