Skip to content

Commit

Permalink
Sync the Gradle script with Reanimated2 branch (#3672)
Browse files Browse the repository at this point in the history
I copied and changed what we made before the release of Reanimated
2.11.0.
  • Loading branch information
piaskowyk committed Oct 14, 2022
1 parent 0eda6f2 commit cebf4e1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@ def safeExtGet(prop, fallback) {
}

def safeAppExtGet(prop, fallback) {
def appProject = null
try {
appProject = project(":app")
} catch(Exception e) {
if (findProject(':app') == null) {
return fallback
}
def appProject = project(':app')
appProject?.ext?.has(prop) ? appProject.ext.get(prop) : fallback
}

Expand Down

0 comments on commit cebf4e1

Please sign in to comment.