File tree Expand file tree Collapse file tree 5 files changed +21
-4
lines changed
packages/create-react-native-library Expand file tree Collapse file tree 5 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -657,6 +657,7 @@ async function create(_argv: yargs.Arguments<any>) {
657
657
repo : repoUrl ,
658
658
example,
659
659
year : new Date ( ) . getFullYear ( ) ,
660
+ local,
660
661
} ;
661
662
662
663
const copyDir = async ( source : string , dest : string ) => {
Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ module.exports = {
5
5
dependency : {
6
6
platforms : {
7
7
android : {
8
- cmakeListsPath : 'build/generated/source/codegen/jni/CMakeLists.txt' ,
8
+ < % _ if ( local ) { - % >
9
+ cmakeListsPath : 'build/generated/source/codegen/jni/CMakeLists.txt' ,
10
+ < % _ } else { - % >
11
+ cmakeListsPath : 'generated/jni/CMakeLists.txt' ,
12
+ < % _ } - % >
9
13
} ,
10
14
} ,
11
15
} ,
Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ module.exports = {
5
5
dependency : {
6
6
platforms : {
7
7
android : {
8
- cmakeListsPath : 'build/generated/source/codegen/jni/CMakeLists.txt' ,
8
+ < % _ if ( local ) { - % >
9
+ cmakeListsPath : 'build/generated/source/codegen/jni/CMakeLists.txt' ,
10
+ < % _ } else { - % >
11
+ cmakeListsPath : 'generated/jni/CMakeLists.txt' ,
12
+ < % _ } - % >
9
13
} ,
10
14
} ,
11
15
} ,
Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ module.exports = {
5
5
dependency : {
6
6
platforms : {
7
7
android : {
8
- cmakeListsPath : 'build/generated/source/codegen/jni/CMakeLists.txt' ,
8
+ < % _ if ( local ) { - % >
9
+ cmakeListsPath : 'build/generated/source/codegen/jni/CMakeLists.txt' ,
10
+ < % _ } else { - % >
11
+ cmakeListsPath : 'generated/jni/CMakeLists.txt' ,
12
+ < % _ } - % >
9
13
} ,
10
14
} ,
11
15
} ,
Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ module.exports = {
5
5
dependency : {
6
6
platforms : {
7
7
android : {
8
- cmakeListsPath : 'build/generated/source/codegen/jni/CMakeLists.txt' ,
8
+ < % _ if ( local ) { - % >
9
+ cmakeListsPath : 'build/generated/source/codegen/jni/CMakeLists.txt' ,
10
+ < % _ } else { - % >
11
+ cmakeListsPath : 'generated/jni/CMakeLists.txt' ,
12
+ < % _ } - % >
9
13
} ,
10
14
} ,
11
15
} ,
You can’t perform that action at this time.
0 commit comments