diff --git a/lib/cli/cli.dart b/lib/cli/cli.dart index d9cbba7..dbea453 100644 --- a/lib/cli/cli.dart +++ b/lib/cli/cli.dart @@ -121,8 +121,8 @@ class CLI { } static final commandNameSpace = 21; - static get serviceName => CLI.current.config.serviceName; - static get executableFileName => CLI.current.config.executableFileName; + static String get serviceName => CLI.current.config.serviceName; + static String get executableFileName => CLI.current.config.executableFileName; static Future print(List printList, {Color? color, Color? background}) async { diff --git a/lib/oto/application.dart b/lib/oto/application.dart index 3c0b877..ab9d584 100644 --- a/lib/oto/application.dart +++ b/lib/oto/application.dart @@ -52,7 +52,7 @@ class Application { late Pipeline pipeline; late BuildType _buildType; - get buildType { + BuildType get buildType { return _buildType; } diff --git a/lib/oto/commands/build/build_ios.dart b/lib/oto/commands/build/build_ios.dart index b5408a5..05acb10 100644 --- a/lib/oto/commands/build/build_ios.dart +++ b/lib/oto/commands/build/build_ios.dart @@ -68,7 +68,7 @@ class BuildiOS extends Command { 'REPLACED_WITH_NEW_VERSION' ]; List jsonArr; - String? readyForSaleVersion = null; + String? readyForSaleVersion; for (var item in arr) { if (item.contains(result)) { jsonArr = @@ -123,7 +123,7 @@ class BuildiOS extends Command { if (targetBuildNumber == null) { throw Exception('Can not find target build number.'); } - buildNumber = incrementVersion(targetBuildNumber, fixedLength: 4); + buildNumber = incrementVersion(targetBuildNumber, fixedLength: 4, reverse: true ); } String? target = data.target; diff --git a/lib/oto/commands/command.dart b/lib/oto/commands/command.dart index ca3288d..f40834a 100644 --- a/lib/oto/commands/command.dart +++ b/lib/oto/commands/command.dart @@ -270,7 +270,7 @@ abstract class Command { if (match == null) { throw Exception('Please put the correct value. (ex: <@property.value>)'); } - tag = match!.group(2)!; + tag = match.group(2)!; if (tag.startsWith('property')) { var key = tag.replaceFirst('property.', ''); Application.instance.property[key] = value;