Skip to content

Add Module support #35

@wezley98

Description

@wezley98

We have divided our androidTests by Module, but it seems this plugin doesn't support any module without:

id("com.android.application") plugin

I think the issue is :

AppExtension appExtension = (AppExtension) project.getExtensions().getByName("android");

AppExtension appExtension = (AppExtension) project.getExtensions().getByName("android");

The error we get back when syncing is:

Caused by: org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin request [id: 'com.browserstack.gradle']
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'com.browserstack.gradle'
Caused by: java.lang.ClassCastException: com.android.build.gradle.LibraryExtension_Decorated cannot be cast to com.android.build.gradle.AppExtension

Would it be possible to add module support please, with modules using the id("com.android.library") plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions