rainwayapp / flutter_home_indicator Goto Github PK
View Code? Open in Web Editor NEWFlutter plugin to show/hide the iPhone X home indicator.
License: MIT License
Flutter plugin to show/hide the iPhone X home indicator.
License: MIT License
兄弟, 感谢发布这个插件, 我用了很久,非常棒, 但是最近升级的项目, 发现编译出现问了, 找不到头文件, 所以我新建了一个插件发现头文件这样式儿定义的
#if __has_include(<home_indicator/home_indicator-Swift.h>)
#import <home_indicator/home_indicator-Swift.h>
#else
// Support project import fallback if the generated compatibility header
// is not copied when this plugin is created as a library.
// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816
#import "home_indicator-Swift.h"
#endif
Hi @lynn @cristian1980 @nohli - thanks so much for making this plugin!
There is a missing header file called at line 2 of HomeindicatorPlugin.m
:
#import <home_indicator-Swift.h>
In its current 2.0.1 version, any build with the plugin will fail. Could you please help provide the file?
That would be awesome! 😊
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
Any Help to solve that issue?
I get the following warning during my builds:
The plugin `home_indicator` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
Ironically, this works like a charm on iOS, but broke my apk build:
ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.
The following dependencies do not satisfy the required version:
project ':home_indicator' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71
(my gradle plugin is not the latest, but from april)
If you replace
ext.kotlin_version = '1.2.71'
with
ext.kotlin_version = '1.3.50'
it works - at least for me.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.