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+
17## 1.0.1
28
39* 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 {
88 }
99
1010 dependencies {
11- classpath ' com.android.tools.build:gradle:4 .1.0'
11+ classpath ' com.android.tools.build:gradle:8 .1.0'
1212 }
1313}
1414
@@ -27,7 +27,7 @@ android {
2727 namespace ' com.baseflow.googleapiavailability'
2828 }
2929
30- compileSdkVersion 31
30+ compileSdkVersion 35
3131
3232 compileOptions {
3333 sourceCompatibility JavaVersion . VERSION_1_8
Original file line number Diff line number Diff line change 88import io .flutter .embedding .engine .plugins .activity .ActivityPluginBinding ;
99import io .flutter .plugin .common .BinaryMessenger ;
1010import io .flutter .plugin .common .MethodChannel ;
11- import io .flutter .plugin .common .PluginRegistry .Registrar ;
1211import io .flutter .plugin .common .PluginRegistry .ViewDestroyListener ;
1312import io .flutter .view .FlutterNativeView ;
1413
@@ -55,20 +54,6 @@ public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
5554 unregisterPlugin ();
5655 }
5756
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-
7257 private void registerPlugin (Context context , BinaryMessenger messenger ) {
7358 methodCallHandler = new MethodCallHandlerImpl (context , googleApiAvailabilityManager );
7459 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.
33repository : https://github.com/baseflow/flutter-google-api-availability/tree/main/google_api_availability_android
44# NOTE: We strongly prefer non-breaking changes, even at the expense of a
55# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
6- version : 1.0.1
6+ version : 1.0.2
77
88flutter :
99 plugin :
You can’t perform that action at this time.
0 commit comments