Rename platform_services to platform_channel (#9018)
* Rename platform_services to platform_channel * rename in README * renamed tests * update modules.xml
This commit is contained in:
parent
eedc5d9f58
commit
d274888be6
@ -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',
|
||||
);
|
||||
}
|
||||
|
@ -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"]
|
||||
|
||||
|
@ -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/ .
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/platform_services.iml" filepath="$PROJECT_DIR$/platform_services.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/platform_channel.iml" filepath="$PROJECT_DIR$/platform_channel.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
</project>
|
@ -1,5 +1,5 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="platform_services" type="FlutterRunConfigurationType" factoryName="Flutter">
|
||||
<configuration default="false" name="platform_channel" type="FlutterRunConfigurationType" factoryName="Flutter">
|
||||
<option name="filePath" value="$PROJECT_DIR$/lib/main.dart" />
|
||||
<method />
|
||||
</configuration>
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Platform Services</string>
|
||||
<string name="app_name">Platform Channel</string>
|
||||
<string name="title">Flutter Application</string>
|
||||
</resources>
|
@ -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;
|
@ -2,6 +2,6 @@
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:PlatformServices.xcodeproj">
|
||||
location = "self:PlatformChannel.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
@ -11,7 +11,7 @@
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>PlatformServices</string>
|
||||
<string>PlatformChannel</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
@ -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<PlatformServices> {
|
||||
class _PlatformChannelState extends State<PlatformChannel> {
|
||||
static const PlatformMethodChannel platform = const PlatformMethodChannel('battery');
|
||||
String _batteryLevel = '';
|
||||
|
||||
@ -49,5 +49,5 @@ class _PlatformServicesState extends State<PlatformServices> {
|
||||
}
|
||||
|
||||
void main() {
|
||||
runApp(new PlatformServices());
|
||||
runApp(new PlatformChannel());
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
name: platform_services
|
||||
name: platform_channel
|
||||
|
||||
dependencies:
|
||||
flutter:
|
@ -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();
|
Loading…
x
Reference in New Issue
Block a user