GithubHelp home page GithubHelp logo

edward608 / system_setting Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 20.0 135 KB

Flutter plugin for jumping to system settings

License: MIT License

Kotlin 23.72% Ruby 29.21% Swift 14.31% Objective-C 3.98% Dart 28.78%

system_setting's People

Contributors

edward608 avatar manojitela avatar mistic100 avatar prathik-jain avatar tverra avatar tyfkda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

system_setting's Issues

'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'

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.

Plugin in ios problem

I am experiencing this problem when using the plugin,I did not find a solution. my xcode 10.2.1, pod 1.5.3
image
What is the reason for this? How can I solve this problem?

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed

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.

Swift 4.2

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

Objective-C support

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?

Problem in Android

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

file not found

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)

Plugin throwing build error with latest iOS 14 / XCode update

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.