Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Toueg committed Mar 23, 2018
1 parent 3bb24f6 commit 5e982bd
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 5e982bd

Please sign in to comment.