You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gradle-plugins/react/brownfield/src/main/kotlin/com/callstack/react/brownfield/artifacts/ArtifactsResolver.kt
+42-1Lines changed: 42 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,48 @@ class ArtifactsResolver(
50
50
}
51
51
}
52
52
53
+
privatefunembedExpoDependencies() {
54
+
/**
55
+
* expo project does not exist in example-android-library so doing an
56
+
* early exit.
57
+
*/
58
+
if (baseProject.project.name =="example-android-library") {
59
+
return
60
+
}
61
+
62
+
/**
63
+
* The expo third party dependencies are linked to `expo` project.
64
+
* They are linked via `api` configuration and in two ways. In the
65
+
* first way, they are linked as a subProject or local dependencies.
66
+
* In the second way, they are linked as local maven hosted dependencies.
67
+
*
68
+
* We get those dependencies of `expo` project and add those to the consumer
69
+
* library project.
70
+
*/
71
+
val expoProject = baseProject.project.rootProject.project("expo")
72
+
val expoConfig = expoProject.configurations.findByName("api")
73
+
expoConfig?.dependencies?.forEach {
74
+
if (extension.resolveLocalDependencies) {
75
+
if (it isDefaultProjectDependency) {
76
+
baseProject.project.dependencies.add(
77
+
CONFIG_NAME,
78
+
expoProject.dependencies.project(mapOf("path" to ":${it.name}")),
Copy file name to clipboardExpand all lines: gradle-plugins/react/brownfield/src/main/kotlin/com/callstack/react/brownfield/processors/VariantHelper.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,7 @@ class VariantHelper(private val variant: LibraryVariant) : BaseProject() {
148
148
filteredSourceSets.forEach { sourceSet ->
149
149
val filteredAarLibs = aarLibraries.filter { it.getAssetsDir().exists() }
0 commit comments