Skip to content

Commit b009b72

Browse files
committed
Migrate to NNBD
1 parent de16f4c commit b009b72

14 files changed

+104
-585
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: google_api_availability
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the develop branch
7+
on:
8+
push:
9+
branches: [ master ]
10+
pull_request:
11+
branches: [ master ]
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
# Job configuration for the geolocator (App Facing Package)
16+
geolocator:
17+
# The type of runner that the job will run on
18+
runs-on: macos-latest
19+
env:
20+
source-directory: ./
21+
example-directory: ./example
22+
23+
# Steps represent a sequence of tasks that will be executed as part of the job
24+
steps:
25+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26+
- uses: actions/checkout@v2
27+
28+
# Make sure the stable version of Flutter is available
29+
- uses: subosito/flutter-action@v1
30+
with:
31+
channel: 'beta'
32+
33+
# Download all Flutter packages the geolocator depends on
34+
- name: Download dependencies
35+
run: flutter pub get
36+
working-directory: ${{env.source-directory}}
37+
38+
# Run Flutter Format to ensure formatting is valid
39+
- name: Run Flutter Format
40+
run: flutter format --set-exit-if-changed lib
41+
working-directory: ${{env.source-directory}}
42+
43+
# Run Flutter Analyzer
44+
- name: Run Flutter Analyzer
45+
run: flutter analyze
46+
working-directory: ${{env.source-directory}}
47+
48+
# Build Android version of the example app
49+
- name: Run Android build
50+
run: flutter build apk --release
51+
working-directory: ${{env.example-directory}}
52+
53+
# Build iOS version of the example app
54+
- name: Run iOS build
55+
run: flutter build ios --release --no-codesign
56+
working-directory: ${{env.example-directory}}
57+

.travis.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.0.0
2+
3+
* Stable null safety release.
4+
15
## 2.0.4
26

37
* Android: Depend on GMS base instead of location;

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# Flutter Google Api Availability Plugin
22

3-
[![pub package](https://img.shields.io/pub/v/google_api_availability.svg)](https://pub.dartlang.org/packages/google_api_availability)
3+
[![pub package](https://img.shields.io/pub/v/google_api_availability.svg)](https://pub.dartlang.org/packages/google_api_availability) ![Build status](https://github.com/Baseflow/flutter-google-api-availability/workflows/google_api_availability/badge.svg?branch=master)
44

55
A Flutter plugin to check the availability of Google Play services on the current device.
66

7-
Branch | Build Status
8-
------- | ------------
9-
develop | [![Build Status](https://travis-ci.com/BaseflowIT/flutter-google-api-availability.svg?branch=develop)](https://travis-ci.com/BaseflowIT/flutter-google-api-availability)
10-
master | [![Build Status](https://travis-ci.com/BaseflowIT/flutter-google-api-availability.svg?branch=master)](https://travis-ci.com/BaseflowIT/flutter-google-api-availability)
11-
127
## Features
138

149
* Check the availability of Google Play services (on Android only).
@@ -19,7 +14,7 @@ To use this plugin, add `google_api_availability` as a [dependency in your pubsp
1914

2015
```yaml
2116
dependencies:
22-
google_api_availability: ^2.0.4
17+
google_api_availability: ^3.0.0
2318
```
2419
2520
> **NOTE:** There's a known issue with integrating plugins that use Swift into a Flutter project created with the Objective-C template. See issue [Flutter#16049](https://github.com/flutter/flutter/issues/16049) for help on integration.
@@ -44,7 +39,7 @@ import `package:google_api_availability/google_api_availability.dart`;
4439
GooglePlayServicesAvailability availability = await GoogleApiAvailability().checkGooglePlayServicesAvailability(true);
4540
```
4641

47-
**Note that on iOS this will always return false!**
42+
**Note that on iOS this will always return `notAvailableOnPlatform`!**
4843

4944
See also the [example](example/lib/main.dart) project for a complete implementation.
5045

example/ios/Flutter/Debug.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
12
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
23
#include "Generated.xcconfig"
34

example/ios/Flutter/Release.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
12
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
23
#include "Generated.xcconfig"
34

0 commit comments

Comments
 (0)