title: How to share Request/Respons class between Android and AWS Lambda
body: <p>With an Android app that uses AWS Lambda, the Request/Response classes appear in both sides under the different modules of the same project. If not shared, the two classes will appear in 2 places:</p>
  <pre><code>.
  ├── app
  │   └── src
  │       ├── main
  │       │   └── java
  │       │       └── com
  │       │           └── myapp
  │       │              ├── Request.java
  │       │              └── Response.java
  │       └── test
  ├── lambda
  │   └── src
  │       └── main
  │           └── java
  │               └── com
  │                   └── myapp
  │                      ├── Request.java
  │                      └── Response.java
  </code></pre>
  <p>The first idea to share these classes is to add <code>lambda</code> module as a dependency to the <code>app</code> module, by adding the following to <code>app/build.gradle</code>:</p>
  <pre><code>dependencies {
      implementation project(&quot;:lambda&quot;)
  </code></pre>
  <p>But that wouldn't work, since</p>
  <ul>
  <li><code>lambda</code> project depends on the AWK SDK</li>
  <li><code>app</code> project depends on AWS Mobile SDK</li>
  </ul>
  <p>and they are not compatible with each other (both provides some same classes under the same package).</p>
  <p>The second method is to use symbolic links, linking the Request/Response classes so that they appear in both modules (under the same package of course), which works. Is it the proper way to do it though?</p>