File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ dependencies {
267267 supportVer = supportVersion
268268 }
269269
270- if (project. hasProperty(" useAndroidX" )) {
270+ if (project. hasProperty(" useAndroidX" ) && (useAndroidX || useAndroidX . toBoolean()) ) {
271271 def androidXLegacyVersion = " 1.0.0"
272272 if (project. hasProperty(" androidXLegacy" )) {
273273 androidXLegacyVersion = androidXLegacy
@@ -560,9 +560,7 @@ task buildMetadata(type: JavaExec) {
560560}
561561
562562task makeAndroidXChanges << {
563- if (project. hasProperty(" useAndroidX" )) {
564- println " Executing makeAndroidXChanges"
565-
563+ if (project. hasProperty(" useAndroidX" ) && (useAndroidX || useAndroidX. toBoolean())) {
566564 // code changes
567565 def codeTuples = new ArrayList<Tuple2<String , String > > ()
568566 codeTuples. add(new Tuple2<String , String > (' android\\ .support\\ .annotation\\ .NonNull' , ' androidx.annotation.NonNull' ))
You can’t perform that action at this time.
0 commit comments