DaGeRe / issuetest

0 stars 0 forks source link

Imported: Alternative 'app/build.gradle' file for Android Projects #49

Open DaGeRe opened 2 years ago

DaGeRe commented 2 years ago

This issue has been imported from an old repository. It was originally created by @alex-iotiq at 2021-10-25T11:05:24Z with number #49

If testing with Peass with the original build.gradle is not working, a modification of build.gradle to run successful tests with Peass can cause problems for the main project. An alternative build.gradle that you can provide for Peass can solve this problem where you have the original file for the main project and another one specifically for testing with Peass.

DaGeRe commented 2 years ago

This comment has been imported from an old repository. It was originally created by @DaGeRe at 2021-11-04T21:47:24Z

Thanks for the idea, this should now be possible with https://github.com/DaGeRe/peass-ci/commit/49040f19ba59fd2ece77d623be9bc05dbac72650 could you test this?

DaGeRe commented 2 years ago

This comment has been imported from an old repository. It was originally created by @alex-iotiq at 2021-11-11T15:16:25Z

There is a bug when using alternative_build.gradle option. When the original build.gradle causes the build to break, Peass stops and the alternative_build.gradle won't be used, even if it's a working configuration. The alternative_build.gradle will only be used when the build with the original build.gradle first succeeds.

DaGeRe commented 2 years ago

This comment has been imported from an old repository. It was originally created by @DaGeRe at 2021-11-12T17:23:19Z

Thanks for the hint, I assume this happened since Peass selected the gradle file that should be replaced based on the ordering the file system provided.

Could you try again with https://github.com/DaGeRe/peass/commit/d8c3c7d97cd660723baa6f9ab55e277d49a794f4 or never and tell me whether the problem still exists?