trevjonez / composer-gradle-plugin

Gradle task type and plugin for interacting with https://github.com/gojuno/composer
Apache License 2.0
54 stars 18 forks source link

Orchestrator fix for running tests on Android 11 (sdk 30) #86

Open plastiv opened 3 years ago

plastiv commented 3 years ago

Android 11 introduces package-visibility restrictions which makes orchestrator service apk to not see test apk package running in different process. Running tests with orchestrator and composer doesn't work on android 11.

Composer plugin needs to install orchestrator apk with --force-queryable flag. Probably this part of codebase needs to be updated:

https://github.com/trevjonez/composer-gradle-plugin/blob/e834710b32ef4f321ba5f264053f71b9e4776142/commander/android/src/main/kotlin/com/gojuno/commander/android/InstallApks.kt#L67

Full description of the issue in upstream issue. On example of firebase test runner google engineer confirms that there is no other fix possible from android test library https://github.com/android/android-test/issues/743#issuecomment-831382496

b-demuth commented 2 years ago

We also ran into this issue today, but were able to work around it by adding the following to our debug/AndroidManifest.xml:

`

</queries>`

Hope this helps.