Proguard vs Annotations

前端 未结 5 542
忘了有多久
忘了有多久 2020-12-30 00:08

I have an app that uses ActiveAndroid, a database ORM library, that relies on annotations.

@Table(name=\"test\")
public class DatabaseItem extends ActiveReco         


        
5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-30 00:53

    Solution was to keep all members of the library and the database classes

    -keep class com.activeandroid.**
    {
         *;
    }
    -keep public class my.app.database.**
    {
        *;
    }
    -keepattributes Column
    -keepattributes Table
    

提交回复
热议问题