versioning-react-native-app icon indicating copy to clipboard operation
versioning-react-native-app copied to clipboard

fix(android): Updated version code to better reflect builds.

Open timothystewart6 opened this issue 7 years ago • 1 comments

I ran into an issue where I had over 100 version of a patch. After bumping the minor version Google was complaining about my app code being less than the previous. I realized that this helped:

major = 10000 minor = 1000 patch = 100

where version 2.1.3 would be version code 21300 rather than 20103

The issue remains if I go over 999 patch releases however not likely to happen.

Thank you again for your Medium post. It's been working great for months until this little issue.

timothystewart6 avatar Nov 25 '17 22:11 timothystewart6

@timothystewart6 I'm curious, what was the number generated for you in this case that was lower then previous?

lucianomlima avatar Mar 07 '18 03:03 lucianomlima