File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed
sentry-android-gradle-plugin
src/main/groovy/io/sentry/android/gradle Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22cd $( dirname " $0 " )
33REPO=getsentry/sentry-cli
4- VERSION=1.37.4
4+ VERSION=1.38.0
55PLATFORMS=" Darwin-x86_64 Linux-i686 Linux-x86_64 Windows-i686"
66
77rm -f src/main/resources/bin/sentry-cli-*
Original file line number Diff line number Diff line change @@ -103,12 +103,21 @@ class SentryPlugin implements Plugin<Project> {
103103 * @return
104104 */
105105 static Task getProguardTask (Project project , ApplicationVariant variant ) {
106- def name = " transformClassesAndResourcesWithProguardFor${ variant.name.capitalize()} "
107- def rv = project. tasks. findByName(name)
108- if (rv != null ) {
109- return rv
106+ def names = [
107+ // Android Studio 3.3 includes the R8 shrinker.
108+ " transformClassesAndResourcesWithR8For${ variant.name.capitalize()} " ,
109+ " transformClassesAndResourcesWithProguardFor${ variant.name.capitalize()} "
110+ ]
111+
112+ def rv = null
113+ names. each {
114+ rv = project. tasks. findByName(it)
115+ if (rv != null ) {
116+ return rv
117+ }
110118 }
111- return project. tasks. findByName(" proguard${ name} " )
119+
120+ return project. tasks. findByName(" proguard${ names[1]} " )
112121 }
113122
114123 /**
You can’t perform that action at this time.
0 commit comments