File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
gradle-plugins/react/brownfield/src/main/kotlin/com/callstack/react/brownfield/plugin Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,12 @@ object RNSourceSets {
68
68
path : String ,
69
69
) {
70
70
val rnEntryPointTaskName = " generateReactNativeEntryPoint"
71
- val rnEntryPointTask = appProject.tasks.named(rnEntryPointTaskName)
72
71
73
72
/* *
74
73
* If `generateReactNativeEntryPoint` task does not exist, we early return. It means
75
74
* the consumer library is running on RN version < 0.80
76
75
*/
77
- if (! rnEntryPointTask.isPresent) {
78
- return
79
- }
76
+ val rnEntryPointTask = appProject.tasks.findByName(rnEntryPointTaskName) ? : return
80
77
81
78
task.dependsOn(rnEntryPointTask)
82
79
val sourceFile = File (moduleBuildDir.toString(), " $path /com/facebook/react/ReactNativeApplicationEntryPoint.java" )
You can’t perform that action at this time.
0 commit comments