Skip to content

Commit 4665f2c

Browse files
committed
Fixes compile errors for flutter 3.29.0
1 parent af48328 commit 4665f2c

File tree

4 files changed

+9
-18
lines changed

4 files changed

+9
-18
lines changed

google_api_availability_android/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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.

google_api_availability_android/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

google_api_availability_android/android/src/main/java/com/baseflow/googleapiavailability/GoogleApiAvailabilityPlugin.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding;
99
import io.flutter.plugin.common.BinaryMessenger;
1010
import io.flutter.plugin.common.MethodChannel;
11-
import io.flutter.plugin.common.PluginRegistry.Registrar;
1211
import io.flutter.plugin.common.PluginRegistry.ViewDestroyListener;
1312
import 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");

google_api_availability_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: An Android implementation for the google_api_availability plugin.
33
repository: 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

88
flutter:
99
plugin:

0 commit comments

Comments
 (0)