Skip to content

Commit 23e8a24

Browse files
ruZZilbretthoerner
authored andcommitted
sentry-android-gradle-plugin: improve various directory structure support (#563)
1 parent f5198d0 commit 23e8a24

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sentry-android-gradle-plugin/src/main/groovy/io/sentry/android/gradle/SentryPlugin.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class SentryPlugin implements Plugin<Project> {
132132
* @return
133133
*/
134134
static String getDebugMetaPropPath(Project project, ApplicationVariant variant) {
135-
return "${project.rootDir.toPath()}/${project.name}/build/intermediates/assets/${variant.dirName}/sentry-debug-meta.properties"
135+
return "${project.buildDir}/intermediates/assets/${variant.dirName}/sentry-debug-meta.properties"
136136
}
137137

138138
void apply(Project project) {
@@ -198,9 +198,9 @@ class SentryPlugin implements Plugin<Project> {
198198
def flavorName = variant.flavorName
199199
def propName = "sentry.properties"
200200
def possibleProps = [
201-
"${project.rootDir.toPath()}/${project.name}/src/${variantName}/${propName}",
202-
"${project.rootDir.toPath()}/${project.name}/src/${variantName}/${flavorName}/${propName}",
203-
"${project.rootDir.toPath()}/${project.name}/src/${flavorName}/${variantName}/${propName}",
201+
"${project.projectDir}/src/${variantName}/${propName}",
202+
"${project.projectDir}/src/${variantName}/${flavorName}/${propName}",
203+
"${project.projectDir}/src/${flavorName}/${variantName}/${propName}",
204204
"${project.rootDir.toPath()}/src/${variantName}/${propName}",
205205
"${project.rootDir.toPath()}/src/${variantName}/${flavorName}/${propName}",
206206
"${project.rootDir.toPath()}/src/${flavorName}/${variantName}/${propName}",

0 commit comments

Comments
 (0)