Skip to content

Commit

Permalink
fix(autolinking): remove deprecated Gradle task syntax (#339)
Browse files Browse the repository at this point in the history
Summary:
---------

Gradle 5 no longer supports the `<<` syntax - swapped to the non-shorthand syntax of `doLast {}`

Test Plan:
----------

Builds successfully with the updated syntax and `PackageList.java` file generated

![image](https://user-images.githubusercontent.com/5347038/56444115-57b9a200-62ef-11e9-94bc-16818c33e65e.png)

![image](https://user-images.githubusercontent.com/5347038/56444122-5f794680-62ef-11e9-962a-5beb06e90667.png)
  • Loading branch information
Salakar authored and thymikee committed Apr 20, 2019
1 parent 827daa4 commit 7839c05
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/platform-android/native_modules.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,10 @@ ext.applyNativeModulesAppBuildGradle = { Project project ->
applicationId = [variant.mergedFlavor.applicationId, variant.buildType.applicationIdSuffix].findAll().join()
}

task generatePackageList << {
autoModules.generatePackagesFile(generatedSrcDir, generatedFileName, generatedFileContentsTemplate, applicationId)
task generatePackageList {
doLast {
autoModules.generatePackagesFile(generatedSrcDir, generatedFileName, generatedFileContentsTemplate, applicationId)
}
}

preBuild.dependsOn generatePackageList
Expand Down

0 comments on commit 7839c05

Please sign in to comment.