Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Unnecessary dependencies for subprojects #19

Open
neomoto opened this issue Oct 13, 2021 · 0 comments
Open

Unnecessary dependencies for subprojects #19

neomoto opened this issue Oct 13, 2021 · 0 comments

Comments

@neomoto
Copy link

neomoto commented Oct 13, 2021

Hello. In installation guide there is part about ./android/build.gradle configuration.
My question is why these dependencies are added for all subprojects? What is the point of that?
Having this in build.gradle might break project build if some ofther dependencies are included in package.json, for example, problem spotted with react-native-reanimated.

subprojects {
    afterEvaluate {
        dependencies {
            // Change abbyy-mi-sdk-2.0 to abbyy-rtr-sdk-1.0 if you need to use
            recognition API (MI+Extended or MI+ExtendedDC)
            implementation(name: 'abbyy-mi-sdk-2.0', ext: 'aar')
            implementation(name: 'abbyy-ui-1.0', ext: 'aar')
        }
    }
}

Example of error:

A problem occurred configuring project ':react-native-reanimated'.                                                                                                                           
> Could not find method implementation() for arguments [{name=abbyy-rtr-sdk-1.0, ext=aar}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.  ```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant