Android: use Fabric component codegen output instead of checked in files

Summary:
For core components, we can start using the codegen output during build time instead of the checked in files in: https://github.com/facebook/react-native/tree/master/ReactAndroid/src/main/java/com/facebook/react/viewmanagers

Note: Some files seemed to be handwritten, so this only removed those that use codegen.

Changelog: [Internal]

Reviewed By: JoshuaGross

Differential Revision: D25453157

fbshipit-source-id: f7eabddfd3fd668bef0c4aef3fddcb38c8b046a0
This commit is contained in:
Kevin Gozali
2020-12-21 22:43:35 -08:00
committed by Facebook GitHub Bot
parent 331dc2a998
commit 15a3a01082
32 changed files with 14 additions and 872 deletions
@@ -216,9 +216,7 @@ module.exports = {
packageName?: string,
): FilesOutput {
// TODO: This doesn't support custom package name yet.
// TODO: But it customizes the name here temporarily to prepare for Fabric RNTester support.
const normalizedPackageName =
packageName != null ? packageName : 'com.facebook.react.viewmanagers';
const normalizedPackageName = 'com.facebook.react.viewmanagers';
const outputDir = `java/${normalizedPackageName.replace(/\./g, '/')}`;
const files = new Map();