File tree 6 files changed +16
-12
lines changed
android/src/main/java/com/baseflow/geocoding
6 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,16 @@ jobs:
32
32
# Make sure the stable version of Flutter is available
33
33
- uses : subosito/flutter-action@v1
34
34
with :
35
- channel : ' beta '
35
+ channel : ' stable '
36
36
37
- # Download all Flutter packages the geocoding depends on
37
+ # Download all Flutter packages
38
38
- name : Download dependencies
39
39
run : flutter pub get
40
40
working-directory : ${{env.source-directory}}
41
41
42
42
# Run Flutter Format to ensure formatting is valid
43
43
- name : Run Flutter Format
44
- run : flutter format --set-exit-if-changed lib
44
+ run : flutter format --set-exit-if-changed .
45
45
working-directory : ${{env.source-directory}}
46
46
47
47
# Run Flutter Analyzer
Original file line number Diff line number Diff line change 1
1
## 2.0.3
2
- - Upgrade compileSdkVersion to 31
2
+
3
+ - Upgrades ` compileSdkVersion ` to ` 31 ` on Android.
4
+ - Resolves Android embedding deprecation warning.
3
5
4
6
## 2.0.2
5
- - Migrate maven repository from jcenter to mavenCentral
7
+
8
+ - Migrate maven repository from jcenter to mavenCentral.
6
9
7
10
## 2.0.1
8
11
Original file line number Diff line number Diff line change 4
4
import androidx .annotation .NonNull ;
5
5
import androidx .annotation .Nullable ;
6
6
import io .flutter .embedding .engine .plugins .FlutterPlugin ;
7
- import io .flutter .plugin .common .PluginRegistry .Registrar ;
8
7
9
8
/**
10
9
* Plugin implementation that uses the new {@code io.flutter.embedding} package.
@@ -20,10 +19,11 @@ public final class GeocodingPlugin implements FlutterPlugin {
20
19
* Registers a plugin implementation that uses the stable {@code io.flutter.plugin.common}
21
20
* package.
22
21
*
23
- * <p>Calling this automatically initializes the plugin. However plugins initialized this way
22
+ * <p>Calling this automatically initializes the plugin. However, plugins initialized this way
24
23
* won't react to changes in activity or context, unlike {@link GeocodingPlugin}.
25
24
*/
26
- public static void registerWith (Registrar registrar ) {
25
+ @ SuppressWarnings ("deprecation" )
26
+ public static void registerWith (io .flutter .plugin .common .PluginRegistry .Registrar registrar ) {
27
27
MethodCallHandlerImpl handler =
28
28
new MethodCallHandlerImpl (new Geocoding (registrar .activeContext ()));
29
29
handler .startListening (registrar .messenger ());
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27
27
android {
28
28
compileSdkVersion 31
29
29
30
+ // Temporary add ndkVersion because GitHub CI is failing
31
+ // TODO (mvanbeusekom): Remove once NDK version 23 is supported
32
+ ndkVersion " 22.1.7171670"
33
+
30
34
lintOptions {
31
35
disable ' InvalidPackage'
32
36
}
Original file line number Diff line number Diff line change 6
6
additional functionality it is fine to subclass or reimplement
7
7
FlutterApplication and put your custom class here. -->
8
8
<application
9
- android : name =" io.flutter.app.FlutterApplication "
9
+ android : name =" ${applicationName} "
10
10
android : label =" geocoding_example"
11
11
android : icon =" @mipmap/ic_launcher" >
12
12
<activity
Original file line number Diff line number Diff line change 1
- import 'dart:async' ;
2
-
3
1
import 'package:flutter_test/flutter_test.dart' ;
4
2
import 'package:geocoding/geocoding.dart' ;
5
- import 'package:geocoding_platform_interface/geocoding_platform_interface.dart' ;
6
3
import 'package:mockito/mockito.dart' ;
7
4
import 'package:plugin_platform_interface/plugin_platform_interface.dart' ;
8
5
You can’t perform that action at this time.
0 commit comments