google / mobly-bundled-snippets

Snippets to allow Mobly tests to control Android devices by exposing a simplified Android API.
Apache License 2.0
45 stars 52 forks source link

Publish as android library #159

Open yschimke opened 1 year ago

yschimke commented 1 year ago

Suggestion to publish as an android library, instead of building an application.

Apps could use this and mobly-snippet-lib in their own codebase in an artifact published to maven central.

xpconanfan commented 1 year ago

I think we already publish to Android maven, no?

xianyuanjia commented 1 year ago

mobly-snippet-lib is published to Maven, but mobly-bundled-snippets is not.

yschimke commented 1 year ago

Yeah, my issue is that I'd like to use these for different apps, but with this project being targetted to a specific package, it isn't easy to reuse.

I'd like a clean dependency I can pull in, and only have additional snippets in my app specific mobly module.

xpconanfan commented 1 year ago

Yeah, it would be ideal if we can pull the individual snippet classes as needed. But is that feasible in maven?

yschimke commented 1 year ago

This might also remove the concern around targetSdk in https://github.com/google/mobly-bundled-snippets/pull/158, since that shouldn't apply to libraries.