title: How to skip proguard models used by retrofit2 that is on the base package?
body: <p>I am writing an application with Kotlin and Retrofit 2. As I use proguard, I follow the rules here:</p>
  
  <p><a href="https://github.com/krschultz/android-proguard-snippets/blob/master/libraries/proguard-square-retrofit2.pro" rel="nofollow noreferrer">https://github.com/krschultz/android-proguard-snippets/blob/master/libraries/proguard-square-retrofit2.pro</a></p>
  
  <p>Besides I also need to proguard my models too, as stated in <a href="https://stackoverflow.com/a/41136007/3286489">https://stackoverflow.com/a/41136007/3286489</a></p>
  
  <p>It works fine if I have my models in a package, and I have <code>-keep class com.elyeproj.wikisearchcount.model.** { *; }</code></p>
  
  <pre><code>package com.elyeproj.wikisearchcount.model
  
  object Model {
      data class Result(val query: Query)
      data class Query(val searchinfo: SearchInfo)
      data class SearchInfo(val totalhits: Int)
  }
  </code></pre>
  
  <p>However, if I keep my Models in the base package as the code below, but I don't want to keep the entire package i.e. <code>-keep class com.elyeproj.wikisearchcount.** { *; }</code>, since this defeat the purpose of proguard</p>
  
  <pre><code>package com.elyeproj.wikisearchcount
  
  object Model {
      data class Result(val query: Query)
      data class Query(val searchinfo: SearchInfo)
      data class SearchInfo(val totalhits: Int)
  }
  </code></pre>
  
  <p>How could I keep my model classes?</p>
  
  <p>I tried <code>-keep class com.elyeproj.wikisearchcount.Model.** { *; }</code>, but it doesn't work.</p>