Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs fix needed for expo android implementation #116

Closed
wmarsey opened this issue Dec 3, 2023 · 2 comments
Closed

Docs fix needed for expo android implementation #116

wmarsey opened this issue Dec 3, 2023 · 2 comments

Comments

@wmarsey
Copy link

wmarsey commented Dec 3, 2023

Description

This package cannot be run on android using the current doc instructions, as the uxcam maven repository isn't added during build.

Steps to Reproduce

npx create-expo-app android-uxcam-expo-test -y
cd android-uxcam-expo-test
npx expo install react-native-ux-cam
npx expo prebuild -p android
npx expo run:android

Error

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.uxcam:uxcam:3.6.18.
     Searched in the following locations:
       - file:/Users/wmarsey/Code/adapt/android-uxcam-expo-test/node_modules/react-native/android/com/uxcam/uxcam/3.6.18/uxcam-3.6.18.pom
       - file:/Users/wmarsey/Code/adapt/android-uxcam-expo-test/node_modules/jsc-android/dist/com/uxcam/uxcam/3.6.18/uxcam-3.6.18.pom
       - https://dl.google.com/dl/android/maven2/com/uxcam/uxcam/3.6.18/uxcam-3.6.18.pom
       - https://repo.maven.apache.org/maven2/com/uxcam/uxcam/3.6.18/uxcam-3.6.18.pom
       - https://www.jitpack.io/com/uxcam/uxcam/3.6.18/uxcam-3.6.18.pom
       - https://oss.sonatype.org/content/repositories/snapshots/com/uxcam/uxcam/3.6.18/uxcam-3.6.18.pom
     Required by:
         project :app > project :react-native-ux-cam

Fix

The uxcam maven repository needs to be added using the extraMavenRepos property of expo-build-properties.

Install the plugin, then add the below to app.config.ts or similar:

npx expo install expo-build-properties

export default {
  expo: {
    ...
    plugins: [
      [
        "expo-build-properties",
        {
          ...
          android: {
            extraMavenRepos: [
              ...
              "https://sdk.uxcam.com/android/",
            ],
          },
        },
      ],
@younes0
Copy link

younes0 commented Dec 14, 2023

@wmarsey no problems on my side using EAS fyi

@DFDIEGOH
Copy link

Hi @wmarsey Apologize for the delay,

Thank you for sharing some feedback on our RN repository and how to accomplish this for an Expo application, we will reviewing this deeply with the team.

As for now, In order to integrate UXCam in an Expo application and as @younes0 mentioned, you will need to use an EAS build. Here you will find the instructions for the same: https://developer.uxcam.com/docs/expo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants