From d3c7befa0371fcdf3676c5b14a0ddf4055fefda6 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Wed, 20 Jul 2022 05:58:44 -0700 Subject: [PATCH] Fix missing import on New Architecture build script in template Summary: 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 Differential Revision: D37995897 fbshipit-source-id: dd4adc3aadfeabdcf63b522109d299373071d8c8 --- template/android/app/build.gradle | 1 + template/android/build.gradle | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/template/android/app/build.gradle b/template/android/app/build.gradle index bb4470cd7336d7..5816fe08d543ad 100644 --- a/template/android/app/build.gradle +++ b/template/android/app/build.gradle @@ -1,6 +1,7 @@ apply plugin: "com.android.application" import com.android.build.OutputFile +import org.apache.tools.ant.taskdefs.condition.Os /** * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets diff --git a/template/android/build.gradle b/template/android/build.gradle index 338dc272f39db8..8569fee3a7f5b9 100644 --- a/template/android/build.gradle +++ b/template/android/build.gradle @@ -1,5 +1,3 @@ -import org.apache.tools.ant.taskdefs.condition.Os - // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript {