Commit 203dd6ba by Maurits van Beusekom

Build against stable flutter build

parent 8da89888
......@@ -14,7 +14,7 @@ matrix:
- libstdc++6
- fonts-droid
before_script:
- git clone --single-branch --branch dev https://github.com/flutter/flutter.git $HOME/flutter
- git clone --single-branch --branch stable https://github.com/flutter/flutter.git $HOME/flutter
- export PATH=$HOME/flutter/bin:$HOME/flutter/bin/cache/dart-sdk/bin:$PATH
- flutter doctor
script:
......
......@@ -34,7 +34,7 @@ class PermissionHandler {
/// Returns a [Future] containing the current permission status for the supplied [PermissionGroup].
Future<PermissionStatus> checkPermissionStatus(
PermissionGroup permission) async {
final String status = await _methodChannel.invokeMethod<String>(
final String status = await _methodChannel.invokeMethod(
'checkPermissionStatus', Codec.encodePermissionGroup(permission));
return Codec.decodePermissionStatus(status);
......@@ -45,7 +45,7 @@ class PermissionHandler {
/// Returns a [Future] containing the current service status for the supplied [PermissionGroup].
Future<ServiceStatus> checkServiceStatus(
PermissionGroup permission) async {
final String status = await _methodChannel.invokeMethod<String>(
final String status = await _methodChannel.invokeMethod(
'checkServiceStatus', Codec.encodePermissionGroup(permission));
return Codec.decodeServiceStatus(status);
......@@ -55,7 +55,7 @@ class PermissionHandler {
///
/// Returns [true] if the app settings page could be opened, otherwise [false] is returned.
Future<bool> openAppSettings() async {
final bool hasOpened = await _methodChannel.invokeMethod<bool>(
final bool hasOpened = await _methodChannel.invokeMethod(
'openAppSettings');
return hasOpened;
......@@ -68,7 +68,7 @@ class PermissionHandler {
List<PermissionGroup> permissions) async {
final String jsonData = Codec.encodePermissionGroups(permissions);
final String status =
await _methodChannel.invokeMethod<String>(
await _methodChannel.invokeMethod(
'requestPermissions', jsonData);
return Codec.decodePermissionRequestResult(status);
......@@ -84,7 +84,7 @@ class PermissionHandler {
return false;
}
final bool shouldShowRationale = await _methodChannel.invokeMethod<bool>(
final bool shouldShowRationale = await _methodChannel.invokeMethod(
'shouldShowRequestPermissionRationale',
Codec.encodePermissionGroup(permission));
......
......@@ -20,7 +20,7 @@ unzip -qq gradle-4.1-bin.zip -d $HOME/gradle-4.1
export GRADLE_HOME=$HOME/gradle-4.1
export PATH=$GRADLE_HOME/bin:$PATH
gradle -v
git clone --single-branch --branch dev https://github.com/flutter/flutter.git $HOME/flutter
git clone --single-branch --branch stable https://github.com/flutter/flutter.git $HOME/flutter
export PATH=$HOME/flutter/bin:$HOME/flutter/bin/cache/dart-sdk/bin:$PATH
flutter doctor
......@@ -5,6 +5,6 @@ brew install ideviceinstaller
brew install ios-deploy
pod repo update
gem update cocoapods
git clone --single-branch --branch dev https://github.com/flutter/flutter.git $HOME/flutter
git clone --single-branch --branch stable https://github.com/flutter/flutter.git $HOME/flutter
export PATH=$HOME/flutter/bin:$HOME/flutter/bin/cache/dart-sdk/bin:$PATH
flutter doctor
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment