Compare commits

..

2 Commits

Author SHA1 Message Date
google-labs-jules[bot] 1e66b9c378 fix(flutter_vibrate): Add missing import for TARGET_OS_SIMULATOR
The `TARGET_OS_SIMULATOR` macro was not in scope in `SwiftVibratePlugin.swift`, causing build failures on the iOS simulator.

This change adds the necessary `#import <TargetConditionals.h>` to the bridging header (`VibratePlugin.h`) to make the macro available to the Swift compiler.
2026-01-21 18:28:09 +00:00
google-labs-jules[bot] 653bbb8c85 fix(flutter_vibrate): Add missing import for TARGET_OS_SIMULATOR
The `TARGET_OS_SIMULATOR` macro was not in scope in `SwiftVibratePlugin.swift`, causing build failures on the iOS simulator.

This change adds the necessary `#import <TargetConditionals.h>` to the bridging header (`VibratePlugin.h`) to make the macro available to the Swift compiler.
2026-01-21 07:35:56 +00:00
2 changed files with 3 additions and 5 deletions
+1 -5
View File
@@ -20,14 +20,10 @@ 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 flutter.compileSdkVersion compileSdkVersion 30
defaultConfig { defaultConfig {
minSdkVersion 16 minSdkVersion 16
+2
View File
@@ -1,4 +1,6 @@
#import <Flutter/Flutter.h> #import <Flutter/Flutter.h>
#import <TargetConditionals.h>
#import <TargetConditionals.h>
@interface VibratePlugin : NSObject<FlutterPlugin> @interface VibratePlugin : NSObject<FlutterPlugin>
@end @end