edward608 / system_setting Goto Github PK
View Code? Open in Web Editor NEWFlutter plugin for jumping to system settings
License: MIT License
Flutter plugin for jumping to system settings
License: MIT License
it is risky to use this plugin because of this deprecation until end of 2019 it will crash i guess.
do you consider to fix it ?
> Configure project :system_setting
WARNING: API 'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
Could you update the Kotlin Gradle plugin version:
current version is :
package name: org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71
request is : version number > 1.3.10 and higher
Instead of app settings. I need to go to bluetooth, and not app settings. so it should go to iOS settings
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
D:\xx\build\system_setting\intermediates\res\merged\release\values\values.xml:236: error: resource android:attr/fontVariationSettings not found.
D:\xx\build\system_setting\intermediates\res\merged\release\values\values.xml:237: error: resource android:attr/ttcIndex not found.
This commit is much needed when targeting recent Android OS
bd2a5dc
thank you
Hi,
I'd like to use your plugin with my project, which has setup with swift 4.2 (its dependency for others plugins). But unfortunately xcode compiler returned this error message
Thanks for reply
(sorry for creepy english)
Xcode's output:
↳
=== BUILD TARGET flutter_facebook_login OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/ales/devel/flutter-dev/.pub-cache/hosted/pub.dartlang.org/system_setting-0.1.3/ios/Classes/SwiftSystemSettingPlugin.swift:14:38: error: 'UIApplicationOpenSettingsURLString' has been renamed to 'UIApplication.openSettingsURLString'
if let url = URL(string: UIApplicationOpenSettingsURLString) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.openSettingsURLString
UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2
public let UIApplicationOpenSettingsURLString: String
I cannot run this plugin with Objective-C for iOS. Can you please mention that in the description as well?
And will there be support for Objective-C as well?
It won't compile:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher.
The following dependencies do not satisfy the required version:
project ':system_setting' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71
Error during compile:
/Users/user/.pub-cache/hosted/pub.dartlang.org/system_setting-0.1.3/ios/Classes/SystemSettingPlugin.m:2:9: fatal error: 'system_setting/system_setting-Swift.h' file not found
#import <system_setting/system_setting-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'FMDB' from project 'Pods')
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.15.4-pre.82, on Mac OS X 10.15.3 19D62e, locale ru-RU)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.42.1)
[✓] Connected device (4 available)
Hi,
Getting a build error when trying to compile my flutter application w/latest version of Xcode release:
Xcode's output:
↳
/Users/user/Development/flutter/.pub-cache/hosted/pub.dartlang.org/system_setting-0.1.3/ios/Classes/SwiftSystemSettingPlugin.swift:17:65: error: cannot convert value of type '[UIApplication.OpenExternalURLOptionsKey : Any]' (aka 'Dictionary<NSString, Any>') to expected argument type '[String : Any]'
UIApplication.shared.open(url, options: convertToUIApplicationOpenExternalURLOptionsKeyDictionary([:]), completionHandler: nil)
^
/Users/user/Development/flutter/.pub-cache/hosted/pub.dartlang.org/system_setting-0.1.3/ios/Classes/SwiftSystemSettingPlugin.swift:17:65: note: arguments to generic parameter 'Key' ('UIApplication.OpenExternalURLOptionsKey' (aka 'NSString') and 'String') are expected to be equal
UIApplication.shared.open(url, options: convertToUIApplicationOpenExternalURLOptionsKeyDictionary([:]), completionHandler: nil)
^
/Users/user/Development/flutter/.pub-cache/hosted/pub.dartlang.org/system_setting-0.1.3/ios/Classes/SwiftSystemSettingPlugin.swift:30:108: error: incorrect argument label in call (have 'rawValue:', expected 'string:')
return Dictionary(uniqueKeysWithValues: input.map { key, value in (UIApplication.OpenExternalURLOptionsKey(rawValue: key), value)})
^~~~~~~~~
string
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Any solution to this? Thank you!
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.