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() {
|
TaskFunction createPlatformServiceDriverTest() {
|
||||||
return new DriverTest(
|
return new DriverTest(
|
||||||
'${flutterDirectory.path}/examples/platform_services',
|
'${flutterDirectory.path}/examples/platform_channel',
|
||||||
'test_driver/button_tap.dart',
|
'test_driver/button_tap.dart',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -83,9 +83,9 @@ tasks:
|
|||||||
stage: devicelab
|
stage: devicelab
|
||||||
required_agent_capabilities: ["has-android-device"]
|
required_agent_capabilities: ["has-android-device"]
|
||||||
|
|
||||||
platform_services_test:
|
platform_channel_test:
|
||||||
description: >
|
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
|
stage: devicelab
|
||||||
required_agent_capabilities: ["has-android-device"]
|
required_agent_capabilities: ["has-android-device"]
|
||||||
|
|
||||||
@ -152,9 +152,9 @@ tasks:
|
|||||||
|
|
||||||
# iOS on-device tests
|
# iOS on-device tests
|
||||||
|
|
||||||
platform_services_test_ios:
|
platform_channel_test_ios:
|
||||||
description: >
|
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
|
stage: devicelab_ios
|
||||||
required_agent_capabilities: ["has-ios-device"]
|
required_agent_capabilities: ["has-ios-device"]
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ Available examples include:
|
|||||||
- **Flutter gallery** The [flutter gallery app](flutter_gallery) showcases
|
- **Flutter gallery** The [flutter gallery app](flutter_gallery) showcases
|
||||||
Flutter's implementation of [material design](https://material.google.com/).
|
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
|
demonstrates how to connect a Flutter app to platform-specific APIs. For
|
||||||
documentation, see https://flutter.io/platform-channels/ .
|
documentation, see https://flutter.io/platform-channels/ .
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectModuleManager">
|
<component name="ProjectModuleManager">
|
||||||
<modules>
|
<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>
|
</modules>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@ -1,5 +1,5 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
<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" />
|
<option name="filePath" value="$PROJECT_DIR$/lib/main.dart" />
|
||||||
<method />
|
<method />
|
||||||
</configuration>
|
</configuration>
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">Platform Services</string>
|
<string name="app_name">Platform Channel</string>
|
||||||
<string name="title">Flutter Application</string>
|
<string name="title">Flutter Application</string>
|
||||||
</resources>
|
</resources>
|
@ -344,7 +344,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Flutter",
|
"$(PROJECT_DIR)/Flutter",
|
||||||
);
|
);
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.PlatformServices;
|
PRODUCT_BUNDLE_IDENTIFIER = com.example.PlatformChannel;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
@ -365,7 +365,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Flutter",
|
"$(PROJECT_DIR)/Flutter",
|
||||||
);
|
);
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.PlatformServices;
|
PRODUCT_BUNDLE_IDENTIFIER = com.example.PlatformChannel;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
@ -2,6 +2,6 @@
|
|||||||
<Workspace
|
<Workspace
|
||||||
version = "1.0">
|
version = "1.0">
|
||||||
<FileRef
|
<FileRef
|
||||||
location = "self:PlatformServices.xcodeproj">
|
location = "self:PlatformChannel.xcodeproj">
|
||||||
</FileRef>
|
</FileRef>
|
||||||
</Workspace>
|
</Workspace>
|
@ -11,7 +11,7 @@
|
|||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>PlatformServices</string>
|
<string>PlatformChannel</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
@ -7,12 +7,12 @@ import 'dart:async';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
|
|
||||||
class PlatformServices extends StatefulWidget {
|
class PlatformChannel extends StatefulWidget {
|
||||||
@override
|
@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');
|
static const PlatformMethodChannel platform = const PlatformMethodChannel('battery');
|
||||||
String _batteryLevel = '';
|
String _batteryLevel = '';
|
||||||
|
|
||||||
@ -49,5 +49,5 @@ class _PlatformServicesState extends State<PlatformServices> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
runApp(new PlatformServices());
|
runApp(new PlatformChannel());
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
name: platform_services
|
name: platform_channel
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
@ -3,7 +3,7 @@
|
|||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
import 'package:flutter_driver/driver_extension.dart';
|
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() {
|
void main() {
|
||||||
enableFlutterDriverExtension();
|
enableFlutterDriverExtension();
|
Loading…
x
Reference in New Issue
Block a user