vyshakh / react-native-uaepass

React-native module for UAE Pass
MIT License
8 stars 4 forks source link

Android build release fails #1

Closed Ammarlio closed 3 months ago

Ammarlio commented 7 months ago

First of all thanks for adding UAE Pass to react native.

Android Studio Version: Android Studio Giraffe | 2022.3.1 Patch 1

I am facing an issue when releasing Android build.

Direct local .aar file dependencies are not supported when building an AAR

Screenshot 2024-02-21 at 9 49 16 PM

any idea?

vyshakh commented 7 months ago

@Ammarlio Thank you for reporting this issue. I'm looking into it. Please let me know if you find any solution to fix this issue

vyshakh commented 7 months ago

./gradlew assembleRelease 🔴 Failing . Getting error " Direct local .aar file dependencies are not supported when building an AAR" ./gradlew bundleRelease 🟢
./gradlew app:assembleRelease 🟢

Ammarlio commented 7 months ago

@vyshakh thank you so much for your prompt reply.

I will try it today.

Ammarlio commented 7 months ago

./gradlew bundleRelease 🟢 ./gradlew app:assembleRelease 🔴 I am facing the same error.

Screenshot 2024-02-24 at 2 58 47 PM
vyshakh commented 7 months ago

@Ammarlio try this version https://github.com/vyshakh/react-native-uaepass/releases/tag/v1.0.5 // Add below code to android/build.gradle file. Paste it above the last line - "apply plugin..."

  allprojects {
      repositories{
          flatDir{
            dirs "$rootDir/../node_modules/react-native-uaepass/android/libs"
          }
      }
  }