<metadata>
  <!--
  This sample removes the class: android.support.v4.content.AsyncTaskLoader.LoadTask:
  <remove-node path="/api/package[@name='android.support.v4.content']/class[@name='AsyncTaskLoader.LoadTask']" />
  
  This sample removes the method: android.support.v4.content.CursorLoader.loadInBackground:
  <remove-node path="/api/package[@name='android.support.v4.content']/class[@name='CursorLoader']/method[@name='loadInBackground']" />
  -->

  <!-- 添加对 Kotlin 类型的支持 -->
  <attr path="/api/package[@name='com.lvcheng.lock.shared.nfc']" name="managedName">Com.Lvcheng.Lock.Shared.Nfc</attr>
  
  <!-- 处理 Kotlin 集合类型 -->
  <attr path="/api/package[@name='com.lvcheng.lock.shared.nfc']/class[@name='*']/method[@return='java.util.List']" 
        name="return">java.util.List</attr>
        
  <!-- 处理 Kotlin 函数类型 -->
  <remove-node path="/api/package[@name='com.lvcheng.lock.shared.nfc']/interface[@name='*']/method[contains(@name, '$')]" />
  
  <!-- 处理 Kotlin 枚举类型 -->
  <attr path="/api/package[@name='com.lvcheng.lock.shared.nfc']/class[@name='Ctrl']" name="managedType">Com.Lvcheng.Lock.Shared.Nfc.Ctrl</attr>
  <attr path="/api/package[@name='com.lvcheng.lock.shared.nfc']/class[@name='CV']" name="managedType">Com.Lvcheng.Lock.Shared.Nfc.CV</attr>
  <attr path="/api/package[@name='com.lvcheng.lock.shared.nfc']/class[@name='Met']" name="managedType">Com.Lvcheng.Lock.Shared.Nfc.Met</attr>
  <attr path="/api/package[@name='com.lvcheng.lock.shared.nfc']/class[@name='Result']" name="managedType">Com.Lvcheng.Lock.Shared.Nfc.Result</attr>
  
  <!-- 处理 ComponentActivity 类型 -->
  <attr path="/api/package[@name='com.lvcheng.lock.shared.nfc.example']/class[@name='NFCHelper']" 
        name="managedType">Com.Lvcheng.Lock.Shared.Nfc.Example.NFCHelper</attr>
        
  <!-- 移除包含美元符号的方法名（Kotlin 生成的特殊方法） -->
  <remove-node path="//method[contains(@name, '$')]" />
  
  <!-- 处理 Kotlin UInt 类型 -->
  <attr path="/api/package[@name='com.lvcheng.lock.shared.nfc']/class[@name='*']/method[@return='kotlin.UInt']" 
        name="return">int</attr>
</metadata>