Skip to content

Commit 75d63f9

Browse files
author
Martin Konicek
committed
Fix gitignore
build/ is too generic, ignores valid paths. Test plan: - Built Android UI explorer, ReactAndroid, iOS UIExplorer, iOS React - Git still ignores build output files correctly
1 parent 14f43a1 commit 75d63f9

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ DerivedData
2121
*.xcuserstate
2222
project.xcworkspace
2323

24-
# Xcode, Gradle
25-
build/
24+
# Gradle
25+
/build/
26+
/Examples/**/android/app/build/
27+
/ReactAndroid/build
2628

2729
# Android
2830
.idea
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*/
9+
10+
package com.facebook.react.common.build;
11+
12+
import com.facebook.react.BuildConfig;
13+
14+
/**
15+
* Convenience class for accessing auto-generated BuildConfig so that a) other modules can just
16+
* depend on this module instead of having to manually depend on generating their own build config
17+
* and b) we don't have to deal with IntelliJ getting confused about the autogenerated BuildConfig
18+
* class all over the place.
19+
*/
20+
public class ReactBuildConfig {
21+
22+
public static final boolean DEBUG = BuildConfig.DEBUG;
23+
public static final boolean IS_INTERNAL_BUILD = BuildConfig.IS_INTERNAL_BUILD;
24+
}

0 commit comments

Comments
 (0)