A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/swagger-api/swagger-codegen/issues/687 below:

Generated Android client has high number of referenced methods · Issue #687 · swagger-api/swagger-codegen · GitHub

In an Android app, there is a limit on the number of methods you can have. This limit is ~65k.

Because of the dependencies that it imports, the android-java client generated by swagger-codegen has a significantly high number of methods referenced. We should see if this can be reduced.

Below is an example. Note: the example relies on https://gist.github.com/who/cdb37baffa7f64d27180

me@box:/tmp/tmp.wMZIQvX55e$ git clone https://github.com/swagger-api/swagger-codegen.git
...
me@box:/tmp/tmp.wMZIQvX55e$ cd swagger-codegen/samples/client/petstore/android-java
me@box:/tmp/tmp.wMZIQvX55e$ mvn clean install
...
me@box:/tmp/tmp.wMZIQvX55e/swagger-codegen/samples/client/petstore/android-java$ for jar in ./target/lib/*.jar; do dexcount $jar; done | paste -s -d+ | bc
16881                         
me@box:/tmp/tmp.wMZIQvX55e/swagger-codegen/samples/client/petstore/android-java$ for jar in ./target/*.jar; do dexcount $jar; done | paste -s -d+ | bc
342

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4