Skip to content

Commit a22f30d

Browse files
cortinicofacebook-github-bot
authored andcommitted
Fix missing import on New Architecture build script in template (#34230)
Summary: Pull Request resolved: #34230 The OS static class is accessed inside app/build.gradle but the import is on the top level Gradle file. This is causing an app created from template to fail building. This is needed to be cherry-picked on the 0.70-stable branch. Changelog: [Android] [Fixed] - Fix missing import on New Architecture build script in template Reviewed By: cipolleschi Differential Revision: D37995897 fbshipit-source-id: aad22100cee004944c4fa0841f5ef0dfc6ea1e94
1 parent 698b147 commit a22f30d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

template/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apply plugin: "com.android.application"
22

33
import com.android.build.OutputFile
4+
import org.apache.tools.ant.taskdefs.condition.Os
45

56
/**
67
* The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets

template/android/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import org.apache.tools.ant.taskdefs.condition.Os
2-
31
// Top-level build file where you can add configuration options common to all sub-projects/modules.
42

53
buildscript {

0 commit comments

Comments
 (0)