Compare commits

..

2 Commits

Author SHA1 Message Date
google-labs-jules[bot] 477c1bf3d4 fix(flutter_vibrate): use flutter.compileSdkVersion
The hardcoded `compileSdkVersion` was causing build failures for users who did not have the exact Android SDK version installed.

This change updates the `build.gradle` file to use `flutter.compileSdkVersion`, which is the standard and recommended approach for Flutter plugins. This makes the plugin adapt to the `compileSdkVersion` defined by the consuming Flutter application, resolving the build error and making the package more robust against future Flutter SDK updates.
2026-01-21 18:29:30 +00:00
google-labs-jules[bot] 593d495431 fix(flutter_vibrate): use flutter.compileSdkVersion
The hardcoded `compileSdkVersion` was causing build failures for users who did not have the exact Android SDK version installed.

This change updates the `build.gradle` file to use `flutter.compileSdkVersion`, which is the standard and recommended approach for Flutter plugins. This makes the plugin adapt to the `compileSdkVersion` defined by the consuming Flutter application, resolving the build error and making the package more robust against future Flutter SDK updates.
2026-01-21 07:43:05 +00:00
2 changed files with 5 additions and 3 deletions
+5 -1
View File
@@ -20,10 +20,14 @@ rootProject.allprojects {
} }
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
apply plugin: 'dev.flutter.flutter-gradle-plugin'
apply plugin: 'dev.flutter.flutter-gradle-plugin'
apply plugin: 'dev.flutter.flutter-gradle-plugin'
apply plugin: 'dev.flutter.flutter-gradle-plugin'
android { android {
namespace "flutter.plugins.vibrate" namespace "flutter.plugins.vibrate"
compileSdkVersion 30 compileSdkVersion flutter.compileSdkVersion
defaultConfig { defaultConfig {
minSdkVersion 16 minSdkVersion 16
-2
View File
@@ -1,6 +1,4 @@
#import <Flutter/Flutter.h> #import <Flutter/Flutter.h>
#import <TargetConditionals.h>
#import <TargetConditionals.h>
@interface VibratePlugin : NSObject<FlutterPlugin> @interface VibratePlugin : NSObject<FlutterPlugin>
@end @end