Skip to content

Commit

Permalink
- libraryVersion 2.3.0
Browse files Browse the repository at this point in the history
- update gradles to use variables
- gradle cleanup
  • Loading branch information
ncapdevi committed Nov 16, 2017
1 parent 8962018 commit 5461d44
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
buildToolsVersion '26.0.2'
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
lintOptions {
abortOnError false
}
defaultConfig {
applicationId "com.ncapdevi.sample"
minSdkVersion 15
targetSdkVersion 27
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.compileSdkVersion
versionCode 1
versionName "1.0"
}
Expand Down
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ext {
mockitoVersion = '2.11.0'
runnerVersion = '0.5'
rulesVersion = '0.5'
buildToolsVersion = '27.0.1'
minSdkVersion = 14
targetSdkVersion = 27
compileSdkVersion = 27
}
20 changes: 11 additions & 9 deletions frag-nav/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ apply plugin: 'maven'
apply plugin: 'com.github.kt3k.coveralls'

ext {
libraryVersionCode = 22
libraryVersionName = '2.3.0'

//Bintray and Maven
bintrayRepo = 'maven'
bintrayName = 'frag-nav'

Expand All @@ -21,8 +25,6 @@ ext {
siteUrl = 'https://github.com/ncapdevi/FragNav'
gitUrl = 'https://github.com/ncapdevi/FragNav.git'

libraryVersion = '2.2.3'

developerId = 'ncapdevi'
developerName = 'Nic Capdevila'
developerEmail = 'ncapdevi@gmail.com'
Expand All @@ -34,17 +36,17 @@ ext {


android {
compileSdkVersion 27
buildToolsVersion '27.0.1'
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

lintOptions{
abortOnError false
}
defaultConfig {
minSdkVersion 14
targetSdkVersion 27
versionCode 21
versionName libraryVersion
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.compileSdkVersion
versionCode libraryVersionCode
versionName libraryVersionName
}
buildTypes {
release {
Expand Down Expand Up @@ -106,7 +108,7 @@ install {
}


version = libraryVersion
version = libraryVersionName

if (project.hasProperty("android")) { // Android libraries
task sourcesJar(type: Jar) {
Expand Down

0 comments on commit 5461d44

Please sign in to comment.