Skip to content

Commit faeafd0

Browse files
committed
fix(android): fix typo in cmakeListsPath for turbo native local modules
1 parent 99a84dc commit faeafd0

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

packages/create-react-native-library/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ async function create(_argv: yargs.Arguments<any>) {
657657
repo: repoUrl,
658658
example,
659659
year: new Date().getFullYear(),
660+
local,
660661
};
661662

662663
const copyDir = async (source: string, dest: string) => {

packages/create-react-native-library/templates/native-library-mixed/react-native.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ module.exports = {
55
dependency: {
66
platforms: {
77
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+
<%_ } -%>
913
},
1014
},
1115
},

packages/create-react-native-library/templates/native-library-new/react-native.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ module.exports = {
55
dependency: {
66
platforms: {
77
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+
<%_ } -%>
913
},
1014
},
1115
},

packages/create-react-native-library/templates/native-view-mixed/react-native.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ module.exports = {
55
dependency: {
66
platforms: {
77
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+
<%_ } -%>
913
},
1014
},
1115
},

packages/create-react-native-library/templates/native-view-new/react-native.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ module.exports = {
55
dependency: {
66
platforms: {
77
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+
<%_ } -%>
913
},
1014
},
1115
},

0 commit comments

Comments
 (0)