From 509f9ed516a038924b2172dae514c14c3499a635 Mon Sep 17 00:00:00 2001 From: Tom McIntosh Date: Sun, 15 Nov 2020 00:27:15 +1000 Subject: [PATCH] v2.2.0 --- README.md | 20 ++++++++++++++++++-- package.json | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 90c4324..8d9ca52 100644 --- a/README.md +++ b/README.md @@ -43,19 +43,35 @@ $: npm run setVersion 1.20200909.1 In most cases it makes sense to use conventional [semantic versioning.](https://semver.org/spec/v2.0.0.html) From version 2, RNVS has full support for extended semVer syntax, like `1.2.3-alpha`. These symbols are not supported on iOS, -so they are stripped out automatically. They will be inserted normal into android files and `package.json`. +so they are stripped out automatically. They will be inserted as normal into android files and `package.json`. ## β›³ Flags `-d`: Runs with debug logging. `-r`: Prepares version strings, but logs to console instead of writing to file. +`-android`: Set version for android only + +`-ios`: Set version for iOS only + +## βš™οΈ Config +In most cases you won't need any config at all, but creating a `.rnvs.json` file in your project root will expose some extra options. Below are all accepted properties with example values. +``` +{ + // RNVS uses the project name + // in package.json by default, + // But your ios project name might differ. + "iosProjectName": "MyApp" +} +``` + + ## πŸ’» Compatibility - Compatible with iOS projects using Xcode 11+ ## πŸ—ΊοΈ Roadmap - getVersion command -- setVersion per-platform +- setVersion per-platform βœ… v2.1.0 ## πŸ‘‹ Troubleshooting #### Version setting not working on new project diff --git a/package.json b/package.json index 6cee134..9d59141 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-version-setter", - "version": "2.1.0", + "version": "2.2.0", "description": "Update your app version with a single command.", "homepage": "https://www.github.com/tj-mc/react-native-version-setter", "main": "build/setVersion.js",