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

Unnecessary dependencies for subprojects #19

@neomoto

Description

@neomoto

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.  ```

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