ionic-team / ionic-team/trapeze

Feature request - Error when trying to set unusable version code

Open
#205 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
377
Forks
50
Avg merge
1m
Merged PRs (30d)
1

Description

Hi :)

I recently had a build issue on android because of a "small" problem:
In a project, we set the versionCode like `YYMMDD###`. Because of a minor error, the code was changed to generate not 3, but 4 digits at the end of that versionCode. That exceeded the maximum length allowed for this value (2100000000), but gradle only gave the following error (line 10 is `versionCode`):
```
FAILURE: Build failed with an exception.

* Where:
Build file '/android/app/build.gradle' line: 10

* What went wrong:
A problem occurred evaluating project ':app'.
> Value is null
```

Would it be possible to generate a warning/error when trying to set a versionCode higher than allowed with trapeze?
Or should I file an issue with gradle for a better error message?

Thanks
Marc

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.