File tree Expand file tree Collapse file tree 1 file changed +8
-21
lines changed Expand file tree Collapse file tree 1 file changed +8
-21
lines changed Original file line number Diff line number Diff line change 1
- let supportsCodegenConfig = true ;
2
- try {
3
- const rnCliAndroidVersion = require . main . require (
4
- '@react-native-community/cli-platform-android/package.json' ,
5
- ) . version ;
6
- const [ major ] = rnCliAndroidVersion . split ( '.' ) ;
7
- supportsCodegenConfig = major >= 9 ;
8
- } catch ( e ) {
9
- // ignore
10
- }
11
-
12
1
module . exports = {
13
2
dependency : {
14
3
platforms : {
15
- android : supportsCodegenConfig
16
- ? {
17
- libraryName : 'safeareacontext' ,
18
- componentDescriptors : [
19
- 'RNCSafeAreaProviderComponentDescriptor' ,
20
- 'RNCSafeAreaViewComponentDescriptor' ,
21
- ] ,
22
- cmakeListsPath : 'src/main/jni/CMakeLists.txt' ,
23
- }
24
- : { } ,
4
+ android : {
5
+ libraryName : 'safeareacontext' ,
6
+ componentDescriptors : [
7
+ 'RNCSafeAreaProviderComponentDescriptor' ,
8
+ 'RNCSafeAreaViewComponentDescriptor' ,
9
+ ] ,
10
+ cmakeListsPath : 'src/main/jni/CMakeLists.txt' ,
11
+ } ,
25
12
macos : null ,
26
13
windows : null ,
27
14
} ,
You can’t perform that action at this time.
0 commit comments