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