-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update the Fastlane flows (#139)
* refactor: delete base Fastlane env files * feat: iOS Fastlane config * feat: android Fastlane config * refactor: update some logic
- Loading branch information
Showing
30 changed files
with
894 additions
and
489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
const iOSVersionRegexp = /(<key>CFBundleShortVersionString<\/key>\s*?<string>)(\d+\.\d+\.\d+)(<\/string>)/; | ||
const androidVersionRegexp = /(versionName ")(\d+\.\d+\.\d+)(")/; | ||
|
||
const regexpUpdater = (regexp) => { | ||
return { | ||
readVersion: (content) => { | ||
const match = content.match(regexp); | ||
|
||
if (!match) { | ||
throw new Error('Could not read version from project'); | ||
} | ||
|
||
return match[2]; | ||
}, | ||
writeVersion: (content, version) => { | ||
return content.replace(regexp, `$1${version}$3`); | ||
}, | ||
}; | ||
}; | ||
|
||
const iOSUpdater = regexpUpdater(iOSVersionRegexp); | ||
const androidUpdater = regexpUpdater(androidVersionRegexp); | ||
|
||
module.exports = { | ||
releaseCommitMessageFormat: 'chore(release): v{{currentTag}} [skip ci]', | ||
bumpFiles: [ | ||
{ | ||
filename: 'package.json', | ||
}, | ||
{ | ||
filename: 'ios/development-Info.plist', | ||
updater: iOSUpdater, | ||
}, | ||
{ | ||
filename: 'ios/staging-Info.plist', | ||
updater: iOSUpdater, | ||
}, | ||
{ | ||
filename: 'ios/rnStarter/Info.plist', | ||
updater: iOSUpdater, | ||
}, | ||
{ | ||
filename: 'android/app/build.gradle', | ||
updater: androidUpdater, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +0,0 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
# 1.1.0 iOS Production (2020-09-14) | ||
|
||
### Features | ||
|
||
- update the versionning handling for iOS ([ba94615](https://github.com/tsyirvo/react-native-starter/commit/ba9461535860a94d2ea28e5f493a9bf2c33e63e2))# 1.1.0 - Android Production (2020-09-14) | ||
|
||
# 1.1.0 Android Production (2020-09-14) | ||
|
||
### Features | ||
|
||
- add Fastlane versionning for Android ([245a276](https://github.com/tsyirvo/react-native-starter/commit/245a276e7b9ff3784393e40b9e80d09d7d85734a)) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.