Behavior changes
- The bare command no longer writes. It compares the native files with
package.jsonand exits 1 when a platform is outdated. Pass--writeto update, and changenpm versionhooks torn-version-sync --write. - The output is one table showing what each file says, with a
jsrow forpackage.json. A missing native file gets anot foundrow instead of a warning on stderr. --dry-runand--verboseare removed.--writenow fails when the app id cannot be resolved (Android flavors with their ownapplicationId, variable bundle identifiers), since both modes read it for the table.- Project settings can be stored under an
"rn-version-sync"key inpackage.json:reserveBuilds,gradlePath,pbxprojPath,configuration,skipAndroid,skipIos. Command line options take precedence. - Library:
checkVersionsis new.syncVersionsreturns per-platform status with anupdatedflag pluspackageName,packageVersion,overriddenandmissing, instead of file paths. The updaters lose theirverboseparameter. All functions apply thepackage.jsonconfiguration, andloadConfigandProjectConfigare exported.
What's Changed
- Make the bare command a check and require --write by @friederbluemle in #28
- Read project settings from package.json by @friederbluemle in #29
Full Changelog: v0.7.0...v0.8.0