Skip to content

Commit 45d13cf

Browse files
committed
Production release 2.0.1
2 parents 67851b9 + ca9f3f9 commit 45d13cf

File tree

9 files changed

+24
-18
lines changed

9 files changed

+24
-18
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.0.1
2+
3+
* Fix bug with dependency on `com.android.support:support-compat` library
4+
* Update used Kotlin and Gradle versions
5+
16
## 2.0.0
27

38
* Make methods non static so users can create an instance or override

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To use this plugin, add `permission_handler` as a [dependency in your pubspec.ya
2222

2323
```yaml
2424
dependencies:
25-
permission_handler: '^2.0.0'
25+
permission_handler: '^2.0.1'
2626
```
2727
2828
> **NOTE:** There's a known issue with integrating plugins that use Swift into a Flutter project created with the Objective-C template. See issue [Flutter#16049](https://github.com/flutter/flutter/issues/16049) for help on integration.

android/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ group 'com.baseflow.permissionhandler'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
5-
ext.kotlin_version = '1.2.51'
5+
ext.kotlin_version = '1.2.71'
66
repositories {
77
google()
88
jcenter()
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:3.0.1'
12+
classpath 'com.android.tools.build:gradle:3.2.0'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
1515
}
@@ -40,7 +40,8 @@ android {
4040
}
4141

4242
dependencies {
43-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
43+
api "com.android.support:support-compat:27.1.1"
44+
45+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
4446
implementation "com.google.code.gson:gson:2.8.5"
45-
implementation "com.android.support:support-compat:27.1.1"
4647
}

example/android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ flutter {
5050
}
5151

5252
dependencies {
53-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
53+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
5454
testImplementation 'junit:junit:4.12'
55-
androidTestImplementation 'com.android.support.test:runner:1.0.1'
56-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
55+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
56+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
5757
}

example/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
2-
ext.kotlin_version = '1.1.51'
2+
ext.kotlin_version = '1.2.71'
33
repositories {
44
google()
55
jcenter()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.1.4'
9+
classpath 'com.android.tools.build:gradle:3.2.0'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Jul 20 12:10:00 CEST 2018
1+
#Wed Oct 10 08:31:26 CEST 2018
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip

example/lib/main.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ class MyApp extends StatelessWidget {
4646
}
4747

4848
class PermissionWidget extends StatefulWidget {
49-
final PermissionGroup _permissionGroup;
50-
5149
const PermissionWidget(this._permissionGroup);
5250

51+
final PermissionGroup _permissionGroup;
52+
5353
@override
5454
_PermissionState createState() => _PermissionState(_permissionGroup);
5555
}
5656

5757
class _PermissionState extends State<PermissionWidget> {
58+
_PermissionState(this._permissionGroup);
59+
5860
final PermissionGroup _permissionGroup;
5961
PermissionStatus _permissionStatus = PermissionStatus.unknown;
6062

61-
_PermissionState(this._permissionGroup);
62-
6363
@override
6464
void initState() {
6565
super.initState();

ios/permission_handler.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
Pod::Spec.new do |s|
55
s.name = 'permission_handler'
6-
s.version = '2.0.0'
6+
s.version = '2.0.1'
77
s.summary = 'Permission plugin for Flutter.'
88
s.description = <<-DESC
99
Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: permission_handler
22
description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
3-
version: 2.0.0
3+
version: 2.0.1
44
author: Baseflow <hello@baseflow.com>
55
homepage: https://github.com/baseflowit/flutter-permission-handler
66

0 commit comments

Comments
 (0)