Skip to content

Commit f023519

Browse files
fkgozalifacebook-github-bot
authored andcommitted
TurboModule Android: Enable TurboModule by default on RNTester
Summary: This does a few things: * Remove USE_CODEGEN flag so that TurboModule is enabled by default for RNTester * Use the codegen output for Java/JNI spec files * Remove the checked in com.facebook.fbreact.specs Java/JNI files Changelog: [Changed][Android] RNTester now enables TurboModule by default using codegen. Reviewed By: RSNara Differential Revision: D24382083 fbshipit-source-id: 87e3e0581bac3287ef01c1a0deb070c1d7d40f2d
1 parent f2ba978 commit f023519

74 files changed

Lines changed: 3 additions & 6752 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ReactAndroid/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ def thirdPartyNdkDir = new File("$buildDir/third-party-ndk")
3333
// - glog-0.3.5
3434
def dependenciesPath = System.getenv("REACT_NATIVE_DEPENDENCIES")
3535

36-
// The 'USE_CODEGEN' environment variable will use codegen and compile the output.
37-
def enableCodegen = (System.getenv('USE_CODEGEN') ?: '0').toBoolean()
38-
3936
// The 'USE_FABRIC' environment variable will build Fabric C++ code into the bundle
4037
// USE_FABRIC=0 will build RN excluding fabric
4138
// USE_FABRIC=1 will build RN including fabric
@@ -321,7 +318,6 @@ def buildReactNdkLib = tasks.register("buildReactNdkLib", Exec) {
321318
"REACT_GENERATED_SRC_DIR=$buildDir/generated/source",
322319
"REACT_SRC_DIR=$projectDir/src/main/java/com/facebook/react",
323320
"BUILD_FABRIC=$enableFabric",
324-
"USE_CODEGEN=$enableCodegen",
325321
"-C", file("src/main/jni/react/jni").absolutePath,
326322
"--jobs", project.findProperty("jobs") ?: Runtime.runtime.availableProcessors()
327323
)

ReactAndroid/src/main/java/com/facebook/fbreact/specs/BUCK

Lines changed: 0 additions & 58 deletions
This file was deleted.

ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAccessibilityInfoSpec.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAccessibilityManagerSpec.java

Lines changed: 0 additions & 54 deletions
This file was deleted.

ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeActionSheetManagerSpec.java

Lines changed: 0 additions & 34 deletions
This file was deleted.

ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAlertManagerSpec.java

Lines changed: 0 additions & 30 deletions
This file was deleted.

ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAnimatedModuleSpec.java

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)