Files
packages.dart/packages/flutter_vibrate/android/build.gradle
T
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

48 lines
1.0 KiB
Groovy
Vendored

group 'flutter.plugins.vibrate.vibrate'
version '1.0-SNAPSHOT'
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
}
}
rootProject.allprojects {
repositories {
google()
mavenCentral()
}
}
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 {
namespace "flutter.plugins.vibrate"
compileSdkVersion flutter.compileSdkVersion
defaultConfig {
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
lintOptions {
disable 'InvalidPackage'
}
if (project.android.hasProperty("namespace")) {
namespace 'flutter.plugins.vibrate'
}
}