Skip to content

Commit

Permalink
Merge pull request spencerccf#65 from spencerccf/adding-missing-code-…
Browse files Browse the repository at this point in the history
…for-NFC-pull-request

Updating version number, change log and readme.
  • Loading branch information
spencerccf authored Jul 28, 2020
2 parents 693a580 + b8091f3 commit 88d6f24
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ All three options open the current 'app' settings section if there are settings
### Android
Each option will open and display the corresponding screen: WIFI, Location, or Security, etc.

## 4.0.2
Adding in NFC settings access for Android. iOS will still rely on App Settings.

## 4.0.1+1
Update Android compileSdkVersion to 30

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A Flutter plugin for opening iOS and Android phone settings from an app.
dependencies:
flutter:
sdk: flutter
app_settings: 4.0.1+1
app_settings: 4.0.2
```

Next, import 'app_settings.dart' into your dart code.
Expand Down
21 changes: 17 additions & 4 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A Flutter plugin for opening iOS and Android phone settings from an app.
dependencies:
flutter:
sdk: flutter
app_settings: 1.0.6+1
app_settings: 4.0.2
```

Next, import 'app_settings.dart' into your dart code.
Expand All @@ -22,20 +22,33 @@ import 'package:app_settings/app_settings.dart';
```

## Platform Specifics
The following setting options available on both iOS and Android: openAppSettings, openWIFISettings, openLocationSettings, openSecuritySettings
The following setting options available on both iOS and Android: openAppSettings, openWIFISettings, openLocationSettings, openSecuritySettings, openBluetoothSettings, openDataRoamingSettings
, openDateSettings, openDisplaySettings, openNotificationSettings, openSoundSettings, openInternalStorageSettings, openBatteryOptimizationSettings
### iOS
***TIP: If using Objective-C for iOS in your project, you will need to add `use_frameworks!` to your `Runner project podfile` in order to use this Swift plugin:***

- target 'Runner' do
use_frameworks!

All four options open the current 'app' settings section if there are settings defined. If no current settings are defined for the app the iPhone Settings Screen will be displayed.
All options open the current 'app' settings section if there are settings defined. If no current settings are defined for the app the iPhone Settings Screen will be displayed.

### Android
Each option will open and display the exact corresponding system settings screen: WIFI, Location, or Security.
Each option will open and display the exact corresponding system settings screen: WIFI, Location, or Security, etc.

Using the openAppSettings option will open the current 'app' settings for the running app.

In some cases, to access directly the Bluetooth window, you will need to provide access permissions in the android/app/src/main/AndroidManifest.xml

```dart
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.yourname.yourapp">
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<application
```



## Example
Example implementation using a raised button 'onPressed' event.

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: app_settings
description: A Flutter plugin for opening iOS and Android phone settings from an app.
version: 4.0.1+1
version: 4.0.2
author: Spencerccf <[email protected]>
homepage: https://github.com/spencerccf/app_settings

Expand Down

0 comments on commit 88d6f24

Please sign in to comment.