mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
dbbc1c1624
Summary: Changelog: [Android][Added] - Basic definition for react gradle plugin Adds plugin and build configuration + copies config from react.gradle to extension. Copies internals of react.gradle to the plugin. Will be refactored in the next commits. Reviewed By: mdvacca Differential Revision: D25693008 fbshipit-source-id: b0feaa02cee8a1ee94d032426d19c501ff3b2534
28 lines
740 B
Groovy
28 lines
740 B
Groovy
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
plugins {
|
|
id 'java-gradle-plugin'
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
codegen {
|
|
id = 'com.facebook.react.codegen'
|
|
implementationClass = 'com.facebook.react.codegen.plugin.CodegenPlugin'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.android.tools.build:gradle:4.1.0'
|
|
// Use the same Gson version that `com.android.tools.build:gradle` depends on.
|
|
implementation 'com.google.code.gson:gson:2.8.5'
|
|
implementation 'com.google.guava:guava:29.0-jre'
|
|
implementation 'com.squareup:javapoet:1.13.0'
|
|
}
|