You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ react-native-version
66
66
-b, --increment-build Only increment build number
67
67
-d, --android [path] Path to your "android/app/build.gradle" file
68
68
-i, --ios [path] Path to your "ios/" folder
69
-
-r, --reset-build Reset build number back to "1" (iOS only)
69
+
-r, --reset-build Reset build number back to "1" (iOS only). Unlike Android's "versionCode", iOS doesn't require you to bump the "CFBundleVersion", as long as "CFBundleShortVersionString" changes. To make it consistent across platforms, react-native-version bumps both by default. You can use this option if you prefer to reset the build number after every version change. If you then need to push another build under the same version, you can use "-bt ios".
70
70
-t, --target <platforms> Only version specified platforms, eg. "--target android,ios"
.option('-d, --android [path]','Path to your "android/app/build.gradle" file',defaults.android)
15
16
.option('-i, --ios [path]','Path to your "ios/" folder',defaults.ios)
16
-
.option('-r, --reset-build','Reset build number back to "1" (iOS only)')
17
+
.option('-r, --reset-build','Reset build number back to "1" (iOS only). Unlike Android\'s "versionCode", iOS doesn\'t require you to bump the "CFBundleVersion", as long as "CFBundleShortVersionString" changes. To make it consistent across platforms, '+pkg.name+' bumps both by default. You can use this option if you prefer to reset the build number after every version change. If you then need to push another build under the same version, you can use "-bt ios".')
17
18
.option('-t, --target <platforms>','Only version specified platforms, eg. "--target android,ios"',list)
0 commit comments