Skip to content

Commit 32eb15a

Browse files
committed
fix(android): use plugins block in settings.gradle for proper plugin resolution
1 parent 1469796 commit 32eb15a

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

android/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,3 @@ allprojects {
2929
}
3030
}
3131
}
32-
33-
apply plugin: "com.facebook.react.rootproject"

android/settings.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
pluginManagement {
22
repositories {
3-
mavenCentral()
43
google()
4+
mavenCentral()
55
gradlePluginPortal()
66
}
7+
includeBuild("../node_modules/@react-native/gradle-plugin")
78
}
89

9-
plugins { id("org.gradle.toolchains.foojay-resolver-convention").version("0.5.0") }
10+
plugins {
11+
id("com.facebook.react.rootproject")
12+
}
1013

1114
rootProject.name = 'CardScannerApp'
1215

13-
includeBuild('../node_modules/@react-native/gradle-plugin')
14-
1516
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
1617

1718
include ':app'

0 commit comments

Comments
 (0)