Skip to content

Commit

Permalink
v1.0.5 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-j0y authored Jan 26, 2024
1 parent 11a4c47 commit 7ce102b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/control_multi_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def write_gradle_version(vc_variable_name, vn_variable_name, new_version_code, n
env_file.write(f"NEXT_VERSION_NAME={new_version_name}\n")
env_file.write(f"NEXT_VERSION_CODE={new_version_code}\n")


# label들을 해석하는 함수
def decode_labels(labels, version_name_dev, version_name_stg, version_name_prod, version_code_dev, version_code_stg, version_code_prod):
label_list = labels.split(' ')
Expand Down Expand Up @@ -88,6 +89,7 @@ def update_version(arg, label_list):
if f'bump-{version_type.name.lower()}' in label_list:
bump_version(version_type, arg['version_code_variable_name'], arg['version_name_variable_name'], version_code, major_version, minor_version, patch_version, revision_version)


# 버전 올리는 함수
def bump_version(version_category, vc_variable_name, vn_variable_name, version_code, major_version, minor_version, patch_version, revision_version) :
print(f"Current version : {major_version}.{minor_version}.{patch_version}.{revision_version}")
Expand Down
6 changes: 3 additions & 3 deletions version.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
version_name_test_dev = "1.0.0"
version_name_test_stg = "1.0.0"
version_name_test_prod = "1.0.0"
version_name_test_dev = "1.0.0.0"
version_name_test_stg = "1.0.0.0"
version_name_test_prod = "1.0.0.0"
version_code_test_dev = 1
version_code_test_stg = 1
version_code_test_prod = 1
Expand Down

0 comments on commit 7ce102b

Please sign in to comment.