Skip to content

Commit

Permalink
fix: self code review
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak committed Dec 30, 2024
1 parent 5c4d219 commit 2e09024
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
buildscript {
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
ext.getExtOrDefault = {name ->
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['<%- project.name -%>_' + name]
}
Expand All @@ -10,7 +9,7 @@ buildscript {
}

dependencies {
classpath "com.android.tools.build:gradle:${getExtOrDefault('gradleVersion')}"
classpath "com.android.tools.build:gradle:8.7.2"
// noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
}
Expand All @@ -32,10 +31,6 @@ if (isNewArchitectureEnabled()) {
apply plugin: "com.facebook.react"
}

def getExtOrDefault(name) {
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["<%- project.name -%>_" + name]
}

def getExtOrIntegerDefault(name) {
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["<%- project.name -%>_" + name]).toInteger()
}
Expand Down

0 comments on commit 2e09024

Please sign in to comment.