File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/create-react-native-library/templates/native-common/android Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11buildscript {
22 // Buildscript is evaluated before everything else so we can't use getExtOrDefault
3- def kotlin_version = rootProject. ext. has(" kotlinVersion" ) ? rootProject. ext. get(" kotlinVersion" ) : project. properties[" <%- project.name -%>_kotlinVersion" ]
3+ ext. getExtOrDefault = {name ->
4+ return rootProject. ext. has(name) ? rootProject. ext. get(name) : project. properties[' <%- project.name -%>_' + name]
5+ }
46
57 repositories {
68 google()
79 mavenCentral()
810 }
911
1012 dependencies {
11- classpath " com.android.tools.build:gradle:7.2.1 "
13+ classpath " com.android.tools.build:gradle:${ getExtOrDefault('gradleVersion') } "
1214 // noinspection DifferentKotlinGradleVersion
13- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$k otlin_version "
15+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:${ getExtOrDefault('kotlinVersion') } "
1416 }
1517}
1618
You can’t perform that action at this time.
0 commit comments