Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ddesvillechabrol committed Nov 7, 2018
1 parent 75ad781 commit a00eb32
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 @@ -15,15 +15,15 @@ def isReleaseBuild() {
}

def getRepositoryUrl() {
return project.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 project.hasProperty('repositoryUsername') ? property('repositoryUsername') : ''
return findProperty('repositoryUsername') !=null ? property('repositoryUsername') : ''
}

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

def configureReactNativePom(def pom) {
Expand Down

0 comments on commit a00eb32

Please sign in to comment.