diff --git a/CHANGELOG.md b/CHANGELOG.md index a32c7026..9c0f02c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## TBD + +Search for shared object files in the new artefact locations introduced by modularisation of `bugsnag-android`. This affects versions v4.17.0 and above of `bugsnag-android` and `bugsnag-android-ndk`. +[#168](https://github.com/bugsnag/bugsnag-android-gradle-plugin/pull/168) + ## 4.4.1 (2019-06-19) Skip uploading mapping files for shared objects which have no debug info diff --git a/src/main/groovy/com/bugsnag/android/gradle/BugsnagNdkSetupTask.groovy b/src/main/groovy/com/bugsnag/android/gradle/BugsnagNdkSetupTask.groovy index ae334e8c..b39b3dbd 100644 --- a/src/main/groovy/com/bugsnag/android/gradle/BugsnagNdkSetupTask.groovy +++ b/src/main/groovy/com/bugsnag/android/gradle/BugsnagNdkSetupTask.groovy @@ -18,7 +18,9 @@ class BugsnagNdkSetupTask extends DefaultTask { }.each { config -> ResolvedArtifact artifact = config.resolvedConfiguration.resolvedArtifacts.find { String identifier = it.id.componentIdentifier.toString() - identifier.contains("bugsnag-android") && it.file != null + List soArtefacts = ["bugsnag-android", "bugsnag-android-ndk", + "bugsnag-plugin-android-anr", "bugsnag-plugin-android-ndk",] + soArtefacts.contains(identifier) && it.file != null } if (artifact) { File artifactFile = artifact.file