Skip to content

Commit ab11a67

Browse files
author
Pedro Pombeiro
committed
Move files that don't change per platform to the root
1 parent 04de022 commit ab11a67

12 files changed

Lines changed: 8 additions & 24 deletions

File tree

File renamed without changes.

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ project.xcworkspace
4242
#
4343
node_modules/
4444
npm-debug.log
45-
.babelrc
4645
yarn-error.log
4746
default.realm/
4847

@@ -119,7 +118,6 @@ fastlane/README.md
119118
.dir-locals.el
120119

121120
#ignore platform-specific files in the root since they are only symlinks to files in folders 'desktop_files' and 'mobile_files'
122-
/VERSION
123121
/package-lock.json
124122
/package.json
125123
/metro.config.js
File renamed without changes.

ci/android.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def bundle() {
1111
/* PR builds shouldn't replace normal releases */
1212
target = 'pr'
1313
} else if (btype == 'release') {
14-
gradleOpt += "-PreleaseVersion='${utils.getVersion('mobile_files')}'"
14+
gradleOpt += "-PreleaseVersion='${utils.getVersion()}'"
1515
}
1616
dir('android') {
1717
withCredentials([

ci/github.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def publishRelease(Map args) {
182182

183183
def publishReleaseMobile() {
184184
publishRelease(
185-
version: utils.getVersion('mobile_files')+'-mobile',
185+
version: utils.getVersion()+'-mobile',
186186
pkgDir: 'pkg',
187187
files: [ /* upload only mobile release files */
188188
utils.pkgFilename(btype, 'ipa'),

ci/ios.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def bundle() {
1818
}
1919
/* configure build metadata */
2020
nix.shell(
21-
plutil('CFBundleShortVersionString', utils.getVersion('mobile_files')) +
21+
plutil('CFBundleShortVersionString', utils.getVersion()) +
2222
plutil('CFBundleVersion', utils.genBuildNumber()) +
2323
plutil('CFBundleBuildUrl', currentBuild.absoluteUrl)
2424
)

ci/utils.groovy

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
nix = load 'ci/nix.groovy'
22

3-
def getVersion(type = null) {
4-
/* if type is undefined we get VERSION from repo root */
3+
def getVersion() {
54
def path = "${env.WORKSPACE}/VERSION"
6-
if (type != null) {
7-
path = "${env.WORKSPACE}/${type}/VERSION"
8-
}
95
return readFile(path).trim()
106
}
117

desktop_files/.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

ios/scripts/set_xcode_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ INFO_PLIST="${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"
2222
if [[ $(git ls-files -m "StatusIm/Info.plist") = *"Info.plist"* ]]; then
2323
echo "version was set in Info.plist"
2424
else
25-
RELEASE_VERSION=$(cat ../VERSION)
25+
RELEASE_VERSION=$(cat ../../VERSION)
2626
BUILD_NO=$(bash ../scripts/build_no.sh)
2727

2828
# For debugging:

mobile_files/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)