Skip to content

Commit 7845de0

Browse files
authored
Fix issue with new react-native cli breaking changes
1 parent 3b8be35 commit 7845de0

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

react-native.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const { versioner } = require('./lib/index')
2+
const path = require('path')
23

34
module.exports = {
45
commands: [{
@@ -11,10 +12,16 @@ module.exports = {
1112
return
1213
}
1314

15+
const appGradlePath = path.join(
16+
config.project.android.sourceDir,
17+
config.project.android.appName,
18+
'build.gradle'
19+
)
20+
1421
versioner({
1522
root: config.root,
1623
pbxprojPath: config.project.ios.pbxprojPath,
17-
buildGradlePath: config.project.android.buildGradlePath,
24+
buildGradlePath: appGradlePath,
1825
type: args.type,
1926
skipCodeFor: args.skipCodeFor
2027
? args.skipCodeFor.split(' ')

0 commit comments

Comments
 (0)