Skip to content

UIlib-native dependency gradle build error on expo #3812

@tomangotti

Description

@tomangotti

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-ui-lib@7.46.3 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-ui-lib/lib/android/build.gradle b/node_modules/react-native-ui-lib/lib/android/build.gradle
index 5f0b7d6..6026180 100644
--- a/node_modules/react-native-ui-lib/lib/android/build.gradle
+++ b/node_modules/react-native-ui-lib/lib/android/build.gradle
@@ -30,3 +30,9 @@ android {
 dependencies {
     implementation 'com.facebook.react:react-native:+'
 }
+
+afterEvaluate {
+    tasks.matching { it.name == "packageReleaseResources" }.all { task ->
+        task.dependsOn(":uilib-native:generateReleaseResValues")
+    }
+}

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions