Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit f5ab8ce

Browse files
SUPERCILEXsamtstern
authored andcommitted
Refactor and update dependencies (#56)
1 parent 6eb5f45 commit f5ab8ce

File tree

9 files changed

+37
-35
lines changed

9 files changed

+37
-35
lines changed

.travis.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
language: android
2-
3-
jdk:
4-
- oraclejdk8
2+
jdk: oraclejdk8
53

64
before_cache:
7-
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
8-
5+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
6+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
97
cache:
108
directories:
119
- $HOME/.gradle/caches/
@@ -14,10 +12,9 @@ cache:
1412
android:
1513
components:
1614
- tools
17-
- build-tools-24.0.2
18-
- android-24
1915
- platform-tools
16+
- build-tools-25.0.0
17+
- android-25
2018
- extra-android-m2repository
2119

22-
script:
23-
./gradlew build
20+
script: ./gradlew build

app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 24
5-
buildToolsVersion "24.0.2"
4+
compileSdkVersion compileSdk
5+
buildToolsVersion buildTools
66

77
defaultConfig {
88
applicationId "pub.devrel.easypermissions.sample"
99
minSdkVersion 9
10-
targetSdkVersion 24
10+
targetSdkVersion targetSdk
1111
versionCode 1
1212
versionName "1.0"
1313
}
@@ -20,7 +20,7 @@ android {
2020
}
2121

2222
dependencies {
23-
compile 'com.android.support:appcompat-v7:24.2.1'
23+
compile "com.android.support:appcompat-v7:${support_library_version}"
2424

2525
compile project(':easypermissions')
2626
}

build.gradle

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.1'
8+
classpath 'com.android.tools.build:gradle:2.2.2'
99

1010
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1111
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1'
@@ -21,3 +21,22 @@ allprojects {
2121
task clean(type: Delete) {
2222
delete rootProject.buildDir
2323
}
24+
25+
ext {
26+
projectName = 'EasyPermissions'
27+
projectDesc = 'A wrapper library for basic Android M system permissions logic'
28+
29+
githubUrl = 'https://github.com/googlesamples/easypermissions'
30+
31+
mavenGroup = 'pub.devrel'
32+
mavenArtifactId = 'easypermissions'
33+
mavenVersion = '0.2.1'
34+
35+
bintrayOrg = 'easygoogle'
36+
37+
support_library_version = '25.0.0'
38+
39+
buildTools = '25.0.0'
40+
compileSdk = 25
41+
targetSdk = 25
42+
}

easypermissions/bintray.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'com.jfrog.bintray'
2-
apply from: 'constants.gradle'
32

43
group = mavenGroup
54
version = mavenVersion

easypermissions/build.gradle

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
apply plugin: 'com.android.library'
2-
apply from: 'constants.gradle'
32

43
android {
5-
compileSdkVersion 24
6-
buildToolsVersion "24.0.2"
4+
compileSdkVersion compileSdk
5+
buildToolsVersion buildTools
76

87
defaultConfig {
98
minSdkVersion 9
10-
targetSdkVersion 24
9+
targetSdkVersion targetSdk
1110
versionCode 1
12-
versionName "$mavenVersion"
11+
versionName mavenVersion
1312
}
1413

1514
buildTypes {
@@ -25,7 +24,7 @@ android {
2524
}
2625

2726
dependencies {
28-
compile 'com.android.support:appcompat-v7:24.2.1'
27+
compile "com.android.support:appcompat-v7:${support_library_version}"
2928
}
3029

3130
apply from: 'maven.gradle'

easypermissions/constants.gradle

Lines changed: 0 additions & 12 deletions
This file was deleted.

easypermissions/maven.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'com.github.dcendents.android-maven'
2-
apply from: 'constants.gradle'
32

43
install {
54
repositories.mavenInstaller {

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# The setting is particularly useful for tweaking memory settings.
1212
# Default value: -Xmx10248m -XX:MaxPermSize=256m
1313
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14+
org.gradle.jvmargs=-Xmx1536m
1415

1516
# When configured, Gradle will run in incubating parallel mode.
1617
# This option should only be used with decoupled projects. More details, visit

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ 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-2.14.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-all.zip

0 commit comments

Comments
 (0)