Skip to content

Commit

Permalink
Set Dart and Go version to 1.x (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis-Averin committed Jan 29, 2024
1 parent c5ca227 commit 2947357
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/new-version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_CONFIG_DIR = os.path.join(SCRIPT_DIR, "..", "codegen")

GO_VERSION_FORMAT = "0.{0}{1:02d}.{2}"
GO_VERSION_FORMAT = "1.{0}{1:02d}.{2}"


def set_android_version(new_version, filename=os.path.join(BASE_CONFIG_DIR, "config-android.json")):
Expand All @@ -29,7 +29,7 @@ def set_go_version(new_version, filename=os.path.join(BASE_CONFIG_DIR, "config-g

def set_dart_version(new_version, filename=os.path.join(BASE_CONFIG_DIR, "config-dart.json")):
config = read_config(filename)
pub_version = str.join(".", map(str, (0,) + new_version[:2]))
pub_version = str.join(".", map(str, (1,) + new_version[:2]))
if new_version[2] > 0:
pub_version += "+" + str(new_version[2])
config["pubVersion"] = pub_version
Expand Down

0 comments on commit 2947357

Please sign in to comment.