build: version pump script (#1398)

* build: version pump script

* feat: server pump is optional

* chore: remove unused variable

* chore: examples

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
Jason Rasmussen
2023-01-23 22:46:37 -05:00
committed by GitHub
parent 4e6880e520
commit 443d08381a
14 changed files with 88 additions and 49 deletions

View File

@@ -336,7 +336,7 @@ Name | Type | Description | Notes
Current this is not used in any UI element
### Example
```dart

View File

@@ -11,7 +11,6 @@ Name | Type | Description | Notes
**major** | **int** | |
**minor** | **int** | |
**patch_** | **int** | |
**build** | **int** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -347,7 +347,7 @@ class AssetApi {
return null;
}
///
/// Current this is not used in any UI element
///
/// Note: This method returns the HTTP [Response].
///
@@ -383,7 +383,7 @@ class AssetApi {
);
}
///
/// Current this is not used in any UI element
///
/// Parameters:
///

View File

@@ -16,7 +16,6 @@ class ServerVersionReponseDto {
required this.major,
required this.minor,
required this.patch_,
required this.build,
});
int major;
@@ -25,32 +24,27 @@ class ServerVersionReponseDto {
int patch_;
int build;
@override
bool operator ==(Object other) => identical(this, other) || other is ServerVersionReponseDto &&
other.major == major &&
other.minor == minor &&
other.patch_ == patch_ &&
other.build == build;
other.patch_ == patch_;
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(major.hashCode) +
(minor.hashCode) +
(patch_.hashCode) +
(build.hashCode);
(patch_.hashCode);
@override
String toString() => 'ServerVersionReponseDto[major=$major, minor=$minor, patch_=$patch_, build=$build]';
String toString() => 'ServerVersionReponseDto[major=$major, minor=$minor, patch_=$patch_]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'major'] = this.major;
json[r'minor'] = this.minor;
json[r'patch'] = this.patch_;
json[r'build'] = this.build;
return json;
}
@@ -76,7 +70,6 @@ class ServerVersionReponseDto {
major: mapValueOfType<int>(json, r'major')!,
minor: mapValueOfType<int>(json, r'minor')!,
patch_: mapValueOfType<int>(json, r'patch')!,
build: mapValueOfType<int>(json, r'build')!,
);
}
return null;
@@ -129,7 +122,6 @@ class ServerVersionReponseDto {
'major',
'minor',
'patch',
'build',
};
}

View File

@@ -59,7 +59,7 @@ void main() {
// TODO
});
//
// Current this is not used in any UI element
//
//Future<Object> downloadLibrary({ num skip }) async
test('test downloadLibrary', () async {

View File

@@ -31,11 +31,6 @@ void main() {
// TODO
});
// int build
test('to test the property `build`', () async {
// TODO
});
});