File tree Expand file tree Collapse file tree 4 files changed +9
-18
lines changed
google_api_availability_android
src/main/java/com/baseflow/googleapiavailability Expand file tree Collapse file tree 4 files changed +9
-18
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.0.2
2
+
3
+ * Fixes compile errors for Flutter 3.29.0 (and above)
4
+ * updates compileSDK to 35
5
+ * updates gradle version to 8.1
6
+
1
7
## 1.0.1
2
8
3
9
* Adds support for the namespace property to support Android Gradle Plugin (AGP) 8.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ buildscript {
8
8
}
9
9
10
10
dependencies {
11
- classpath ' com.android.tools.build:gradle:4 .1.0'
11
+ classpath ' com.android.tools.build:gradle:8 .1.0'
12
12
}
13
13
}
14
14
@@ -27,7 +27,7 @@ android {
27
27
namespace ' com.baseflow.googleapiavailability'
28
28
}
29
29
30
- compileSdkVersion 31
30
+ compileSdkVersion 35
31
31
32
32
compileOptions {
33
33
sourceCompatibility JavaVersion . VERSION_1_8
Original file line number Diff line number Diff line change 8
8
import io .flutter .embedding .engine .plugins .activity .ActivityPluginBinding ;
9
9
import io .flutter .plugin .common .BinaryMessenger ;
10
10
import io .flutter .plugin .common .MethodChannel ;
11
- import io .flutter .plugin .common .PluginRegistry .Registrar ;
12
11
import io .flutter .plugin .common .PluginRegistry .ViewDestroyListener ;
13
12
import io .flutter .view .FlutterNativeView ;
14
13
@@ -55,20 +54,6 @@ public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
55
54
unregisterPlugin ();
56
55
}
57
56
58
- public static void registerWith (Registrar registrar ) {
59
- final GoogleApiAvailabilityPlugin plugin = new GoogleApiAvailabilityPlugin ();
60
- plugin .registerPlugin (registrar .context (), registrar .messenger ());
61
- plugin .methodCallHandler .setActivity (registrar .activity ());
62
-
63
- registrar .addViewDestroyListener (new ViewDestroyListener () {
64
- @ Override
65
- public boolean onViewDestroy (FlutterNativeView view ) {
66
- plugin .unregisterPlugin ();
67
- return false ;
68
- }
69
- });
70
- }
71
-
72
57
private void registerPlugin (Context context , BinaryMessenger messenger ) {
73
58
methodCallHandler = new MethodCallHandlerImpl (context , googleApiAvailabilityManager );
74
59
channel = new MethodChannel (messenger , "flutter.baseflow.com/google_api_availability_android/methods" );
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: An Android implementation for the google_api_availability plugin.
3
3
repository : https://github.com/baseflow/flutter-google-api-availability/tree/main/google_api_availability_android
4
4
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
5
5
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
6
- version : 1.0.1
6
+ version : 1.0.2
7
7
8
8
flutter :
9
9
plugin :
You can’t perform that action at this time.
0 commit comments