Skip to content

Commit

Permalink
Fixes hasProperty returning true even when there's an empty getter.
Browse files Browse the repository at this point in the history
  • Loading branch information
SudoPlz authored and davemt committed Jan 24, 2018
1 parent 099b841 commit e0f48c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ReactAndroid/release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ def isReleaseBuild() {
}

def getRepositoryUrl() {
return hasProperty('repositoryUrl') ? property('repositoryUrl') : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
return findProperty('repositoryUrl') != null ? property('repositoryUrl') : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
}

def getRepositoryUsername() {
return hasProperty('repositoryUsername') ? property('repositoryUsername') : ''
return findProperty('repositoryUsername') !=null ? property('repositoryUsername') : ''
}

def getRepositoryPassword() {
return hasProperty('repositoryPassword') ? property('repositoryPassword') : ''
return findProperty('repositoryPassword') != null ? property('repositoryPassword') : ''
}

def configureReactNativePom(def pom) {
Expand Down

0 comments on commit e0f48c8

Please sign in to comment.