Skip to content

Commit 2168505

Browse files
author
Shintaro Katafuchi
committed
Prepare for preview 3 release.
1 parent 5f2d526 commit 2168505

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ChangeLog
2+
3+
- 0.9.0 2015/08/18
4+
- Prepare for preview 3(final release).
5+
6+

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
USER = hotchemi
22
GROUP_ID = com.github.hotchemi
3-
ARTIFACT_ID_CORE = 'permissionsdispatcher'
4-
ARTIFACT_ID_PROCESSOR = 'permissionsdispatcher-processor'
5-
VERSION = 0.5.0
3+
ARTIFACT_ID_CORE = permissionsdispatcher
4+
ARTIFACT_ID_PROCESSOR = permissionsdispatcher-processor
5+
VERSION = 0.9.0
66
DESCRIPTION = Annotation-based library for generating runtime permissions dispatcher.
77
WEBSITE = https://github.com/hotchemi/PermissionsDispatcher
88
LICENCES = ['Apache-2.0']

permissionsdispatcher-sample/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ apply plugin: 'com.android.application'
33
apply plugin: 'android-apt'
44

55
android {
6-
compileSdkVersion "android-MNC"
6+
compileSdkVersion 23
77
buildToolsVersion "22.0.1"
88

99
defaultConfig {
1010
applicationId "permissions.dispatcher.sample"
11-
minSdkVersion "MNC"
12-
targetSdkVersion "MNC"
11+
minSdkVersion 23
12+
targetSdkVersion 23
1313
versionCode 1
1414
versionName "1.0"
1515
}
@@ -21,6 +21,7 @@ android {
2121
}
2222

2323
dependencies {
24+
//noinspection GradleCompatible
2425
compile 'com.android.support:appcompat-v7:22.2.1'
2526
compile project(':permissionsdispatcher')
2627
apt project(':permissionsdispatcher-processor')

permissionsdispatcher/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ apply plugin: 'com.android.library'
33
apply plugin: 'com.novoda.bintray-release'
44

55
android {
6-
compileSdkVersion "android-MNC"
6+
compileSdkVersion 23
77
buildToolsVersion "22.0.1"
8-
8+
defaultConfig {
9+
minSdkVersion 4
10+
targetSdkVersion 23
11+
}
912
compileOptions {
1013
sourceCompatibility JavaVersion.VERSION_1_7
1114
targetCompatibility JavaVersion.VERSION_1_7

permissionsdispatcher/src/main/android/permissions/dispatcher/PermissionUtils.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ private static boolean isNotMNC() {
5151
}
5252

5353
private static boolean isMNC() {
54-
// TODO: Once the API has been finalised, the following code should be used:
55-
// return Build.VERSION.SDK_INT == Build.VERSION_CODES.MNC
56-
return "MNC".equals(Build.VERSION.CODENAME);
54+
return Build.VERSION.SDK_INT == Build.VERSION_CODES.M;
5755
}
5856

5957
}

0 commit comments

Comments
 (0)