abbyy / MobileCapture.ReactNative

ABBYY Mobile Capture SDK ReactNative module
3 stars 1 forks source link

Unnecessary dependencies for subprojects #19

Open neomoto opened 2 years ago

neomoto commented 2 years ago

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