All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.facebook.react.ReactRootProjectPlugin.kt Maven / Gradle / Ivy

Go to download

This is the Hyperswitch SDK for Android, providing seamless integration with the Hyperswitch platform.

There is a newer version: 0.75.2.1
Show newest version
/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

package com.facebook.react

import org.gradle.api.Plugin
import org.gradle.api.Project

/**
 * Gradle plugin applied to the `android/build.gradle` file.
 *
 * This plugin allows to specify project wide configurations that can be applied to both apps and
 * libraries before they're evaluated.
 */
class ReactRootProjectPlugin : Plugin {
  override fun apply(project: Project) {
    project.subprojects {
      // As the :app project (i.e. ReactPlugin) configures both namespaces and JVM toolchains
      // for libraries, its evaluation must happen before the libraries' evaluation.
      // Eventually the configuration of namespace/JVM toolchain can be moved inside this plugin.
      if (it.path != ":app") {
        it.evaluationDependsOn(":app")
      }
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy