-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
741 additions
and
231 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### ANDROID CONFIG ### | ||
ANDROID_PACKAGE_ID='com.rnstarter.staging' | ||
ANDROID_JSON_KEY='' | ||
|
||
### APP CENTER ### | ||
APPCENTER_API_TOKEN='' | ||
APPCENTER_OWNER_TYPE='' ## user or organization | ||
APPCENTER_OWNER_NAME='' ## URL of the account in App Center | ||
APPCENTER_APP_NAME='' ## URL of the app in App Center |
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,19 @@ | ||
### IOS CONFIG ### | ||
IOS_APP_ID='ninja.gab.rnStarter' ## The app base Bundle ID | ||
IOS_APPLE_ID='' ## Email address associated to the Apple account | ||
IOS_TEAM_ID='' ## App Store Connect Team ID | ||
IOS_ITC_TEAM_NAME='' ## Developer Portal Team ID | ||
|
||
### IOS PROJECT ### | ||
IOS_WORKSPACE='rnStarter.xcworkspace' | ||
IOS_XCODEPROJ='rnStarter.xcodeproj' | ||
|
||
### IOS MATCH ### | ||
MATCH_GIT_URL='' ## Repo storing the Code Signing | ||
MATCH_PASSWORD='' ## Passphrase securing the repo | ||
|
||
### APP CENTER ### | ||
APPCENTER_API_TOKEN='' | ||
APPCENTER_OWNER_TYPE='' ## user or organization | ||
APPCENTER_OWNER_NAME='' ## URL of the account in App Center | ||
APPCENTER_APP_NAME='' ## URL of the app in App Center |
Oops, something went wrong.