Comments (1)
to add my two cents' worth here...
Would it be possible to generate a warning/error when trying to set a versionCode higher than allowed with trapeze?
I feel like this falls outside the scope of things that Trapeze should be expected to cover..
while I do not know what it is in Google's ecosystem that imposes this "maximum value limitation" for the Android versionCode
value, I do believe that they are highly unlikely to change anytime soon. it could very well be dependent on many other things.
so if Trapeze did implement any special handling for this particular property, then any changes to these limitations would likely require changes in Trapeze as well. potentially breaking changes, depending on how it changes on Google's side.
Or should I file an issue with gradle for a better error message?
similarly, I feel like this is also not something that Gradle should have any say in directly, as that in itself is a generic build system (and dependency manager, and and and...), whereas the value of this particular property is only relevant to the Android ecosystem (which simply uses Gradle).
Gradle is just reporting an error based on the current build configuration requirements, as defined in Android-specific workflows, where even those requirements are distributed in separate "build config" packages, imported and parsed by Gradle at build time.
some food for thought regarding an alternative way of handling this:
I created version bump helper script for my own hybrid mobile projects that uses Trapeze to apply version updates, with steps along the way that gather and validate information from different sources (CLI args, current project, SemVer checks, etc) and conditionally prompts the user (using @inquirer/prompts
) with generated options to resolve conflicts along the way.
in this script, I simply use Date.now()
as the value of my Android versionCode
and iOS build
fields, along with a comment that reads The greatest value Google Play allows for versionCode is 2100000000, so this will stop working for Google at Friday, July 18, 2036 1:20:00 PM
.
this effectively turns my native project "build identifier" field into something that is auto-incrementing, that both Google and Apple happily accept, is far easier to read than extrapolating 10203
from 1.2.3
as recommended by the Android docs, and is much more meaningful than a simple "incrementing integer" as recommended by the CodeMagic (and probably other CI) docs. lastly, this implementation is now something I will literally not have to think about again for the next 12-odd years. (:
from trapeze.
Related Issues (20)
- Error: Unable to load or parse gradle file: Error (on Windows, but on Mac is okay) HOT 9
- Plist & Entitlements have different replace syntax in YAML file HOT 1
- Specify the Xcode signing team using `config.yaml`? HOT 1
- Error with API Usage HOT 1
- Add a file to XCode Project (e.g., GoogleService-Info.plist)?
- License? HOT 1
- Update gradle.properties HOT 5
- Documentation: Add info about the -y cmd line option HOT 3
- [project] Unused npm-watch dependency HOT 3
- Feat: hide the logs HOT 5
- Best practice for merging in root of Android manifest? HOT 1
- how to use base64 decode? HOT 1
- How to delete a resource file for Android? HOT 1
- gradle variable not updating properly
- How to specify provisioning profile in .yaml config file
- Issues when adding entries to build.gradle
- Feature request: Enable android `productFlavors`
- Unable to run for web platform on Appflow
- Android: unable to inject multiple <intent-filters>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trapeze.