Skip to content

Commit 7eef545

Browse files
committed
chore: Release version 1.0.4
1 parent 821643f commit 7eef545

File tree

5 files changed

+26
-32
lines changed

5 files changed

+26
-32
lines changed

android/app/versionCode.gradle

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
// Adapted from:
22
// https://gist.github.com/carloscuesta/678668da906bb80bdd22c8fd690c4fc4
33

4-
task('incrementVersionCode') {
5-
description "Increments Version Code"
6-
doLast {
7-
def versionCode = Integer.parseInt(VERSION_CODE) + 1
8-
ant.propertyfile(file: "../gradle.properties") {
9-
entry(key: "VERSION_CODE", value: versionCode)
10-
}
4+
tasks.whenTaskAdded { task ->
5+
if (task.name == 'bundleRelease') {
6+
incrementVersionCode()
117
}
128
}
139

14-
tasks.whenTaskAdded { task ->
15-
if (task.name == 'bundleRelease') {
16-
task.dependsOn 'incrementVersionCode'
10+
def incrementVersionCode() {
11+
def versionCode = Integer.parseInt(VERSION_CODE) + 1
12+
ant.propertyfile(file: "../gradle.properties") {
13+
entry(key: "VERSION_CODE", value: versionCode)
1714
}
1815
}

android/app/versionName.gradle

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
// Adapted from: https://stackoverflow.com/a/54146923/14765128
22
import groovy.json.JsonSlurper
33

4-
task('syncVersionNameFromPackageJson') {
5-
description "Increments Version Code"
6-
doLast {
7-
def versionName = getVersionFromNpm()
8-
ant.propertyfile(file: "../gradle.properties") {
9-
entry(key: "VERSION_NAME", value: versionName)
10-
}
4+
tasks.whenTaskAdded { task ->
5+
if (task.name == 'bundleRelease') {
6+
syncVersionNameFromPackageJson()
117
}
128
}
139

14-
tasks.whenTaskAdded { task ->
15-
if (task.name == 'bundleRelease') {
16-
task.dependsOn 'syncVersionNameFromPackageJson'
10+
def syncVersionNameFromPackageJson() {
11+
def versionName = getVersionFromNpm()
12+
ant.propertyfile(file: "../gradle.properties") {
13+
entry(key: "VERSION_NAME", value: versionName)
1714
}
1815
}
1916

android/gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Sat, 09 Sep 2023 16:21:23 -0700
1+
#Sun, 22 Oct 2023 08:56:02 -0700
22
# Project-wide Gradle settings.
33

44
# IDE (e.g. Android Studio) users:
@@ -44,5 +44,5 @@ newArchEnabled=false
4444
# If set to false, you will be using JSC instead.
4545
hermesEnabled=true
4646

47-
VERSION_CODE=16
48-
VERSION_NAME=1.0.3
47+
VERSION_CODE=20
48+
VERSION_NAME=1.0.4

ios/BinaryClock.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@
438438
buildSettings = {
439439
BUNDLE_LOADER = "$(TEST_HOST)";
440440
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
441-
CURRENT_PROJECT_VERSION = 43;
441+
CURRENT_PROJECT_VERSION = 46;
442442
DEVELOPMENT_TEAM = XLMP575759;
443443
GCC_PREPROCESSOR_DEFINITIONS = (
444444
"DEBUG=1",
@@ -451,7 +451,7 @@
451451
"@executable_path/Frameworks",
452452
"@loader_path/Frameworks",
453453
);
454-
MARKETING_VERSION = 1.0.3;
454+
MARKETING_VERSION = 1.0.4;
455455
OTHER_LDFLAGS = (
456456
"-ObjC",
457457
"-lc++",
@@ -470,7 +470,7 @@
470470
BUNDLE_LOADER = "$(TEST_HOST)";
471471
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
472472
COPY_PHASE_STRIP = NO;
473-
CURRENT_PROJECT_VERSION = 43;
473+
CURRENT_PROJECT_VERSION = 46;
474474
DEVELOPMENT_TEAM = XLMP575759;
475475
INFOPLIST_FILE = BinaryClockTests/Info.plist;
476476
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
@@ -479,7 +479,7 @@
479479
"@executable_path/Frameworks",
480480
"@loader_path/Frameworks",
481481
);
482-
MARKETING_VERSION = 1.0.3;
482+
MARKETING_VERSION = 1.0.4;
483483
OTHER_LDFLAGS = (
484484
"-ObjC",
485485
"-lc++",
@@ -500,7 +500,7 @@
500500
CODE_SIGN_IDENTITY = "Apple Development";
501501
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
502502
CODE_SIGN_STYLE = Manual;
503-
CURRENT_PROJECT_VERSION = 43;
503+
CURRENT_PROJECT_VERSION = 46;
504504
DEVELOPMENT_TEAM = "";
505505
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = XLMP575759;
506506
ENABLE_BITCODE = NO;
@@ -510,7 +510,7 @@
510510
"$(inherited)",
511511
"@executable_path/Frameworks",
512512
);
513-
MARKETING_VERSION = 1.0.3;
513+
MARKETING_VERSION = 1.0.4;
514514
OTHER_LDFLAGS = (
515515
"$(inherited)",
516516
"-ObjC",
@@ -535,7 +535,7 @@
535535
CODE_SIGN_IDENTITY = "Apple Distribution";
536536
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
537537
CODE_SIGN_STYLE = Manual;
538-
CURRENT_PROJECT_VERSION = 43;
538+
CURRENT_PROJECT_VERSION = 46;
539539
DEVELOPMENT_TEAM = "";
540540
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = XLMP575759;
541541
INFOPLIST_FILE = BinaryClock/Info.plist;
@@ -544,7 +544,7 @@
544544
"$(inherited)",
545545
"@executable_path/Frameworks",
546546
);
547-
MARKETING_VERSION = 1.0.3;
547+
MARKETING_VERSION = 1.0.4;
548548
OTHER_LDFLAGS = (
549549
"$(inherited)",
550550
"-ObjC",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "binaryclock",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"private": true,
55
"scripts": {
66
"env": "dotenv -e ./fastlane/.env",

0 commit comments

Comments
 (0)