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
+1-10Lines changed: 1 addition & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,6 @@
2
2
3
3
Seamlessly shadows the behaviour of [`npm version`](https://docs.npmjs.com/cli/version).
4
4
5
-
## Prerequisites
6
-
7
-
- Xcode Command Line Tools (`xcode-select --install`)
8
-
9
-
## Project setup
10
-
11
-
Open your Xcode project and under "Build Settings -> Versioning -> Current Project Version", set the value to your current `CFBundleVersion` ("General -> Identity -> Build").
12
-
13
-
---
14
-
15
5
## npm-scripts hook (automatic method)
16
6
17
7
### Setup
@@ -72,6 +62,7 @@ react-native-version
72
62
-b, --increment-build Only increment build number.
73
63
-d, --android [path] Path to your "android/app/build.gradle" file.
74
64
-i, --ios [path] Path to your "ios/" folder.
65
+
-L, --legacy Version iOS using agvtool (macOS only). Requires Xcode Command Line Tools.
75
66
-q, --quiet Be quiet, only report errors.
76
67
-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 keep the build number value at "1" after every version change. If you then need to push another build under the same version, you can use "-bt ios" to increment.
77
68
-t, --target <platforms> Only version specified platforms, eg. "--target android,ios".
0 commit comments